@charset "utf-8";

/* =============================================
   Contact 1:1 문의 페이지 전용 스타일
   Figma: sub_Contact (node 165:1891)
   ============================================= */

/* ── 공통 변수 ── */
:root {
    --contact-max: 1440px;
    --contact-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    --contact-black: #000;
    --contact-white: #fff;
    --contact-gray-bg: #f8f8f8;
    --contact-border: #ddd;
    --contact-placeholder: #888;
    --contact-label: #333;
    --contact-required: #e53935;
}

/* ── #container 전폭 오버라이드 (sub.css 제약 해제) ── */
/* contact.css는 QA 스킨에서만 로드되므로 다른 서브페이지에 영향 없음 */
#container:has(#contact-write),
#container:has(.contact-hero) {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* :has() 미지원 브라우저 폴백 — JS로 클래스 추가 */
#container.contact-full {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* container_title 도 숨김 */
#container:has(#contact-write) #container_title,
#container:has(.contact-hero) #container_title,
#container.contact-full #container_title {
    display: none;
}

/* ── 히어로 (contact_hero.inc.php) ── */
.contact-hero {
    background: var(--contact-black);
    width: 100%;
    padding: 200px 0 120px;
    box-sizing: border-box;
}

.contact-hero__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.contact-hero__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-hero__title {
    font-family: var(--contact-font);
    font-size: 68px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--contact-white);
    text-transform: uppercase;
    margin: 0;
}

.contact-hero__sub {
    font-family: var(--contact-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-hero__right {
    font-family: var(--contact-font);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: rgba(248, 248, 248, 0.8);
    text-transform: uppercase;
    text-align: right;
    white-space: nowrap;
    margin: 0;
}

.contact-hero__right p {
    margin: 0;
}

/* ── #contact-write 래퍼 ── */
#contact-write {
    background: var(--contact-white);
    overflow: hidden;
}

/* ── 연락처 정보 카드 영역 ── */
.contact-info-wrap {
    width: 100%;
    padding-top: 60px;
    box-sizing: border-box;
}

.contact-info-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-card {
    flex: 1;
    background: var(--contact-gray-bg);
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px 40px;
    box-sizing: border-box;
}

.contact-card__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--contact-black);
}

.contact-card__icon svg {
    width: 100%;
    height: 100%;
}

.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card__label {
    font-family: var(--contact-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--contact-black);
    text-transform: uppercase;
    margin: 0;
}

.contact-card__value {
    font-family: var(--contact-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--contact-black);
    margin: 0;
}

/* ── 문의 폼 영역 ── */
.contact-form-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 60px 20px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.contact-form-desc {
    font-family: var(--contact-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--contact-black);
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.contact-form-desc br { display: block; }

/* ── 폼 컨테이너 ── */
.contact-form {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── 공통 필드 ── */
.cform-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cform-label {
    font-family: var(--contact-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--contact-black);
}

.cform-required {
    color: var(--contact-required);
    font-style: normal;
}

/* ── 입력 공통 ── */
.cform-input {
    font-family: var(--contact-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: #333;
    background: var(--contact-white);
    border: 1px solid var(--contact-border);
    padding: 14px 20px;
    box-sizing: border-box;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.cform-input::placeholder {
    color: var(--contact-placeholder);
    font-weight: 500;
}

.cform-input:focus {
    border-color: var(--contact-black);
}

.cform-input[readonly] {
    background: #f5f5f5;
    color: #666;
    cursor: default;
}

/* ── 셀렉트 래퍼 ── */
.cform-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cform-select-wrap {
    flex: 1;
}

.cform-select {
    font-family: var(--contact-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: var(--contact-label);
    background: var(--contact-white);
    border: 1px solid var(--contact-border);
    padding: 14px 40px 14px 20px;
    box-sizing: border-box;
    width: 100%;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    transition: border-color 0.2s;
}

.cform-select:focus {
    border-color: var(--contact-black);
}

.cform-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* ── 이메일 3파트 ── */
.cform-email-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.cform-email-wrap .cform-input {
    flex: 1;
    min-width: 0;
}

.cform-at {
    font-family: var(--contact-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--contact-black);
    flex-shrink: 0;
}

/* ── 전화번호 3파트 ── */
.cform-hp-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.cform-hp-part {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.cform-dash {
    font-family: var(--contact-font);
    font-size: 18px;
    font-weight: 500;
    color: var(--contact-black);
    padding: 0 8px;
    flex-shrink: 0;
}

/* ── SMS 수신 ── */
.cform-sms-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cform-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--contact-black);
}

.cform-checkbox-label {
    font-family: var(--contact-font);
    font-size: 14px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
}

/* ── 문의 내용 (textarea) ── */
.cform-textarea {
    font-family: var(--contact-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.02em;
    color: #333;
    background: var(--contact-white);
    border: 1px solid var(--contact-border);
    padding: 14px 20px;
    box-sizing: border-box;
    width: 100%;
    height: 120px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.cform-textarea::placeholder {
    color: var(--contact-placeholder);
}

.cform-textarea:focus {
    border-color: var(--contact-black);
}

/* ── 제출 버튼 ── */
.cform-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: var(--contact-black);
    color: var(--contact-white);
    font-family: var(--contact-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    box-sizing: border-box;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.cform-submit:hover {
    background: #222;
}

.cform-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cform-submit svg {
    flex-shrink: 0;
}

/* ── 목록 돌아가기 ── */
.cform-back-wrap {
    text-align: center;
    margin-top: 4px;
}

.cform-back {
    font-family: var(--contact-font);
    font-size: 14px;
    font-weight: 400;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.cform-back:hover {
    color: var(--contact-black);
    text-decoration: underline;
}

/* ── 에디터 사용 시 높이 ── */
#contact-write .wr_content {
    border: 1px solid var(--contact-border);
}

/* ── 접근성: 숨김 텍스트 ── */
#contact-write .sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── 게시판 리스트/뷰 공통 래퍼 → 전역 .inner-wrap (sub.css) 사용 ── */

/* =============================================
   반응형
   ============================================= */
@media (max-width: 1024px) {
    .contact-hero {
        padding: 120px 0 80px;
    }
    .contact-hero__inner {
        padding: 0 40px;
    }
    .contact-hero__title {
        font-size: 52px;
    }
    .contact-hero__right {
        font-size: 20px;
    }
    .contact-info-inner {
        flex-direction: column;
        gap: 16px;
        padding: 0 40px;
    }
    .contact-info-wrap {
        padding-top: 48px;
    }
    .contact-form-wrap {
        padding: 48px 40px 60px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
    }
    .contact-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 0 24px;
    }
    .contact-hero__title {
        font-size: 38px;
    }
    .contact-hero__right {
        font-size: 16px;
        white-space: normal;
        text-align: left;
    }
    .contact-info-inner {
        flex-direction: column;
        gap: 16px;
        padding: 0 24px;
    }
    .contact-info-wrap {
        padding-top: 40px;
    }
    .contact-card {
        gap: 20px;
        padding: 24px 20px;
    }
    .contact-card__icon {
        width: 40px;
        height: 40px;
    }
    .contact-card__label {
        font-size: 18px;
    }
    .contact-card__value {
        font-size: 15px;
    }
    .contact-form-wrap {
        padding: 40px 24px 60px;
    }
    .contact-form-desc {
        font-size: 18px;
    }
    .cform-email-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }
    .cform-email-wrap .cform-input {
        flex: 1 1 calc(50% - 20px);
        min-width: 100px;
    }
    .cform-at {
        flex: 0 0 auto;
    }
    .cform-select-wrap {
        flex: 1 1 100%;
    }
}
