:root {
    --primary: #800000;
    --accent-gold: #D4AF37;
    --bg-gradient: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --border: #e5e7eb;
    --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --day-bg: rgba(212, 175, 55, 0.08);
    --day-text: #856404;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 20px 15px;
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    animation: fadeIn 0.8s var(--ease);
}

.hero-header {
    width: 100%;
    height: 220px;
    background: url('/assets/bm_image.jpg') center/cover no-repeat;
    border-radius: 24px 24px 0 0;
    border-bottom: 6px solid var(--accent-gold);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
}

.title-card {
    border-top: 10px solid var(--primary);
    border-radius: 0 0 24px 24px;
    margin-top: -5px;
}

.hero-container {
    color: var(--text-sub);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    margin: 16px 0 0 0;
    padding: 20px;
    background: rgba(128, 0, 0, 0.02);
    border-radius: 12px;
}

.hero-container p {
    margin: 0;
}

h3 {
    font-weight: 800;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text-main);
}

label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.selection-label {
    font-weight: 700;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-main);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 2px solid #f3f4f6;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
}

input:focus {
    border-color: var(--primary);
    background: #fff;
}

.tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.tile {
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    font-weight: 800;
    transition: 0.3s;
    background: #f9fafb;
    font-size: 16px;
}

.tile.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.progress-container {
    background: white;
    padding: 24px 35px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.bar-bg {
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 0%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    transition: width 0.6s var(--ease);
}

.tile input {
    display: none;
}

.field-group {
    margin-bottom: 24px;
    position: relative;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.phone-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
}

input,
select {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 2px solid #f3f4f6;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
    background: #f9fafb;
    font-family: inherit;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23800000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    appearance: none;
    cursor: pointer;
}

input:focus,
select:focus {
    border-color: var(--primary);
    background: #fff;
}

.day-header {
    font-weight: 800;
    color: var(--day-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 18px;
    margin: 40px 0 20px 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--accent-gold);
    background: var(--day-bg);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0 12px 12px 0;
}



@media (max-width: 600px) {

    .grid,
    .phone-grid {
        grid-template-columns: 1fr;
    }
}

.group-option {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s var(--ease) both;
}

button.group-option {
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
}

.selection-card {
    flex-direction: column;
    align-items: flex-start;
}

.group-choice {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.group-choice:focus-visible,
button.group-option:focus-visible,
.more-info-link:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 4px;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--border);
    transition: 0.3s;
}

.group-option.mode-online::before {
    background: #ea580c;
}

.group-option.mode-inperson::before {
    background: var(--accent-gold);
}

.group-option:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(128, 0, 0, 0.08);
    border-color: rgba(128, 0, 0, 0.1);
    background: #ffffff;
}

.group-option.selected {
    border: 2px solid var(--primary);
    background: #fffcfc;
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.12);
}

.group-option.selected::before {
    width: 10px;
    background: var(--primary);
}

.card-content {
    flex-grow: 1;
}

.card-content h4 {
    margin: 0 0 8px 0;
    font-size: 21px;
    font-weight: 800;
    color: #111;
}

.card-content p {
    margin: 0;
    font-size: 15px;
    color: var(--text-sub);
    font-weight: 500;
}

.status-pill {
    min-width: 140px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 50px;
    background: #ffffff;
    color: var(--primary);
    border: 2px solid rgba(128, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.group-option:hover .status-pill {
    border-color: var(--primary);
    background: #fff;
    transform: scale(1.05);
}

.group-option.selected .status-pill {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.group-option.selected .status-pill::after {
    content: " ✓";
}

.info-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-option:hover .info-pill:not(.mode-online):not(.mode-inperson):not(.urgent) {
    background: #fff;
    border-color: var(--border);
}

.info-pill.urgent {
    background: #fdf2f2;
    color: #d00;
    border: 1px solid #fbd5d5;
}

.mode-online {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5 !important;
}

.mode-inperson {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7 !important;
}

.waitlist-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 22px;
    border-radius: 50px;
    border: none;
    font-size: 18px;
    font-weight: 800;
    width: 100%;
    cursor: pointer;
    margin-top: 24px;
    transition: 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.error-msg {
    color: #d00;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
}

.more-info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s;
    background: #f9fafb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.more-info-link:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.05);
}

.waitlist-option {
    margin-top: 20px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(128, 0, 0, 0.03);
    border: 1px dashed var(--primary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 24px;
    position: relative;
    animation: modalPop 0.4s var(--ease);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 30px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-body h3 {
    margin-top: 0;
    font-size: 24px;
    color: var(--primary);
}

.modal-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.modal-label {
    font-weight: 700;
    color: var(--text-sub);
}

.modal-value {
    font-weight: 500;
    text-align: right;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes modalPop {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {

    .grid,
    .phone-grid,
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

.privacy-card {
    padding: 24px 32px !important;
    color: var(--text-main);
}

.privacy-card a {
    color: #0000ee;
    text-decoration: underline;
    font-weight: 500;
}

.privacy-card a:hover {
    opacity: 0.8;
}

/* Tablet & Mobile Enhancements */
@media (max-width: 768px) {
    body {
        padding: 10px 10px;
    }

    .container {
        width: 100%;
    }

    .card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .hero-header {
        height: 160px;
        border-radius: 20px 20px 0 0;
    }

    .title-card {
        padding: 24px 20px;
    }

    .title-card h1 {
        font-size: 26px !important;
    }

    .title-card p {
        font-size: 14px !important;
    }

    .progress-container {
        padding: 14px 16px;
    }

    .progress-label {
        font-size: 13px;
    }

    .group-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .group-choice {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .status-pill {
        width: 100%;
        margin-top: 0;
        text-align: center;
    }

    .tile-grid {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        padding: 18px;
        font-size: 16px;
    }

    .day-header {
        font-size: 14px;
        letter-spacing: 1px;
        padding: 10px 16px;
        margin: 28px 0 16px 0;
    }

    .modal-content {
        width: 95%;
        border-radius: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .modal-value {
        text-align: left;
    }

    .privacy-card {
        padding: 16px 20px !important;
    }

    .info-pill-container {
        gap: 8px;
    }

    .info-pill {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .hero-header {
        height: 120px;
    }

    .title-card h1 {
        font-size: 20px !important;
    }

    .title-card p {
        font-size: 13px !important;
    }

    h3 {
        font-size: 17px;
    }

    .card {
        padding: 18px 14px;
    }

    .card-content h4 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 13px;
    }

    .progress-container {
        padding: 12px 14px;
    }

    .progress-label {
        font-size: 12px;
    }

    .day-header {
        font-size: 12px;
        letter-spacing: 0.5px;
        padding: 8px 12px;
        margin: 20px 0 12px 0;
    }

    .btn-submit {
        padding: 16px;
        font-size: 15px;
    }

    .group-option {
        padding: 14px 12px;
    }

    .status-pill {
        font-size: 12px;
        padding: 10px 16px;
    }

    .tile {
        padding: 16px;
        font-size: 14px;
    }

    .info-pill {
        font-size: 10px;
        padding: 4px 8px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-body h3 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
