/**
 * Dubai Basketball — Homecoming & Guest Registration hero + form styles
 *
 * Enqueued conditionally for pages 7076, 7089, 7104 by class-homecoming-styles.php.
 * Lives outside post_content so WP/Avada/kses can never strip it.
 */

/* ============================
   Banner (top-of-page key visual)
   ============================ */

.dba-hc-banner {
    max-width: 1200px;
    margin: 0 auto 24px auto;
    padding: 0 12px;
}

.dba-hc-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
    .dba-hc-banner {
        padding: 0;
        margin-bottom: 16px;
    }
    .dba-hc-banner img {
        border-radius: 0;
    }
}

/* ============================
   Game details block
   (rendered inside the white form card via Gravity Form description)
   ============================ */

.dba-hc-form-card .gform_description .dba-hc-gd,
.dba-hc-gd {
    background: #112337;
    border-radius: 10px;
    padding: 22px 24px;
    margin: 18px 0 22px;
    color: #fff;
    font-family: Archivo, Arial, sans-serif;
}

.dba-hc-gd-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.dba-hc-gd-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(160, 115, 60, 0.6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dba-hc-gd-pill::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #a0733c;
    flex-shrink: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.dba-hc-gd-pill--time::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.dba-hc-gd-pill--venue::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.dba-hc-gd-matchup {
    display: flex !important;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto 18px;
}

.dba-hc-gd-team {
    flex: 1;
    min-width: 0;
    text-align: center;
    max-width: 200px;
}

.dba-hc-gd-team img {
    max-width: 110px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.dba-hc-gd-team p {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    margin: 10px 0 0 0;
    line-height: 1.2;
}

.dba-hc-gd-vs {
    flex-shrink: 0;
    padding: 0 6px;
}

.dba-hc-gd-vs img { width: 36px; height: auto; }

/* Game details info rows — plain centered text, NO list semantics.
   Each row is a <div> with a bold label and value. Centered as a block
   via text-align on the container. */
.dba-hc-gd-info {
    text-align: center;
    font-size: 14px;
    line-height: 1.9;
    color: #d8dde3;
    margin: 0;
    padding: 0;
}

.dba-hc-gd-row {
    color: #d8dde3;
    margin: 0;
    padding: 0;
}

.dba-hc-gd-row strong {
    color: #fff;
    font-weight: 600;
    margin-right: 4px;
}

@media (max-width: 600px) {
    .dba-hc-gd { padding: 16px 14px; }
    .dba-hc-gd-pills { gap: 8px; }
    .dba-hc-gd-pill { font-size: 11px; padding: 6px 10px; }
    .dba-hc-gd-pill::before { width: 12px; height: 12px; }
    .dba-hc-gd-team img { max-width: 80px; }
    .dba-hc-gd-team p { font-size: 12px; margin-top: 6px; }
    .dba-hc-gd-vs img { width: 26px; }
    .dba-hc-gd-info { font-size: 13px; line-height: 1.75; }

    /* Dropdown — keep tall enough to tap comfortably */
    .dba-hc-form-card .gform_wrapper .gfield select,
    .dba-hc-form-card select {
        padding: 13px 38px 13px 14px !important;
        min-height: 50px;
        font-size: 16px !important; /* prevent iOS auto-zoom */
    }
}

/* ============================
   Hero
   ============================ */

.dba-hc-title {
    font-family: 'Big Shoulders Display', sans-serif !important;
    font-weight: 900 !important;
    font-size: 80px !important;
    line-height: 1 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #a0733c !important;
    text-align: center !important;
    margin: 0 auto 12px auto !important;
    display: block !important;
}

.dba-hc-subtitle {
    text-align: center !important;
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 auto 32px auto !important;
    display: block !important;
}

.dba-hc-subtitle strong { color: #a0733c; }

/* Info cards row (date + venue) */

.dba-hc-info-row {
    display: flex !important;
    gap: 14px;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 700px;
    margin: 0 auto 40px !important;
}

.dba-hc-info-card {
    background: rgba(17, 35, 55, 0.7);
    border: 1px solid rgba(160, 115, 60, 0.4);
    border-radius: 8px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.dba-hc-info-card span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Icons via CSS mask — survives any HTML stripping */
.dba-hc-info-card::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #a0733c;
    flex-shrink: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.dba-hc-info-time::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.dba-hc-info-venue::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Matchup row (Dubai logo | VS | opponent logo) */

.dba-hc-matchup {
    display: flex !important;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 800px;
    margin: 0 auto !important;
}

.dba-hc-team {
    flex: 1;
    min-width: 0;
    text-align: center;
    max-width: 280px;
}

.dba-hc-team img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.dba-hc-team p {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    margin: 16px 0 0 0;
}

.dba-hc-vs { flex-shrink: 0; padding: 0 10px; }
.dba-hc-vs img { width: 50px; height: auto; }

/* ============================
   Form section
   ============================ */

.dba-hc-form-title {
    font-family: 'Big Shoulders Display', sans-serif !important;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #112337;
    text-align: center !important;
    margin: 0 auto 16px auto !important;
    letter-spacing: 1px;
    display: block !important;
}

.dba-hc-form-intro {
    text-align: center !important;
    font-size: 16px;
    color: #404a4d;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 30px !important;
    line-height: 1.6;
    display: block !important;
}

.dba-hc-form-card {
    max-width: 680px;
    margin: 0 auto !important;
    background: #fff;
    border-radius: 12px;
    padding: 36px 36px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Form title (GF-rendered) — styled as our brand uppercase heading */
.dba-hc-form-card .gform_title {
    font-family: 'Big Shoulders Display', sans-serif !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    color: #112337 !important;
    text-align: center !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: 1px !important;
}

/* Select / dropdown — match the white text-input styling and height.
   Avada/Fusion theme renders <select> with a dark fill and shorter height
   than text inputs; we force white background, light grey border, and
   matched vertical sizing. */
.dba-hc-form-card .gform_wrapper .gfield select,
.dba-hc-form-card .gform_wrapper select.gfield_select,
.dba-hc-form-card select {
    background-color: #fff !important;
    color: #404a4d !important;
    border: 1px solid #d2d2d2 !important;
    border-radius: 4px !important;
    padding: 14px 40px 14px 15px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 52px;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23404a4d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 8px !important;
}

.dba-hc-form-card .gform_wrapper .gfield select:focus {
    border-color: #a0733c !important;
    outline: none;
}

/* ============================
   Country-code / phone pair (1/3 + 2/3)
   ============================
   Only these two fields get inline layout. Legacy formsmain.min.css applies
   block layout to every .gfield, so we force float + width with !important. */
.dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair,
.dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair + .gfield {
    float: left !important;
    box-sizing: border-box !important;
    clear: none !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}
.dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair {
    width: 33.333% !important;
    padding-right: 8px !important;
    padding-left: 0 !important;
    clear: left !important;
}
.dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair + .gfield {
    width: 66.667% !important;
    padding-left: 8px !important;
    padding-right: 0 !important;
}
/* Field after the phone field starts a new row and clears the floats */
.dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair + .gfield + .gfield {
    clear: both !important;
}
/* Inputs inside the pair fill their column */
.dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair .ginput_container,
.dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair + .gfield .ginput_container {
    width: 100%;
}

@media (max-width: 600px) {
    /* Stack both full-width on mobile */
    .dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair,
    .dba-hc-form-card .gform_wrapper .gfield.dba-cc-pair + .gfield {
        float: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        clear: both !important;
    }
}

/* Light-grey example placeholder text in input fields (e.g. phone "501234567").
   Default browser placeholder colors are too dark for our light-grey example UX. */
.dba-hc-form-card .gform_wrapper .gfield input::placeholder,
.dba-hc-form-card .gform_wrapper .gfield textarea::placeholder,
.dba-hc-form-card input::placeholder,
.dba-hc-form-card textarea::placeholder {
    color: #b7bbc1 !important;
    opacity: 1 !important;
    font-weight: 400;
}
.dba-hc-form-card .gform_wrapper .gfield input::-webkit-input-placeholder,
.dba-hc-form-card input::-webkit-input-placeholder {
    color: #b7bbc1 !important;
}
.dba-hc-form-card .gform_wrapper .gfield input::-moz-placeholder,
.dba-hc-form-card input::-moz-placeholder {
    color: #b7bbc1 !important;
    opacity: 1 !important;
}

/* Avada wraps GF selects in .gravity-select-parent with its own dark-themed
   .select-arrow overlay. Strip the wrapper styling and hide the overlay so
   our white select + custom SVG chevron renders cleanly. */
.dba-hc-form-card .gravity-select-parent {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    padding: 0 !important;
}
.dba-hc-form-card .gravity-select-parent .select-arrow {
    display: none !important;
}

/* Form description (GF-rendered). Two modes:
   1. Plain text → light grey box, gold border
   2. HTML (contains .dba-hc-gd) → transparent, HTML controls its own layout */
.dba-hc-form-card .gform_description {
    display: block !important;
    text-align: left;
    font-size: 15px;
    color: #404a4d;
    line-height: 1.65;
    margin: 0 0 28px 0;
}

/* Plain-text mode: only style when description has no embedded structured block */
.dba-hc-form-card .gform_description:not(:has(.dba-hc-gd)) {
    white-space: pre-line;
    padding: 16px 18px;
    background: #f7f7f8;
    border-left: 3px solid #a0733c;
    border-radius: 4px;
}

.dba-hc-form-card .gform_description p {
    margin: 0 0 14px 0;
}
.dba-hc-form-card .gform_description p:last-child {
    margin-bottom: 0;
}

/* ============================
   Thank-you page card
   ============================ */

.dba-hc-thankyou {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.dba-hc-thankyou h1 {
    font-family: 'Big Shoulders Display', sans-serif !important;
    font-weight: 700 !important;
    font-size: 36px !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    color: #112337 !important;
    letter-spacing: 1px !important;
    margin: 0 0 22px 0 !important;
    text-align: center !important;
}

.dba-hc-thankyou p {
    font-size: 16px;
    line-height: 1.7;
    color: #404a4d;
    margin: 0 0 16px 0;
    font-family: Archivo, Arial, sans-serif;
}

.dba-hc-thankyou p:last-child { margin-bottom: 0; }

.dba-hc-thankyou a {
    color: #a0733c;
    text-decoration: underline;
    font-weight: 600;
}
.dba-hc-thankyou a:hover { color: #7d5a2d; }

@media (max-width: 600px) {
    .dba-hc-thankyou { padding: 28px 22px 22px; border-radius: 8px; }
    .dba-hc-thankyou h1 { font-size: 26px !important; }
    .dba-hc-thankyou p { font-size: 14px; }
}

/* ============================
   Mobile
   ============================ */

@media (max-width: 600px) {
    .dba-hc-title { font-size: 44px !important; letter-spacing: 1px !important; }
    .dba-hc-subtitle { font-size: 14px; }
    .dba-hc-info-row { gap: 8px; }
    .dba-hc-info-card { padding: 10px 12px; gap: 6px; }
    .dba-hc-info-card::before { width: 14px; height: 14px; }
    .dba-hc-info-card span { font-size: 12px; }
    .dba-hc-matchup { gap: 8px; }
    .dba-hc-team img { max-width: 110px; }
    .dba-hc-team p { font-size: 14px; margin-top: 10px; letter-spacing: 0.5px; }
    .dba-hc-vs { padding: 0 4px; }
    .dba-hc-vs img { width: 32px; }
    .dba-hc-form-title { font-size: 30px; }
    .dba-hc-form-intro { font-size: 14px; padding: 0 12px; }
    .dba-hc-form-card { padding: 24px 18px 16px; border-radius: 8px; }
}

/* === intl-tel-input + GF phone overlap fix (2026-05-31) === */
.gform_wrapper .ginput_container_phone .iti { width: 100%; display: block; }
.gform_wrapper .ginput_container_phone .iti input[type="tel"],
.gform_wrapper .ginput_container_phone .iti input.large {
    padding-left: 52px !important;
    box-sizing: border-box;
    width: 100%;
}
.gform_wrapper .ginput_container_phone .iti__flag-container,
.gform_wrapper .ginput_container_phone .iti__country-container {
    z-index: 30;
}
.gform_wrapper .iti__country-list { z-index: 40; max-width: 300px; }
/* v23 separateDialCode=false: dropdown trigger left, padding-left 52 covers it. */

/* === Schedule-box ticket CTA (2026-05-31, Coca-Cola Arena) === */
.dba-hc-gd-cta { margin-top: 16px; text-align: center; }
.dba-hc-gd-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(90deg, #7d5a2d 0%, #a0733c 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 6px;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 14px rgba(160, 115, 60, 0.35);
}
.dba-hc-gd-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(160, 115, 60, 0.45); color: #fff !important; }
.dba-hc-gd-cta-arrow { font-size: 18px; line-height: 1; }
@media (max-width: 540px) { .dba-hc-gd-cta-btn { font-size: 13px; padding: 11px 16px; } }
