
/*
 * TROODON GAME ACADEMY
 * Accessibility and readability fixes
 * Updated: 23 October 2026
 */

/* ==============================
   1. COURSE ENQUIRY - WHITE CARD
   ============================== */

/* White background and dark text */
.hero .ticket,
.hero .ticket__body {
    color: #14263C !important;
}

.hero .ticket__body {
    background-color: #FFFFFF !important;
}

/* Ticket top header stays navy */
.hero .ticket__bar {
    background-color: #132B49;
    color: #FFFFFF;
}

/* Main heading - dark navy */
.hero .ticket__body h2,
.hero .ticket__body h3,
.hero .ticket h2,
.hero .ticket h3 {
    color: #14263C !important;
}

/* Description - dark grey/navy */
.hero .ticket__body > p,
.hero .ticket__body p:not(.ticket__note) {
    color: #34465D !important;
}

/* Form labels */
.hero .ticket label,
.hero .ticket .field label,
.hero .ticket__body .form label {
    color: #14263C !important;
    font-weight: 700 !important;
    display: block;
    margin-bottom: 8px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Field hints */
.hero .ticket .field .hint {
    color: #52657A !important;
}

/* Footer contact information */
.hero .ticket__note {
    color: #34465D !important;
}

.hero .ticket__note a {
    color: #087DB9 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==============================
   2. FORM FIELDS
   ============================== */

.form .field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.form .field > label {
    display: block;
    line-height: 1.4;
    margin: 0 0 0.48rem;
    font-weight: 700;
}

/* Input and textarea */
.form .field input:not([type="checkbox"]),
.form .field select,
.form .field textarea {
    max-width: 100%;
    min-width: 0;
    color: #14263C !important;
    background-color: #FFFFFF !important;
    border-color: #B7CBE1 !important;
    line-height: 1.45;
}

/* Placeholder text */
.form .field input::placeholder,
.form .field textarea::placeholder {
    color: #596B80 !important;
    opacity: 1;
}

/* Dropdown */
.form .field select {
    color-scheme: light;
}

.form .field select option {
    background: #FFFFFF;
    color: #14263C;
}

.form .field select:invalid {
    color: #596B80 !important;
}

/* Keyboard focus */
.form .field input:focus-visible,
.form .field select:focus-visible,
.form .field textarea:focus-visible {
    outline: 2px solid #61BAF0;
    outline-offset: 1px;
}

.form .field .hint {
    line-height: 1.5;
}

/* ==============================
   3. CONSENT AND CHECKBOX
   ============================== */

.form .consent {
    color: #263B53;
    background: #EDF4FB;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.form .consent a {
    color: #135E91;
    text-decoration: underline;
}

.form .consent input {
    flex: 0 0 18px;
}

/* ==============================
   4. OTHER DARK SECTIONS
   ============================== */

.pagehead h1,
.pagehead h2,
.pagehead h3,
.hero h1,
.hero h2:not(.ticket h2),
.is-night h1,
.is-night h2,
.is-night h3,
.panel--night h1,
.panel--night h2,
.panel--night h3,
.cta h1,
.cta h2,
.cta h3,
.toolshowcase h1,
.toolshowcase h2,
.toolshowcase h3 {
    color: #FFFFFF;
}

.pagehead p,
.pagehead .crumbs,
.pagehead .crumbs a {
    color: #E6F1FF;
}

.is-night .field label,
.panel--night .field label,
.cta .field label {
    color: #F5FAFF;
}

.is-night .field .hint,
.panel--night .field .hint,
.cta .field .hint {
    color: #D8E9FA;
}

.hero .fact span,
.pagehead .fact span {
    color: #F1F7FF !important;
}

.hero .fact strong,
.pagehead .fact strong {
    color: #F6CD73 !important;
}

.pagehead .eyebrow,
.hero .eyebrow {
    color: #F6CD73 !important;
}

.pagehead h1,
.pagehead p,
.pagehead .crumbs {
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* ==============================
   5. FORM LAYOUT
   ============================== */

.form .field--two,
.form .field--two > * {
    min-width: 0;
}

/* Hide anti-spam honeypot */
.hero .ticket .hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==============================
   6. MOBILE RESPONSIVENESS
   ============================== */

@media (max-width: 640px) {

    .hero__grid,
    .split,
    .field--two,
    .form .field--two {
        min-width: 0;
    }

    .hero .ticket {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ticket__body {
        padding: 1.15rem;
    }

    .ticket__bar {
        flex-wrap: wrap;
    }

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

    .pagehead h1 {
        font-size: clamp(2.4rem,10vw,3.4rem);
        overflow-wrap: break-word;
    }

    .hero h1 {
        font-size: clamp(2.65rem,12vw,3.65rem);
        overflow-wrap: break-word;
    }

    .btn,
    .form button {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .consent {
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {

    .ticket__body {
        padding: 1rem;
    }

    .wrap {
        width: calc(100% - 24px);
    }
}
