/* ==========================================================================
   Shared Dark Theme Styles
   Used by: pickSeatV4.php, cartV2.php, and other ticketing pages
   ========================================================================== */

/* ---------- Base / Body ---------- */
body {
    background-color: #0d1117;
    color: #fff;
    font-family: 'Ubuntu', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ---------- Header ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 15px 30px;
    border-bottom: 1px solid #2d2d2d;
}

header .logo {
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}

/* ---------- Back Button ---------- */
.back-btn {
    display: inline-block;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin: 15px 0 0 20px;
}

.back-btn:hover {
    background-color: #3a3a3a;
    transform: translateY(-1px);
}

/* ---------- Event Info Section ---------- */
.event-info-banner {
    max-width: 700px;
    margin: 15px auto 10px auto;
    background: rgba(13,17,23,0.95);
    border-radius: 12px;
    padding: 24px 28px 18px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    color: #fff;
}

.event-info-banner .event-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #fff;
    text-align: center;
}

.event-info-banner .event-datetime {
    font-size: 2rem;
    font-weight: 700;
    color: #f25c28;
    text-align: center;
    margin-bottom: 2px;
}

.event-info-banner .event-section-label {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    color: #fff;
}

/* ---------- Test Mode Banner ---------- */
.test-mode-banner {
    background: #9c27b0;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Cart Box ---------- */
.cart-box {
    background-color: #0d1117;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.cart-box-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d2d2d;
}

.cart-box-header h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

/* ---------- Cart Items ---------- */
.cart-item {
    background: linear-gradient(145deg, #16191d, #0f1012);
    border: 1px solid #25282c;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 6px -1px rgba(0,0,0,.3);
    transition: border-color .25s, box-shadow .25s;
}

/* Expandable description inside cart items */
.cart-desc-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.cart-desc-collapse.cart-desc-open {
    max-height: 200px;
}
.cart-info-toggle:hover {
    color: #f25c28 !important;
}

.cart-item:hover {
    border-color: #3a3f46;
    box-shadow: 0 3px 10px -2px rgba(0,0,0,.4);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.item-info .fas {
    color: #f25c28;
    margin-right: 8px;
}

.ticket-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.event-name {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin: 2px 0 0;
}

.event-details {
    font-size: 15px;
    font-weight: 600;
    color: #e9ecef;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-details .fas {
    color: #e9ecef;
    margin-right: 4px;
    width: 14px;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 16px;
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.remove-item {
    cursor: pointer;
    color: #f25c28;
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-size: 14px;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #ff6a3c;
}

/* ---------- Cart Totals ---------- */
.cart-total-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #2d2d2d;
    color: #fff;
}

.cart-total-line:last-of-type {
    border-bottom: 1px solid #2d2d2d;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.total-label {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-amount {
    font-size: 15px;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
.checkout-btn {
    background-color: #f25c28;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background-color: #ff6a3c;
    transform: translateY(-1px);
}

.continue-shopping-btn {
    background-color: transparent;
    color: #9ca3af;
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    border: 1px solid #444;
    margin-top: 10px;
}

.continue-shopping-btn:hover {
    color: #d1d5db;
    border-color: #666;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #8b949e;
    font-style: italic;
    font-size: 16px;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5 {
    color: #fff !important;
}

/* ---------- Buttons (general) ---------- */
.btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.2s !important;
}

.btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

.btn-dark {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.btn-dark:hover {
    background-color: #3a3a3a !important;
    transform: translateY(-1px) !important;
}

/* ---------- Form Styling ---------- */
.question, .primaryColorBox, .sectionTitle {
    color: #fff;
    background-color: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}

.cust_form, input[type="text"], input[type="email"], input[type="tel"],
select, textarea {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    margin: 5px 0;
}

.cust_form:focus, input[type="text"]:focus, input[type="email"]:focus,
input[type="tel"]:focus, select:focus, textarea:focus {
    border-color: #f25c28;
    outline: none;
}

/* ---------- Cards ---------- */
.card {
    background-color: #0d1117 !important;
    border: 1px solid #2d2d2d !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.card-header {
    background-color: rgba(45, 45, 45, 0.5) !important;
    color: #fff !important;
    border-bottom: 1px solid #2d2d2d !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
}

.card.text-bg-light .card-header {
    background-color: rgba(242, 92, 40, 0.15) !important;
    color: #f25c28 !important;
    border: 1px solid rgba(242, 92, 40, 0.3) !important;
}

.card-body {
    background-color: #0d1117 !important;
    color: #ccc !important;
    padding: 16px !important;
}

.card-text {
    color: #bbb !important;
    margin: 0 !important;
}

/* ---------- Form Controls ---------- */
.form-control, .form-select {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
}

.form-control:focus, .form-select:focus {
    background-color: #2a2a2a !important;
    border-color: #f25c28 !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(242, 92, 40, 0.25) !important;
}

.form-label {
    color: #fff !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
}

.form-check-label {
    color: #ccc !important;
}

.form-check-input {
    background-color: #222 !important;
    border: 1px solid #444 !important;
}

.form-check-input:checked {
    background-color: #f25c28 !important;
    border-color: #f25c28 !important;
}

/* ---------- Dropdowns ---------- */
select.card, select {
    background-color: #222 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
}

select.card:focus, select:focus {
    border-color: #f25c28 !important;
    outline: none !important;
}

/* ---------- Stripe Elements ---------- */
#card-element-wrapper {
    padding: 0 !important;
    background-color: #222 !important;
    border-radius: 6px !important;
    border: 1px solid #444 !important;
    overflow: hidden;
}

#card-element {
    padding: 12px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
}

.StripeElement {
    background-color: transparent !important;
    border: none !important;
}

#card-errors {
    color: #dc3545 !important;
    margin-top: 8px !important;
}

/* Pay button hover/active states */
#cart-pay-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffa333, #ff8c00) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5) !important;
    transform: translateY(-1px);
}
#cart-pay-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3) !important;
}
#cart-pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Tighten checkout form spacing on small screens */
@media screen and (max-width: 500px) {
    .card-body {
        padding: 10px !important;
    }
    .card-header {
        padding: 10px 12px !important;
    }
    #cart-payment-form .form-control {
        padding: 8px 10px !important;
    }
}

