/* ===== ORDER PAGE (organize.php) ===== */
/* Layout: compact dark hero (poster, game, perks), then three numbered steps
   (players, contact, payment) beside a sticky order summary. */

.checkout-page {
    background: #f8f8f8;
    min-height: 100vh;
}

/* ── Hero ── */
.checkout-hero {
    background: #181818;
    padding: 28px 0;
    border-bottom: 4px solid #F60B0E;
}

/* Poster spans both rows; the perks sit under the game info */
.checkout-hero-content {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    column-gap: 30px;
    align-items: center;
}

.checkout-hero-image {
    grid-row: 1 / span 2;
    aspect-ratio: 8 / 11;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.checkout-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-hero-info {
    color: #ffffff;
}

.checkout-hero-eyebrow {
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.checkout-hero-title {
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.checkout-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Hind', sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.checkout-hero-meta li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.checkout-hero-meta i {
    position: relative;
    top: 2px;
    color: #F60B0E;
}

.checkout-hero-perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 36px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    list-style: none;
}

.checkout-hero-perk {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Hind', sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.checkout-hero-perk i {
    flex-shrink: 0;
    margin-top: 3px;
    color: #3ecf6e;
}

/* The strings read "<b>Title</b><br>Details": title on its own line */
.checkout-hero-perk b {
    display: block;
    font-weight: 600;
    color: #ffffff;
}

.checkout-hero-perk br {
    display: none;
}

/* ── Main Content ── */
.checkout-main {
    padding: 28px 0 60px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* ── Steps ── */
.checkout-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 30px 30px;
    margin-bottom: 22px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.checkout-step {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F60B0E;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.checkout-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #181818;
    margin: 0;
}

.checkout-section-subtitle {
    font-family: 'Hind', sans-serif;
    font-size: 0.88rem;
    color: #666;
    margin: 3px 0 0;
}

.checkout-section-subtitle.green {
    color: #1f9d55;
}

/* ── Quantity Selector ── */
.quantity-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 10px;
}

.quantity-option {
    position: relative;
}

.quantity-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.quantity-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 13px 8px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}

.quantity-option input:checked + label {
    background: #F60B0E;
    border-color: #F60B0E;
    color: #ffffff;
}

.quantity-option label:hover {
    border-color: #F60B0E;
}

.quantity-option input:focus-visible + label {
    outline: 3px solid rgba(246, 11, 14, 0.35);
    outline-offset: 2px;
}

/* Group rate badge on the options that get it */
.quantity-chip {
    position: absolute;
    top: -9px;
    right: -5px;
    padding: 2px 7px;
    border-radius: 20px;
    background: #1f9d55;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    pointer-events: none;
}

.quantity-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-family: 'Hind', sans-serif;
    font-size: 0.88rem;
    color: #1f9d55;
}

/* A promo code replaces the group rate: no badge, no hint */
.has-promo .quantity-chip,
.has-promo .quantity-hint {
    display: none;
}

.quantity-custom {
    margin-top: 15px;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 10px;
    display: none;
}

.quantity-custom.visible {
    display: block;
}

.quantity-custom-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-custom-input input {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.quantity-custom-input input:focus {
    border-color: #F60B0E;
}

.quantity-custom-input .btn-ok {
    padding: 12px 25px;
    background: #181818;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.quantity-custom-input .btn-ok:hover {
    background: #333;
}

.quantity-custom-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
}

/* ── Form Inputs ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Hind', sans-serif;
    font-size: 1rem;
    color: #333;
    background: #ffffff;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-select {
    cursor: pointer;
}

.form-input:focus,
.form-select:focus {
    border-color: #F60B0E;
}

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

.form-input.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background: #fff8f8;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Info Box ── */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafe;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #a8c5e8;
}

.info-box i {
    color: #6a9fd4;
    font-size: 1rem;
    margin-top: 2px;
}

.info-box p {
    font-family: 'Hind', sans-serif;
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ── Checkboxes ── */
.checkout-consent {
    margin-top: 25px;
}

.checkout-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkout-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #F60B0E;
    cursor: pointer;
}

.checkout-checkbox span {
    font-family: 'Hind', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.checkout-checkbox a {
    color: #F60B0E;
    text-decoration: underline;
}

.checkout-terms-notice {
    font-family: 'Hind', sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin: 8px 0 0;
    line-height: 1.5;
}

.checkout-terms-notice a {
    color: #F60B0E;
    text-decoration: underline;
}

/* ── Summary Card ── */
.checkout-summary {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    position: sticky;
    top: 20px;
}

.checkout-summary-header {
    background: #181818;
    padding: 18px 20px;
    color: #ffffff;
}

.checkout-summary-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 3px;
    color: #ffffff;
}

