/* RacesCanada - Contact Page
   TRAIL RUN MAGAZINE INSPIRED - Light Theme with Golden Accent
   ============================================================ */


/* ============================================================
   CSS VARIABLES
   ============================================================ */
.contact-body {
    /* Backgrounds */

    /* Text */

    /* Borders */

    /* Accent - Golden Yellow */

    /* Status colors */

    /* Typography */

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

/* ============================================================
   BASE RESET
   ============================================================ */
.contact-body {
    background: var(--rs-bg) !important;
    color: var(--rs-text) !important;
    font-family: var(--font-body) !important;
    margin: 0;
    padding: 0;
}

.contact-body .container {
    max-width: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* ============================================================
   HEADER - Fixed Frosted Glass
   ============================================================ */
.contact-body header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: rgba(22, 22, 22, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0 48px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background-image: none !important;
    overflow: visible !important;
}

.contact-body header::after {
    display: none !important;
}

.contact-body .header-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

.contact-body .site-logo {
    filter: brightness(0) invert(1);
    height: 40px;
    width: auto;
}

.contact-body .header-text .site-title {
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    margin: 0;
}

.contact-body .header-text .site-title .highlight {
    color: var(--rs-accent-ink) !important;
}

.contact-body .subtitle {
    display: none !important;
}

/* ============================================================
   NAVIGATION - Integrated in Header
   ============================================================ */
.contact-body .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 70px !important;
    z-index: 101 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 48px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
}

.contact-body .nav-links .nav-left {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    margin: 0 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.contact-body .nav-links .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 0 !important;
    position: absolute !important;
    right: 48px !important;
}

.contact-body .nav-links .nav-left a {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 0 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.contact-body .nav-links .nav-left a:hover {
    color: var(--rs-accent-ink) !important;
    background: transparent !important;
}

.contact-body .nav-links .nav-left a.active {
    color: var(--rs-accent-ink) !important;
    background: transparent !important;
}

/* --- User Dropdown --- */
.contact-body .nav-user-dropdown {
    background: transparent !important;
    color: #fff !important;
}

.contact-body .nav-user-btn {
    background: transparent !important;
    color: #fff !important;
}

.contact-body .nav-user-name {
    color: #fff !important;
}

.contact-body .nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-body .nav-user-initials {
    background: var(--rs-accent) !important;
    color: var(--rs-accent-text) !important;
}

/* Dropdown menu - light theme */
.contact-body .nav-dropdown-menu {
    background: var(--rs-bg-card) !important;
    border: 1px solid var(--rs-border) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.contact-body .nav-dropdown-menu a,
.contact-body .nav-dropdown-menu button {
    color: var(--rs-text-secondary) !important;
    background: transparent !important;
    font-family: var(--font-body) !important;
    border: none !important;
    padding: 10px 16px !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.contact-body .nav-dropdown-menu a:hover,
.contact-body .nav-dropdown-menu button:hover {
    background: var(--rs-bg-elevated) !important;
    color: var(--rs-text) !important;
}

.contact-body .nav-dropdown-menu hr {
    border: none !important;
    border-top: 1px solid var(--rs-border) !important;
    margin: 4px 0 !important;
}

/* Sign-in button in nav - frosted glass */
.contact-body .nav-sign-in {
    padding: 8px 18px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.02em !important;
    transition: all 0.25s ease !important;
}

.contact-body .nav-sign-in:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.contact-body .nav-sign-in:active {
    transform: translateY(0) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.contact-body .contact-hero {
    position: relative;
    height: 35vh;
    min-height: 250px;
    max-height: 350px;
    margin-top: 70px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.contact-body .contact-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.contact-body .contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.2) 40%,
        rgba(0,0,0,0.5) 70%,
        rgba(255,255,255,1) 100%
    );
}

.contact-body .contact-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-bottom: 60px;
}

.contact-body .contact-hero .hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.contact-body .contact-hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ============================================================
   CONTACT CONTAINER
   ============================================================ */
.contact-body .contact-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 24px;
    background: var(--rs-bg);
}

/* ============================================================
   CONTACT INTRO
   ============================================================ */
.contact-body .contact-intro {
    background: var(--rs-bg-card);
    border: 1px solid var(--rs-border);
    border-left: 4px solid var(--rs-accent);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.contact-body .contact-intro h2 {
    font-family: var(--font-display);
    color: var(--rs-text);
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.contact-body .contact-intro p {
    color: var(--rs-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-body .contact-intro p + p {
    margin-top: 10px;
}

.contact-body .contact-intro a {
    color: var(--rs-text);
    text-decoration: underline;
    text-decoration-color: var(--rs-accent);
    text-underline-offset: 2px;
    font-weight: 500;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-body .contact-form {
    background: var(--rs-bg-card);
    border: 1px solid var(--rs-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-body .form-section {
    margin-bottom: 28px;
}

.contact-body .form-section h3 {
    font-family: var(--font-display);
    color: var(--rs-text);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rs-accent);
    display: inline-block;
}

/* ============================================================
   SUBMISSION TYPE CARDS
   ============================================================ */
.contact-body .submission-type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.contact-body .type-card {
    padding: 18px 16px;
    border: 2px solid var(--rs-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: var(--rs-bg-card);
}

.contact-body .type-card:hover {
    border-color: var(--rs-accent);
    background: var(--rs-accent-light);
}

.contact-body .type-card.selected {
    border-color: var(--rs-accent);
    background: var(--rs-accent-light);
    box-shadow: var(--shadow-md);
}

.contact-body .type-card input {
    display: none;
}

.contact-body .type-card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-body .type-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--rs-text);
    font-size: 0.95rem;
}

.contact-body .type-card-desc {
    font-size: 0.8rem;
    color: var(--rs-text-muted);
    margin-top: 4px;
}

/* Link card (for Feature Requests) */
.contact-body a.type-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--rs-accent-light);
    border-color: var(--rs-accent);
}

.contact-body a.type-card-link:hover {
    background: rgba(213,43,30,0.25);
    transform: translateY(-2px);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.contact-body .form-group {
    margin-bottom: 18px;
}

.contact-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rs-text);
    font-size: 0.95rem;
}

.contact-body .form-group label .required {
    color: #ef4444;
}

.contact-body .form-group input,
.contact-body .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--rs-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--rs-bg-card);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.contact-body .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-body .form-group input:focus,
.contact-body .form-group textarea:focus {
    outline: none;
    border-color: var(--rs-accent);
}

.contact-body .form-group .hint {
    font-size: 0.85rem;
    color: var(--rs-text-muted);
    margin-top: 6px;
}

/* ============================================================
   CONDITIONAL FIELDS
   ============================================================ */
.contact-body .conditional-fields {
    display: none;
}

.contact-body .conditional-fields.visible {
    display: block;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.contact-body .submit-btn {
    width: 100%;
    padding: 16px 28px;
    background: var(--rs-accent);
    color: var(--rs-accent-text);
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.contact-body .submit-btn:hover {
    background: var(--rs-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.contact-body .submit-btn:disabled {
    background: var(--rs-border);
    color: var(--rs-text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.contact-body .success-message {
    display: none;
    text-align: center;
    padding: 60px 24px;
}

.contact-body .success-message.visible {
    display: block;
}

.contact-body .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-body .success-message h2 {
    font-family: var(--font-display);
    color: var(--rs-text);
    margin-bottom: 12px;
}

.contact-body .success-message p {
    color: var(--rs-text-secondary);
    margin-bottom: 24px;
}

.contact-body .success-message .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rs-accent);
    color: var(--rs-accent-text);
    font-family: var(--font-body);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-body .success-message .btn-primary:hover {
    background: var(--rs-accent-hover);
    transform: translateY(-2px);
}

/* Login Modal - Golden Accent */
.contact-body .login-tab.active {
    background: var(--rs-accent) !important;
    color: var(--rs-accent-text) !important;
}

/* ============================================================
   LOGGED IN BADGE
   ============================================================ */
.contact-body .logged-in-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--rs-success-bg);
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    color: var(--rs-text);
    font-size: 0.95rem;
}

.contact-body .logged-in-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--rs-success);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ============================================================
   FOOTER
   ============================================================ */
.contact-body footer:not(.landing-footer) {
    background: var(--rs-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 24px;
    text-align: center;
    font-size: 0.9rem;
}

.contact-body footer:not(.landing-footer) a {
    color: var(--rs-accent-ink);
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .contact-body header {
        padding: 0 16px !important;
        height: 60px !important;
    }

    .contact-body .nav-links {
        top: 0 !important;
        height: 60px !important;
        padding: 0 16px !important;
    }

    .contact-body .nav-links .nav-left {
        display: none !important;
    }

    .contact-body .nav-links .nav-right {
        right: 16px !important;
    }

    .contact-body .hamburger-menu {
        display: flex !important;
    }

    .contact-body .contact-hero {
        margin-top: 97px; /* both header rows */
        min-height: 200px;
        max-height: 280px;
    }

    .contact-body .contact-hero .hero-title {
        font-size: 1.8rem;
    }

    .contact-body .contact-container {
        padding: 20px 16px;
    }

    .contact-body .contact-form {
        padding: 24px 20px;
    }

    .contact-body .submission-type-cards {
        grid-template-columns: 1fr;
    }
}

/* Phone header like the race pages' (race-detail.css): a 50px logo row with the
   site's link row fixed under it, 97px in all. This page's header was 60-70px
   with a full-size logo, so the link row slid under it (20 Oct 2026 review). */
@media (max-width: 768px) {
    .contact-body header {
        padding: 0 16px !important;
        height: 50px !important;
        border-bottom: none !important;
        background: #0c0c0c !important;
    }
    .contact-body .site-logo { height: 28px !important; }
    .contact-body .header-text .site-title { font-size: 1.05rem !important; }
    .contact-body .nav-links {
        top: 0 !important;
        height: 50px !important;
        padding: 0 16px !important;
        justify-content: flex-end !important;
    }
    .contact-body .nav-links .nav-right {
        position: absolute !important;
        right: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    .contact-body .mobile-nav-bar {
        top: 50px !important;
        background: #0c0c0c !important;
        padding-top: 0 !important;
        padding-bottom: 3px !important;
    }
}
