/* ============================================================
   NORBURN DESIGN - contact.css
   Page-specific styles for contact.html
   Requires: ../css/style.css (base variables & components)
   ============================================================ */


/* ── Honeypot - visually and functionally hidden from real users ── */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}


/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
    min-height: 48vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: calc(var(--nav-height) + 60px) 32px 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 110%, rgba(199,50,0,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 45% at 88% 0%,   rgba(199,50,0,0.10) 0%, transparent 55%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.page-hero__title {
    color: var(--white);
    margin-bottom: 20px;
}

.page-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto;
}

.page-hero__scroll-hint {
    margin-top: 48px;
    font-size: 1.4rem;
    color: var(--brand);
    animation: bounce 2s ease infinite;
    padding-bottom: 28px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0);    opacity: 0.6; }
    50%       { transform: translateY(8px); opacity: 1;   }
}


/* ── Contact Body Layout ───────────────────────────────────── */
.contact-body {
    padding: 80px 40px 100px;
    background-color: var(--bg);
}

.contact-body__inner {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}


/* ── Form Column ───────────────────────────────────────────── */
.contact-form-col__heading {
    margin: 10px 0 12px;
    color: var(--ink);
}

.contact-form-col__intro {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}


/* ── Form Elements ─────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-required {
    color: var(--brand);
}

.form-optional {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    font-family: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background-color: var(--white);
    border: 1.5px solid #ddd;
    border-radius: 3px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(199,50,0,0.10);
}

.form-input.form-input--invalid {
    border-color: #c0392b;
}

.form-input::placeholder {
    color: #bbb;
}

/* Select wrapper - custom arrow */
.form-select-wrapper {
    position: relative;
}

.form-select {
    cursor: pointer;
    padding-right: 40px;
}

.form-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-size: 1rem;
    pointer-events: none;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Fieldset / radio group */
.form-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}

.form-fieldset legend {
    margin-bottom: 14px;
    float: left;
    width: 100%;
}

.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    clear: both;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 9px 16px;
    border: 1.5px solid #ddd;
    border-radius: 3px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    user-select: none;
}

.form-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-radio__box {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.form-radio__box::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--brand);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease;
}

.form-radio input[type="radio"]:checked ~ .form-radio__box {
    border-color: var(--brand);
}

.form-radio input[type="radio"]:checked ~ .form-radio__box::after {
    transform: translate(-50%, -50%) scale(1);
}

.form-radio:has(input[type="radio"]:checked) {
    border-color: var(--brand);
    background-color: rgba(199,50,0,0.04);
}

.form-radio:hover {
    border-color: var(--brand);
}

/* Error messages */
.form-error {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 6px;
    min-height: 18px;
    display: block;
}

/* Submit row */
.form-submit-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-submit {
    flex-shrink: 0;
    min-width: 160px;
    position: relative;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-small {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 300px;
}

/* Feedback messages */
.form-feedback {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 3px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.form-feedback--success {
    background-color: #f0faf4;
    border: 1.5px solid #2ecc71;
    color: #1a6b3c;
}

.form-feedback--error {
    background-color: #fdf2f2;
    border: 1.5px solid #c0392b;
    color: #7b1d1d;
}


/* ── Sidebar ───────────────────────────────────────────────── */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.sidebar-block {
    padding: 28px 0;
    border-bottom: 1px dotted #ccc;
}

.sidebar-block:first-child {
    padding-top: 0;
}

.sidebar-block__main {
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1.3;
    margin: 8px 0 10px;
}

.sidebar-block__sub {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.sidebar-link__icon {
    font-size: 0.75rem;
    color: var(--brand);
}

/* Quote-style reassurance block */
.sidebar-reassurance {
    margin-top: 28px;
    padding: 22px 20px;
    background-color: var(--bg-dark);
    border-left: 3px solid var(--brand);
    border-radius: 0 3px 3px 0;
}

.sidebar-reassurance p {
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0;
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {

    .contact-body__inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .contact-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 40px;
    }

    .sidebar-reassurance {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

@media (max-width: 640px) {

    .contact-body {
        padding: 56px 20px 72px;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .form-radio-group {
        flex-direction: column;
    }

    .form-radio {
        width: 100%;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .form-submit {
        width: 100%;
    }

    .contact-sidebar {
        grid-template-columns: 1fr;
    }
}
