@import url('tw-layout.css');
@import url('booking-shared.css');
@import url('booking-wizard.css');
@import url('booking-my-bookings.css');
@import url('booking-my-account.css');

/* booking-only danger pill button */
.tw-btn-danger {
    background: var(--tw-white);
    color: #dc2626;
    border: 1.5px solid #fecaca;
}
.tw-btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    transform: translateY(-2px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: var(--tw-font-body, var(--font-sans));
    background: var(--tw-bg);
    color: var(--tw-gray-900);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Consent checkbox — force visible, above text, high contrast.
   Placed AFTER the `*` reset so it overrides collapsed padding
   and any inherited appearance:none on inputs.
   ============================================================ */
.consent-box {
    background: var(--tw-gray-100, #f1f5f9);
    border: 1px solid var(--tw-gray-200, #e2e8f0);
    border-radius: var(--tw-radius, 12px);
    padding: 18px 16px;
    margin: 20px 0;
    text-align: center;
}
.consent-box__label,
.consent-box label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.consent-box__text {
    display: block;
    width: 100%;
    line-height: 1.7;
}
/* Custom checkbox — draws a visible box via ::before on a wrapper span,
   because the native input rendering was being killed by upstream resets
   and appearance:none rules on other pages. We keep the real <input> for
   accessibility & form submission, and paint the visual on top of it. */
.consent-box input[type="checkbox"],
input#privacyConsent,
input#loginPrivacyConsent {
    /* Reset ANY inherited hiding, then draw ourselves */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    /* Hardcoded dark colors — independent of theme so it's always visible
       even if --tw-primary is a very light color (e.g. gold on luxury theme) */
    background-color: #ffffff !important;
    border: 3px solid #1f2937 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    cursor: pointer !important;
    margin: 0 auto 6px !important;
    padding: 0 !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    outline: none !important;
    vertical-align: middle !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Checked state — solid dark color + white checkmark. Uses hardcoded
   colors so the check is visible on any theme (gold/light/dark). */
.consent-box input[type="checkbox"]:checked,
input#privacyConsent:checked,
input#loginPrivacyConsent:checked {
    background-color: #1f2937 !important;
    border-color: #1f2937 !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 22px 22px !important;
}

/* Focus ring */
.consent-box input[type="checkbox"]:focus,
input#privacyConsent:focus,
input#loginPrivacyConsent:focus {
    box-shadow: 0 0 0 4px rgba(31, 41, 55, 0.35) !important;
}
.consent-box a {
    color: var(--tw-primary, #2563eb);
    text-decoration: underline;
    font-weight: 600;
}
.consent-required {
    color: #dc2626;
    font-weight: 700;
    margin-inline-start: 2px;
}
.consent-box__note {
    font-size: 12px;
    color: var(--tw-gray-600, #64748b);
    margin: 10px 0 0;
    text-align: center;
    padding: 0;
}

@media (prefers-color-scheme: dark) {
    .consent-box {
        background: #1e293b;
        border-color: #334155;
    }
    .consent-box input[type="checkbox"],
    input#privacyConsent,
    input#loginPrivacyConsent {
        background-color: #ffffff !important;
        border-color: #60a5fa !important;
        box-shadow: 0 2px 6px rgba(96, 165, 250, 0.35);
    }
    .consent-box__note { color: #94a3b8; }
}