/* ===================================================
   CONTACT PAGE STYLES – Matching ludafdi.com/contact
   =================================================== */

/* ===== Contact Hero ===== */
.contact-hero {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 60px;
}

.contact-hero h1 {
    font-family: var(--font-en);
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Contact Info Section ===== */
.contact-info-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.contact-section-heading {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 64px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: transparent;
    padding: 20px;
    text-align: center;
}

.info-emoji {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1;
}

.info-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.info-primary {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    line-height: 1.4;
    /* 긴 이메일 주소가 화면 밖으로 밀려나지 않도록 */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 전화, 이메일을 눌러 바로 연결할 수 있도록 */
a.info-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 손가락으로 누르기 충분한 높이 */
    min-height: 44px;
    padding: 6px 4px;
    color: #1a1a1a;
    max-width: 100%;
    transition: color 0.2s ease;
}

a.info-primary:hover,
a.info-primary:focus-visible {
    color: var(--gold-dark);
    text-decoration: underline;
}

.info-sub {
    color: #777777;
    font-size: 16px;
    line-height: 1.8;
    margin-top: 8px;
}

/* ===== Form Section ===== */
.contact-form-section {
    padding: 80px 0 60px;
    background: var(--bg-dark);
}

.form-section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-white);
}

/* Tabs */
.consult-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid #444444;
}

.tab-btn {
    flex: 1;
    min-height: 52px;
    padding: 14px 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #b6b6b6;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    font-family: inherit;
    text-align: center;
}

.tab-btn:hover {
    color: #C9A961;
}

.tab-btn.active {
    color: #C9A961;
    border-bottom-color: #C9A961;
    font-weight: 500;
}

/* Form Container */
.consult-form {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444444;
    border-radius: 16px;
    padding: 44px 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #C9A961;
    margin-bottom: 8px;
    line-height: 1.5;
}

.req {
    color: #ff6b6b;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    background: #232323;
    color: white;
    /* 16px 미만이면 iOS 에서 입력할 때 화면이 확대된다 */
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    resize: vertical;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8a8a8a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C9A961;
    background: #2e2e2e;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.25);
}

/* 필수 항목을 비운 채 제출했을 때 어디가 문제인지 바로 보이도록 */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ff6b6b;
}

.form-error {
    display: none;
    margin-top: 8px;
    color: #ff8a8a;
    font-size: 14px;
}

.form-group.has-error .form-error {
    display: block;
}

.form-agree {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 40px;
}

.form-agree input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #C9A961;
    cursor: pointer;
}

.form-agree label a {
    display: inline-block;
    padding: 11px 2px;
    color: #C9A961;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-agree label {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    cursor: pointer;
}

.form-agree input[type="checkbox"] {
    flex-shrink: 0;
}

/* Submit Button */
.btn-submit {
    display: inline-block;
    min-height: 52px;
    padding: 13px 36px;
    line-height: 1.3;
    background: #C9A961;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background: #d4ac72;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #888;
    cursor: not-allowed;
    transform: none;
}

/* ===== Map Section ===== */
.map-section {
    padding: 100px 0;
    background: #FFFFFF;
}

.map-section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 56px;
    color: #000000;
}

.map-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* 외부 지도 위젯이 칸 밖으로 삐져나오지 않도록 */
.map-embed {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
}

.map-embed img,
.map-embed iframe,
.map-embed .root_daum_roughmap {
    max-width: 100%;
}

.map-embed {
    width: 100%;
}

.map-info h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000000;
}

.map-info h4 {
    color: #2F8C80;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.map-info-item {
    margin-bottom: 35px;
}

