:root {
    --bg-color: #FBF8F3;
    --card-bg: #FFFFFF;
    --primary-red: #8B0000;
    --bright-red: #B22222;
    --gold: #D4AF37;
    --gold-light: #FFF8DC;
    --pine-green: #1B4D3E;
    --wa-green: #25D366;
    --wa-green-hover: #20BA5A;
    --text-dark: #2C2C2C;
    --text-muted: #666666;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(139, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.snow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 1;
}

body.christmas-theme {
    background: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.logo-wrapper {
    margin-bottom: 0.75rem;
}

.logo {
    height: 48px;
    width: auto;
}

.badge {
    display: inline-block;
    background: var(--gold-light);
    color: #8A6D0B;
    border: 1px solid var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.header h1 {
    font-size: 1.6rem;
    color: var(--primary-red);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.step-box {
    text-align: center;
    margin-bottom: 1.25rem;
}

.step-num {
    display: inline-block;
    background: var(--pine-green);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 20px;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.step-box p, .action-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.code-display {
    background: #FFFDF7;
    border: 2px dashed var(--gold);
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 3px;
    user-select: all;
}

.btn-copy {
    display: inline-block;
    background: #FFFDF7;
    border: 1px solid var(--gold);
    color: #8A6D0B;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:active {
    background: var(--gold-light);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wa-green);
    color: white;
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

.btn-wa-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-wa-alt:active {
    background: #DCFCE7;
}

.manual-box {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #FAF5FF;
    border: 1px dashed #C084FC;
    border-radius: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: #581C87;
}

.phone-link {
    display: inline-block;
    color: #6B21A8;
    font-weight: 700;
    text-decoration: none;
    background: #EDE9FE;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.25rem;
}

.icon-wa {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.5rem;
    background: #F8F9FA;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #E9ECEF;
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.consent-note {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.72rem;
    color: #999999;
    line-height: 1.3;
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #888888;
}

.device-info {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: #AAAAAA;
}

.btn-primary {
    display: inline-block;
    background: var(--pine-green);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.text-center { text-align: center; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.progress-bar {
    width: 100%;
    height: 6px;
    background: #EEEEEE;
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}
.progress-fill {
    width: 100%;
    height: 100%;
    background: var(--wa-green);
    animation: fillProgress 2s ease-in-out;
}
@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* ========================================================
   Check-in Form Elements & Christmas Enhancements
   ======================================================== */
.checkin-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sub-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    display: block;
}

.input-control {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #FFFFFF;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.input-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

.field-hint {
    font-size: 0.72rem;
    color: #718096;
    margin-top: 0.15rem;
}

.date-select-row {
    display: flex;
    gap: 0.75rem;
}

.select-col {
    flex: 1;
}

.select-control {
    width: 100%;
    height: 48px;
    padding: 0 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.today-shortcut {
    margin-top: 0.35rem;
}

.btn-today-pill {
    background: #FFFDF7;
    border: 1px dashed var(--gold);
    color: #8A6D0B;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-today-pill:hover, .btn-today-pill:active {
    background: var(--gold-light);
}

.btn-checkin-submit {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 50%, #B22222 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.btn-checkin-submit:hover, .btn-checkin-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.35);
    background: linear-gradient(135deg, #700000 0%, #8B0000 100%);
}

.btn-checkin-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.checkin-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem;
}

.checkin-error {
    padding: 0.75rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #991B1B;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

.guest-section {
    text-align: center;
    margin-top: 0.15rem;
}

.btn-guest-link {
    background: none;
    border: none;
    color: #4B5563;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem;
}

.btn-guest-link:hover {
    color: var(--primary-red);
}

.checkin-success-box {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

/* ========================================================
   Dual Mode: Appointment Notice, Password Button & Divider
   ======================================================== */
.appointment-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #FFFDF5;
    border: 1px solid #E6D087;
    border-left: 4px solid var(--primary-red);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.notice-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.notice-text strong {
    display: block;
    font-size: 0.88rem;
    color: var(--primary-red);
    margin-bottom: 0.2rem;
}

.notice-text span {
    font-size: 0.78rem;
    color: #4A5568;
    line-height: 1.35;
    display: block;
}

.divider-box {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.35rem 0;
}

.divider-box::before,
.divider-box::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed #CBD5E1;
}

.divider-box span {
    padding: 0 0.75rem;
    color: #94A3B8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-password-outline {
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    color: #8B0000;
    border: 2px solid #8B0000;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-password-outline:hover, .btn-password-outline:active {
    background: #FFF5F5;
    border-color: #700000;
    color: #700000;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.15);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.btn-password-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #1B4D3E 0%, #166534 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-password-submit:hover, .btn-password-submit:active {
    background: linear-gradient(135deg, #14532D 0%, #15803D 100%);
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.3);
}

.back-section {
    text-align: center;
    margin-top: 0.25rem;
}

.btn-back-link {
    background: none;
    border: none;
    color: #64748B;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.35rem;
    font-weight: 600;
}

.btn-back-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* ========================================================
   iOS Completion Callout & Instagram Button
   ======================================================== */
.ios-done-card {
    background: #F0FDF4;
    border: 2px solid #86EFAC;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.08);
}

.ios-done-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ios-done-badge {
    background: #166534;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.3);
}

.ios-done-arrow {
    font-size: 1.4rem;
    animation: bounceTopRight 1s infinite alternate;
}

@keyframes bounceTopRight {
    0% { transform: translate(0, 0); }
    100% { transform: translate(4px, -4px); }
}

.ios-done-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #14532D;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.ios-done-desc {
    font-size: 0.84rem;
    color: #374151;
    line-height: 1.4;
}

.btn-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.25);
    transition: all 0.2s ease;
}

.btn-instagram:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
}

.speed-test-box {
    padding: 0.5rem;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px dashed #CBD5E1;
}

/* ========================================================
   WhatsApp Native Action Button
   ======================================================== */
.btn-whatsapp-native {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.btn-whatsapp-native:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-native:active {
    transform: translateY(1px);
}