.checkout-summary-game {
    font-family: 'Hind', sans-serif;
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.checkout-summary-body {
    padding: 14px 20px 20px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-summary-label {
    font-family: 'Hind', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.checkout-summary-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #181818;
}

.checkout-summary-total {
    background: #f5f5f5;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-summary-total-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #181818;
}

.checkout-summary-total-amount {
    text-align: right;
}

.checkout-summary-total-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #F60B0E;
}

.checkout-summary-tax {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
}

.checkout-promo-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px dashed #ccc;
    border-radius: 8px;
    font-family: 'Hind', sans-serif;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 14px;
}

.checkout-promo-btn:hover {
    border-color: #F60B0E;
    color: #F60B0E;
}

/* ── Pay Button (bottom of the form) ── */
.checkout-pay-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
    text-align: center;
}

.checkout-pay-total {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.checkout-pay-total strong {
    font-size: 1.5rem;
    color: #F60B0E;
}

.checkout-pay-tax {
    margin-top: 3px;
    font-size: 0.8rem;
    color: #888;
}

.checkout-pay-btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    margin-top: 8px;
    background: #F60B0E;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-pay-btn:hover {
    background: #d40a0c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 11, 14, 0.35);
}

.checkout-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkout-pay-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    font-family: 'Hind', sans-serif;
    font-size: 0.85rem;
    color: #888;
}

.checkout-pay-secure i {
    color: #28a745;
}

/* ── Error Box ── */
.checkout-errors {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 18px;
    margin-top: 20px;
    display: none;
}

.checkout-errors.visible {
    display: block;
}

.checkout-errors-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 10px;
}

.checkout-error-item {
    font-family: 'Hind', sans-serif;
    font-size: 0.85rem;
    color: #dc3545;
    padding: 4px 0;
    display: none;
}

/* ── Alert ── */
.checkout-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    background: #e7f5ff;
    border: 1px solid #b6d4fe;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #0d6efd;
}

.checkout-alert i {
    color: #0d6efd;
    font-size: 1.1rem;
    margin-top: 2px;
}

.checkout-alert p {
    font-family: 'Hind', sans-serif;
    font-size: 0.9rem;
    color: #084298;
    margin: 0;
    line-height: 1.5;
}

/* The translated string carries inline white links (written for a dark box) */
.checkout-alert a {
    color: #084298 !important;
    word-break: break-word;
}

.checkout-alert--error {
    background: #fff5f5;
    border-color: #ffcccc;
    border-left-color: #dc3545;
}

.checkout-alert--error i {
    color: #dc3545;
}

.checkout-alert--error p {
    color: #842029;
}

/* ── Mobile Sticky CTA ── */
.checkout-mobile-sticky {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .checkout-mobile-sticky {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #ffffff;
        padding: 12px 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .checkout-mobile-sticky-total {
        font-family: 'Hind', sans-serif;
        font-size: 0.85rem;
        color: #555;
        white-space: nowrap;
    }

    .checkout-mobile-sticky-total strong {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        color: #F60B0E;
        display: block;
    }

    .checkout-mobile-sticky-btn {
        flex-shrink: 0;
        padding: 12px 24px;
        background: #F60B0E;
        border: none;
        border-radius: 10px;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .checkout-mobile-sticky-btn:hover {
        background: #d40a0c;
    }

    .checkout-mobile-sticky-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .checkout-page {
        padding-bottom: 80px;
    }

    .checkout-pay-section {
        display: none;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .checkout-hero {
        padding: 20px 0;
    }

    /* Poster beside the title, perks full width underneath */
    .checkout-hero-content {
        grid-template-columns: 84px minmax(0, 1fr);
        column-gap: 16px;
    }

    .checkout-hero-image {
        grid-row: auto;
        align-self: start;
    }

    .checkout-hero-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .checkout-hero-meta {
        gap: 4px 16px;
        font-size: 0.88rem;
    }

    .checkout-hero-perks {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
        padding-top: 14px;
    }

    .checkout-main {
        padding-top: 18px;
    }

    .checkout-section {
        padding: 22px 18px;
    }

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

    .quantity-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
