/* =============================================
   CONTACT PAGE — KCSFA Conference 2026
   ============================================= */

/* ---- Hero ---- */
.contact-hero {
    position: relative;
    background-color: #1B1C13;
    padding: 120px 5% 60px;
    overflow: hidden;
}

.contact-hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(254, 107, 2, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254, 107, 2, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #1B1C13);
    pointer-events: none;
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-hero__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FE6B02;
    background: rgba(254, 107, 2, 0.12);
    border: 1px solid rgba(254, 107, 2, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-hero__title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.contact-hero__title em {
    font-family: 'DM Serif Text', serif;
    font-style: italic;
    color: #FE6B02;
}

.contact-hero__sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 480px;
    line-height: 1.7;
}

/* ============================================================
   PAGE WRAPPER & LAYOUT
   ============================================================ */

.contact-page {
    background-color: #f7f4f1;
    padding: 72px 5% 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 72px;
    align-items: start;
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

.contact-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    background: #fff;
    border: 1px solid #e5e0d8;
    padding: 8px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.contact-label .material-icons {
    color: #FE6B02;
}

.contact-section-title {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    color: #1B1C13;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-section-title em {
    font-family: 'DM Serif Text', serif;
    font-style: italic;
    color: #FE6B02;
}

.contact-body {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ============================================================
   CONTACT INFO PANEL
   ============================================================ */

.contact-info {
    position: sticky;
    top: 88px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 36px;
}

.contact-detail-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #ede9e3;
}

.contact-detail-item:first-child {
    border-top: 1px solid #ede9e3;
}

.contact-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(254, 107, 2, 0.1);
    flex-shrink: 0;
}

.contact-detail-icon .material-icons {
    font-size: 18px;
    color: #FE6B02;
}

.contact-detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1B1C13;
    line-height: 1.5;
}

.contact-detail-link {
    text-decoration: none;
    color: #1B1C13;
    transition: color 0.2s;
}

.contact-detail-link:hover {
    color: #FE6B02;
}

/* Social icons */
.contact-socials__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin-bottom: 12px;
}

.contact-socials__icons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e5e0d8;
    color: #aaa;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.contact-social-link:hover {
    background: #FE6B02;
    border-color: #FE6B02;
    color: #fff;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form-wrap {
    background: #fff;
    border: 1.5px solid #ede9e3;
    border-radius: 16px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

/* Honeypot — visually hidden */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-size: 0;
}

/* Two-column name row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #1B1C13;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.required {
    color: #FE6B02;
}

/* Inputs, select, textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e0d8;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #1B1C13;
    background: #faf8f5;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #FE6B02;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(254, 107, 2, 0.1);
}

/* Select wrapper */
.select-wrap {
    position: relative;
}

.select-wrap select {
    width: 100%;
    padding: 13px 40px 13px 16px;
    border: 1.5px solid #e5e0d8;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: #1B1C13;
    background: #faf8f5;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.select-wrap select:focus {
    border-color: #FE6B02;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(254, 107, 2, 0.1);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #aaa;
    pointer-events: none;
}

/* Textarea */
.form-group textarea {
    min-height: 140px;
}

/* Submit button */
.contact-submit {
    align-self: flex-start;
    margin-top: 4px;
}

/* HTMX spinner */
.spin {
    display: none;
    animation: spin 0.8s linear infinite;
}

.htmx-request .spin {
    display: inline-block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Form feedback messages (returned by HTMX) */
#form-feedback:not(:empty) {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

#form-feedback.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

#form-feedback.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 4% 48px;
    }

    .contact-page {
        padding: 52px 4% 60px;
    }

    .contact-form-wrap {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .contact-hero__title {
        font-size: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
    }
}