/* ============================================================
   LoanRateCheck — contact.css
   Contact page styles — supplements style.css
   Place this file at: /contact/contact.css
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────────── */
.contact-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3d5c 60%, #26527a 100%);
    padding: 36px 24px 40px;
    position: relative;
}
.contact-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.contact-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

/* Breadcrumb — reuse site pattern */
.contact-hero .breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: .8rem; margin-bottom: 14px;
}
.contact-hero .breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.contact-hero .breadcrumb a:hover { color: var(--gold-light); }
.contact-hero .breadcrumb span:last-child { color: rgba(255,255,255,.75); }
.contact-hero .bc-sep { color: rgba(255,255,255,.3); }

.contact-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700; color: #fff;
    line-height: 1.22; margin-bottom: 12px;
}
.contact-hero-sub {
    font-size: 1.02rem; color: rgba(255,255,255,.7);
    font-weight: 300; line-height: 1.6;
    max-width: 580px;
}

/* ── PAGE LAYOUT ─────────────────────────────────────────────── */
.contact-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ── FORM CARD ───────────────────────────────────────────────── */
.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 36px 40px;
    border-top: 3px solid var(--gold);
}

.contact-form-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 28px;
}

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .01em;
}

.required {
    color: var(--red);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(61,122,181,.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Error states */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(231,76,60,.10);
}

.field-error {
    font-size: .8rem;
    color: var(--red);
    font-weight: 500;
}

/* Submit button */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    align-self: flex-start;
    letter-spacing: .02em;
}
.contact-submit-btn:hover {
    background: var(--navy-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.contact-submit-btn:active {
    transform: translateY(0);
}
.btn-arrow {
    font-size: 1.1rem;
    transition: transform .2s;
}
.contact-submit-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.form-privacy {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: -4px;
}
.form-privacy a {
    color: var(--navy-light);
    text-decoration: none;
}
.form-privacy a:hover { text-decoration: underline; }

/* ── ALERTS ──────────────────────────────────────────────────── */
.contact-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.contact-alert-error {
    background: #fef2f2;
    border-left: 4px solid var(--red);
    color: #7f1d1d;
}
.contact-alert-error a { color: var(--red); }

/* ── SUCCESS STATE ───────────────────────────────────────────── */
.contact-success {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 52px 40px;
    border-top: 3px solid var(--green);
    text-align: center;
}
.success-icon {
    width: 64px; height: 64px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}
.contact-success h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.contact-success p {
    color: var(--slate);
    font-size: .96rem;
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.contact-back-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s;
}
.contact-back-btn:hover { background: var(--navy-mid); }

/* ── INFO SIDEBAR ────────────────────────────────────────────── */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
    border-left: 3px solid var(--gold);
}
.contact-info-card .info-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1;
}
.contact-info-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.contact-info-card p {
    font-size: .88rem;
    color: var(--slate);
    line-height: 1.55;
    margin-bottom: 4px;
}
.contact-info-card p:last-child { margin-bottom: 0; }
.contact-info-card a {
    color: var(--navy-light);
    text-decoration: none;
}
.contact-info-card a:hover { text-decoration: underline; }
.info-note {
    color: var(--text-muted) !important;
    font-size: .8rem !important;
}

.contact-disclaimer-box {
    background: #f0f4f8;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.55;
    border: 1px solid var(--border);
}
.contact-disclaimer-box strong { color: var(--slate); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr;
        padding: 32px 16px 56px;
    }
    .contact-card {
        padding: 28px 20px;
    }
    .contact-hero-title { font-size: 1.7rem; }
    .contact-info-col { order: 2; }
}

@media (max-width: 480px) {
    .contact-submit-btn { width: 100%; justify-content: center; }
}
