/* ============================================
   보은부동산 — 상담예약 (브랜드 통일 리디자인)
   네이비 #0F172A + 골드 #F2C94C
   ============================================ */

.page-contact {
    background: #f7f4ee;
}

.page-contact .site-header {
    background: transparent;
    border-bottom-color: transparent;
    transition: background 0.25s, border-color 0.25s;
}

.page-contact .site-header.scrolled {
    background: var(--navy);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.container.narrow {
    max-width: 860px;
}

.section-title.dark {
    color: var(--navy);
}

.section-desc.dark {
    color: var(--muted);
}

.section-label.light .label-line {
    background: rgba(15, 23, 42, 0.18);
}

.section-label.light span:nth-child(2) {
    color: #8a7340;
}

/* ---------- Hero ---------- */
.consult-hero {
    position: relative;
    min-height: 58vh;
    min-height: 58dvh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 56px) 0 64px;
    color: #fff;
    overflow: hidden;
    --consult-hero-image: url("/uploads/hero.jpg");
}

.consult-hero-bg {
    position: absolute;
    inset: 0;
    background:
        var(--consult-hero-image) center / cover no-repeat,
        #0F172A;
}

.consult-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.72) 48%,
        rgba(15, 23, 42, 0.45) 100%
    );
}

.consult-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.consult-hero-eyebrow {
    color: var(--yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.consult-hero-title {
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    word-break: keep-all;
}

.consult-hero-title span {
    color: var(--yellow);
}

.consult-hero-desc {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    word-break: keep-all;
}

/* ---------- Type cards ---------- */
.consult-types {
    background: #f7f4ee;
    padding-top: 72px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.type-card {
    text-align: left;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 22px 18px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
    color: var(--navy);
    font-family: inherit;
}

.type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 201, 76, 0.55);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.type-card.is-active {
    background: var(--navy);
    border-color: var(--yellow);
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.type-card.is-active .type-desc {
    color: rgba(255, 255, 255, 0.72);
}

.type-name {
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.type-desc {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    word-break: keep-all;
}

/* ---------- Form ---------- */
.consult-form-section {
    background: #fff;
    padding-top: 64px;
    padding-bottom: 40px;
}

.consult-form {
    margin-top: 28px;
    background: #fbfaf7;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 36px 32px;
}

.form-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.form-group:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.form-group h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.selected-type {
    font-size: 14px;
    color: #8a7340;
    font-weight: 700;
    margin-bottom: 14px;
}

.form-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.consult-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0;
}

.consult-form label em {
    color: #b8941f;
    font-style: normal;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 1px solid transparent;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--navy);
    font-family: inherit;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s, background 0.2s;
}

.consult-form textarea {
    resize: vertical;
    min-height: 130px;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--yellow), 0 0 0 3px rgba(242, 201, 76, 0.22);
}

.form-actions {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 8px;
}

.consult-submit {
    min-width: 220px;
    border: none;
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 12px 28px rgba(242, 201, 76, 0.28);
}

.consult-submit:hover {
    background: var(--yellow-hover);
}

.consult-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.form-privacy {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.inquiry-msg {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

.inquiry-msg.ok {
    background: #ecfdf5;
    color: #047857;
}

.inquiry-msg.bad {
    background: #fef2f2;
    color: #b91c1c;
}

/* ---------- Info cards ---------- */
.consult-info {
    background: #f7f4ee;
    padding-top: 24px;
    padding-bottom: 80px;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 26px 22px;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(242, 201, 76, 0.22);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    word-break: keep-all;
}

.info-card a {
    color: var(--navy);
    font-weight: 700;
}

.info-card a:hover {
    color: #8a7340;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .type-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-card-grid {
        grid-template-columns: 1fr;
    }

    .form-row.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-contact .site-header {
        background: var(--navy);
    }

    .consult-hero {
        min-height: 48vh;
        padding-bottom: 48px;
    }

    .consult-form {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }

    .consult-submit {
        width: 100%;
        min-width: 0;
    }
}