.map-info-item p {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

.map-addr-en {
    color: #555555 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    margin-top: 10px;
}

.map-info-phone a,
.map-info-phone span {
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 1px;
    white-space: nowrap;
}

.map-info-phone a:hover,
.map-info-phone a:focus-visible {
    color: var(--gold-dark);
}

.btn-map {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-map:hover {
    background: #d4ac72;
    transform: translateY(-2px);
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 48px 36px 40px;
    text-align: center;
    max-width: 420px;
    width: min(92%, 420px);
    max-height: 88vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-actions .btn-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
}

/* 전송이 실패했을 때의 전화 버튼.
   메일 앱이 없는 기기에서도 연결될 수 있는 유일한 수단이라
   번호를 글자로도 보여준다(tel: 링크가 동작하지 않는 PC 대비). */
.btn-call {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    line-height: 1.35;
}

.btn-call:hover,
.btn-call:focus-visible {
    background: rgba(192, 156, 103, 0.12);
    color: var(--gold-light);
}

.modal-call-number {
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-hours {
    margin-top: 14px;
    color: var(--text-gray);
    font-size: 13px;
    text-align: center;
}

.btn-quiet {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
}

.btn-quiet:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@keyframes modalIn {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.modal-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.modal-box p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .contact-hero { height: 300px; }
    .contact-hero h1 { font-size: 42px; letter-spacing: 6px; }
    .consult-form { padding: 36px 28px; }
    .contact-info-section,
    .map-section { padding: 80px 0; }
    .info-grid { gap: 24px; }
    .info-primary { font-size: 21px; }
    .map-grid { gap: 36px; }
    .map-info h3 { font-size: 26px; margin-bottom: 28px; }
    .map-info-phone a,
    .map-info-phone span { font-size: 26px; }
}

@media (max-width: 768px) {
    .contact-hero { height: 240px; }
    .contact-hero h1 { font-size: 34px; letter-spacing: 4px; }
    .contact-hero-content { padding-top: 40px; }

    .contact-info-section,
    .map-section { padding: 64px 0; }

    .info-grid { grid-template-columns: 1fr; gap: 8px; }
    .info-card { padding: 20px 8px; }
    .info-emoji { font-size: 44px; margin-bottom: 14px; }
    .info-card h3 { font-size: 19px; margin-bottom: 10px; }
    .info-primary { font-size: 20px; margin-bottom: 10px; }
    .info-sub { font-size: 15px; }

    /* 세로로 쌓인 탭은 현재 위치가 보이도록 왼쪽 강조선을 쓴다 */
    .consult-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 8px;
        margin-bottom: 28px;
    }
    .tab-btn {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        text-align: left;
        padding: 14px 16px;
    }
    .tab-btn.active {
        border-color: var(--gold);
        background: rgba(201, 169, 97, 0.1);
        color: var(--gold);
    }

    .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .consult-form { padding: 26px 18px; }
    .contact-form-section { padding: 64px 0 48px; }

    .map-grid { grid-template-columns: 1fr; gap: 32px; }
    .map-info h3 { font-size: 22px; margin-bottom: 24px; }
    .map-info-item { margin-bottom: 26px; }
    .map-info-phone a,
    .map-info-phone span { font-size: 24px; }

    .form-section-title { font-size: 26px; margin-bottom: 32px; }
    .contact-section-heading { font-size: 26px; margin-bottom: 36px; }
    .map-section-title { font-size: 26px; margin-bottom: 32px; }

    .btn-submit { width: 100%; padding: 16px 24px; font-size: 17px; }
    .modal-box { padding: 40px 24px 32px; }
}

@media (max-width: 430px) {
    .contact-hero h1 { font-size: 28px; letter-spacing: 3px; }
    .info-primary { font-size: 18px; }
    .map-info-phone a,
    .map-info-phone span { font-size: 21px; }
    .consult-form { padding: 22px 14px; }
}

/* ===================================================
   INQUIRY PAGE (inquiry.html)
   상담 신청보다 가벼운 '간편 문의' 화면
   =================================================== */

.inquiry-head {
    background: var(--bg-darkest);
    border-bottom: 1px solid var(--border-subtle);
    /* 고정 헤더(약 84px) 아래로 */
    padding: 150px 0 54px;
    text-align: center;
}

.inquiry-eyebrow {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 18px;
}

.inquiry-head h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.inquiry-lead {
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.8;
}

.inquiry-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    padding-top: 60px;
    padding-bottom: 100px;
}

.inquiry-container .consult-form {
    max-width: none;
    margin: 0;
    padding: 40px;
}

.inquiry-container .form-row:last-of-type {
    margin-bottom: 0;
}

.field-hint {
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.form-submit-row {
    margin-top: 28px;
    text-align: center;
}

.form-submit-row .btn-submit {
    min-width: 200px;
}

/* select 도 input 과 같은 모양으로 */
.form-group select {
    width: 100%;
    /* 옆의 input 과 정확히 같은 높이(52px)가 되도록 */
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    background: #232323;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    /* 기본 화살표를 지우고 직접 그린다 */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C9A961' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

.form-group select:focus {
    outline: none;
    border-color: #C9A961;
    background-color: #2b2b2b;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}

/* ---- 옆의 안내 상자 ---- */
.inquiry-alt {
    padding: 32px 28px;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    background: rgba(192, 156, 103, 0.05);
    position: sticky;
    top: 104px;
}

.inquiry-alt h2 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.inquiry-alt p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.inquiry-alt .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
}

.inquiry-direct {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.inquiry-direct p {
    margin-bottom: 6px;
    font-size: 14px;
}

.inquiry-tel {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.inquiry-tel:hover,
.inquiry-tel:focus-visible {
    color: var(--gold-light);
}

.inquiry-hours {
    margin-top: 4px;
    margin-bottom: 0 !important;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .inquiry-head { padding: 130px 0 44px; }
    .inquiry-head h1 { font-size: 32px; }
    .inquiry-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 720px;
        padding-top: 46px;
        padding-bottom: 70px;
    }
    .inquiry-alt { position: static; }
}

@media (max-width: 768px) {
    .inquiry-head { padding: 118px 0 36px; }
    .inquiry-head h1 { font-size: 26px; }
    .inquiry-eyebrow { font-size: 12px; letter-spacing: 3px; margin-bottom: 14px; }
    .inquiry-lead { font-size: 15px; }
    .inquiry-lead br { display: none; }

    .inquiry-container { padding-top: 32px; padding-bottom: 56px; }
    .inquiry-container .consult-form { padding: 26px 20px; }
    .form-submit-row .btn-submit { width: 100%; min-width: 0; }
    .inquiry-alt { padding: 26px 22px; }
    .inquiry-alt h2 { font-size: 17px; }
}

/* 상담 신청 폼 위의 '간편 문의' 안내 */
.form-shortcut {
    max-width: 860px;
    margin: -30px auto 40px;
    padding: 14px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

.form-shortcut a {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    min-height: 44px;
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-shortcut a:hover,
.form-shortcut a:focus-visible {
    color: var(--gold-light);
}

@media (max-width: 768px) {
    .form-shortcut { margin: -20px auto 28px; font-size: 14px; }
    .btn-submit { min-height: 50px; padding: 13px 26px; font-size: 16px; }
    .form-shortcut a { display: block; margin-left: 0; margin-top: 6px; }
}
