@import "../../board/skin/default/_main.css";

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   a타입
   ============================ */

/* a타입에 들어가는 라디오 */
.radio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #D1D2D3;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-label:hover::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #264993;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.radio input[type="radio"]:checked + .radio-label {
    /* border-color: #264993; */
    border: 8px solid #264993;
}

.radio input[type="radio"]:checked + .radio-label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}


/* 전체 컨테이너 */
.contact-wrap {
    width: 832px;
    margin: 0 auto 80px;
}

/* 제목 */
.contact-title {
    font-family: "LINE Seed Sans KR";
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 설명 */
.contact-desc {
    margin-bottom: 40px;
    color: #555;
    font-family: "LINE Seed Sans KR";
    font-size: 16px;
    line-height: 24px;
}

/* 구분선 */
.contact-divider {
    border: none;
    border-top: 1px solid #000000;
    margin: 40px 0;
}


/* ======================
    폼 레이아웃 (join 스타일 동일)
====================== */
.contact-form {
    display: grid;
    grid-template-columns: 200px 1fr;
    row-gap: 8px;

    padding-left: 60px;
    padding-right: 60px;
}

.contact-row {
    display: contents;
}

.contact-row label {
    font-family: "LINE Seed Sans KR";
    font-size: 14px;
    font-weight: 500;
    color: #555;
    align-self: center;
}

/* textarea */
.contact-textarea {
    width: 100%;
    height: 160px;
    border: 1px solid #D1D2D3;
    border-radius: 4px;
    padding: 16px 12px;
    font-family: "LINE Seed Sans KR";
    font-size: 15px;
    color: #4B4B4B;
    opacity: 0.8;
    resize: vertical;
}

.req {
    color: #ef4444;
    margin-left: 2px;
}

/* input / select 공통 */
.contact-row input,
.contact-row select {
    width: 100%;
    height: 52px;
    border: 1px solid #D1D2D3;
    border-radius: 4px;
    padding: 16px 12px;
    font-family: "LINE Seed Sans KR";
    font-size: 15px;
    color: #4B4B4B;
    opacity: 0.8;
}

/* 연락처 3개 */


.triple .flex {
    display: flex;
    gap: 8px;
}

/* 이메일 */
.email-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.email-box input {
    flex: 1;
}

.email-box .at {
    margin: 0 4px;
}

.email-domain-select {
    flex: 1;              /* 👈 고정 너비 삭제하고 flex 비율로 배분 */
    height: 52px;
    border: 1px solid #D1D2D3;
    border-radius: 4px;
    padding: 0 12px;
    background: #EAEDF2;
    color: #4B4B4B;
    font-family: "LINE Seed Sans KR";
    font-size: 15px;
    opacity: 0.8;
}

/* 이메일 직접입력 */
.email-domain-input {
    height: 48px;
    border: 1px solid #D1D2D3;
    border-radius: 4px;
    /*margin-top: 8px;*/
    padding: 0 12px;
    display:none;
}
.email-domain-input.show {
    display:block;
}

/* 파일 */
.file-box {
    display: flex;
    align-items: center;
    width: 100%;
    height: 52px;
    padding: 10px 0;
    /* border: 1px solid #D1D2D3; */
    border-radius: 4px;
    /* background: #fff; */
    gap: 12px;
}

.file-hidden {
    display: none;
}

.file-btn {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #298282;
    background: #fff;
    border-radius: 4px;
    font-family: "LINE Seed Sans KR";
    font-size: 14px;
    color: #298282 !important;
    cursor: pointer;
    white-space: nowrap;
}

.file-name {
    font-family: "LINE Seed Sans KR";
    font-size: 14px;
    line-height: 20px;
    color: #777;
    flex: 1;
}


/**/

.btn-area {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 80px;
}

.btn-area button,
.btn-area a {
    display: flex;
    width: 240px;
    height: 48px;
    padding: 16px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: "LINE Seed Sans KR";
    font-size: 14px;
    font-style: normal;
    line-height: 20px;
    text-decoration: none;   /* a 태그 밑줄 제거 */
}

.btn-back {
    border: 1px solid #D1D2D3;
    background: #FFF;
    color: #727887;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #EEE;
}

.btn-submit {
    border: none;
    background: #264993;
    color: var(--ffffff, #FFF);
    font-family: "LINE Seed Sans KR";
    font-weight: 700;
}

.btn-submit:hover {
    color:#fff;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%),
        #264993;
}

.btn-area button:focus,
.btn-area a:focus {
    outline: none;
    box-shadow: none;
}



/**/

/* 제목 */
.rp-title {
    text-align: center;
    font-family: "LINE Seed Sans KR";
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 상단 메타 */
.rp-meta {
    text-align: center;
    color: #555;
    font-family: "LINE Seed Sans KR";
    font-size: 14px;
    margin-bottom: 40px;
}
.rp-meta span {
    margin: 0 6px;
}

/* 구분선 */
.rp-line {
    border: none;
    border-top: 1px solid #000000;
    margin: 32px 0;
}

/* 인포 테이블 */
.rp-info-table {
    width: 100%;
    border-collapse: collapse;
}

.rp-label {
    width: 140px;
    font-family: "LINE Seed Sans KR";
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.rp-required {
    color: #ff4b4b;
    margin-left: 4px;
}

.rp-value {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-family: "LINE Seed Sans KR";
    font-size: 15px;
    line-height: 20px;
}

/* 문의내용 */
.rp-content {
    white-space: normal;
}

/* 첨부파일 */
.rp-file {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-download-btn {
    padding: 6px 14px;
    border: 1px solid #298282;
    background: #fff;
    color: #298282;
    border-radius: 4px;
    font-size: 13px;
    font-family: "LINE Seed Sans KR";
    cursor: pointer;
}


/* ----------------------------------------------------------
   MOBILE (max-width: 767px)
---------------------------------------------------------- */
@media (max-width: 767px) {

    .contact-wrap {
        width: 100%;
    }

    .contact-desc {
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
        line-height: 22px;
        text-align: left;
        margin-bottom: 24px;
    }

    .contact-form {
        padding: 0 20px;
        grid-template-columns: 1fr;
    }

    .contact-row label {
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
    }

    .contact-row input,
    .contact-row select {
        height: 48px;
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
        padding: 12px 10px;
    }

    .contact-textarea {
        height: 140px;
        padding: 12px;
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
    }

    .triple .flex {
        flex-direction: row !important;
        gap: 8px;
        width: 100%;
    }

    .triple .flex input {
        flex: 1 1 0;
        width: 100%;
        height: 48px;
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
    }

    .email-box {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .email-box input,
    .email-domain-select {
        flex: 1 1 0;
        width: 100%;
        height: 48px;
        font-size: 14px;
        font-family: "LINE Seed Sans KR";
        padding: 12px 10px;
    }

    .email-box .at {
        white-space: nowrap;
        padding: 0 4px;
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
    }

    .email-domain-input {
        width: 100%;
        margin-top: 8px;
        height: 48px;
        padding: 12px;
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
    }

    .file-box {
        flex-direction: row !important;
        align-items: center;
        gap: 12px;
        padding: 0;
        width: 100%;
    }

    .file-btn {
        margin-bottom: 0 !important;
        flex-shrink: 0;       
    }

    .file-name {
        flex: 1 1 auto;
        margin: 0;
        font-family: "LINE Seed Sans KR";
        font-size: 14px;
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-area {
        flex-direction: row !important;
        justify-content: center;
        gap: 8px;
        padding: 0 12px;
        margin: 32px 0 60px;
    }

    .btn-area button,
    .btn-area a {
        flex: 1 1 0;
        width: 100%;
        height: 48px;
        max-width: none;
    }

    .rp-title {
        font-size: 22px;
        font-family: "LINE Seed Sans KR";
        margin-bottom: 12px;
    }

    .rp-meta {
        font-size: 13px;
        font-family: "LINE Seed Sans KR";
        margin-bottom: 20px;
    }

    .rp-line {
        margin: 24px 0;
    }

    .rp-label {
        width: 100%;
        padding: 10px 0 4px;
        border-bottom: none;
        font-size: 14px;
        font-family: "LINE Seed Sans KR";
    }

    .rp-value {
        padding: 4px 0 12px;
        font-size: 14px;
        font-family: "LINE Seed Sans KR";
        border-bottom: 1px solid #eee;
    }

    .rp-file {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}