/* ---------- Input Groups ---------- */
.input-group-text {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.btn-outline-secondary {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.btn-outline-secondary:hover {
    background-color: #3a3a3a !important;
    border-color: #555 !important;
}

/* ---------- Badges ---------- */
.badge {
    background-color: #f25c28 !important;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    cursor: pointer;
}

/* ---------- Modals ---------- */
.modal-content {
    background-color: #0d1117 !important;
    border: 1px solid #2d2d2d !important;
    color: #fff !important;
}

.modal-header {
    border-bottom: 1px solid #2d2d2d !important;
}

.modal-footer {
    border-top: 1px solid #2d2d2d !important;
}

.modal-title {
    color: #fff !important;
}

.modal-body {
    color: #d1d5db !important;
}

.btn-close {
    filter: invert(1);
}

.btn-secondary {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

.btn-primary {
    background-color: #f25c28 !important;
    border-color: #f25c28 !important;
}

.btn-primary:hover {
    background-color: #ff6a3c !important;
}

/* ---------- Spinners ---------- */
.spinner-grow {
    color: #f25c28 !important;
    border-color: #f25c28;
}

/* ---------- Alerts ---------- */
.alert-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    color: #ffd95c !important;
    border-radius: 8px;
    padding: 12px 16px;
}

/* ---------- Totals / Checkout ---------- */
#totals {
    background-color: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

#checkout {
    max-width: 600px;
    margin: 20px auto;
}

#payment-form {
    max-width: 600px !important;
    margin: 20px auto !important;
}

/* ---------- Footer ---------- */
.subItem {
    color: #b0b0b0;
}

.footerHref:hover {
    filter: none;
}

/* ---------- Ticket Price Column ---------- */
.col-md-4 {
    color: #f25c28 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* ---------- Question sections ---------- */
.question h2, .question h3, .question h4, .question h5 {
    color: #fff !important;
}

/* ---------- Utility ---------- */
.section_hidden {
    display: none;
}

.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }

#otherTickets *, #checkout * {
    color: inherit;
}

.contentHolder {
    padding: 20px;
    background-color: transparent;
    color: #fff;
}

/* ---------- ADA / Accessibility ---------- */
.ada-inline-notice {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.ada-inline-notice a {
    color: #f25c28;
    text-decoration: underline;
}

.ada-inline-notice a:hover {
    color: #ff6a3c;
}

.ada-inline-notice .fas {
    margin-right: 6px;
    color: #9ca3af;
}

.ada-footer-link {
    color: #9ca3af;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.ada-footer-link:hover {
    color: #fff;
}

/* ---------- Focus Visibility ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.remove-item:focus-visible,
.checkout-btn:focus-visible,
.continue-shopping-btn:focus-visible {
    outline: 3px solid #f25c28 !important;
    outline-offset: 2px !important;
}

.btn-close:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 2px !important;
}

/* ---------- Skip Navigation ---------- */
.skip-nav {
    position: absolute;
    top: -100px;
    left: 10px;
    background: #f25c28;
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-nav:focus {
    top: 10px;
}

/* ---------- Screen-reader only ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Sale Summary / List Group ---------- */
.list-group-item {
    background-color: #161b22 !important;
    color: #d1d5db !important;
    border: 1px solid #2d2d2d !important;
    padding: 12px 16px !important;
}

.list-group-item .fw-bold {
    color: #fff !important;
}

.list-group-item span {
    color: #f25c28 !important;
    font-weight: 600 !important;
}

.list-group-item .fas.fa-grip-lines {
    color: #444 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .event-info-banner {
        margin: 10px 10px;
        padding: 18px 16px 14px 16px;
    }

    .event-info-banner .event-title {
        font-size: 1rem;
    }

    .event-info-banner .event-datetime {
        font-size: 1.5rem;
    }

    header {
        padding: 12px 15px;
    }
}
