/* Quiz Night Registration Styles */

.quiz-page {
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.quiz-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: calc(var(--header-height) + 1rem) 0 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1rem;
    font-weight: 400;
}

.event-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

.event-meta i {
    margin-right: 0.25rem;
    font-size: 0.85rem;
}

.event-meta .separator {
    opacity: 0.5;
}

.spots-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Content Container */
.quiz-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Form Sections */
.registration-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.registration-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-section {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.field-error.show {
    display: block;
}

.form-text {
    display: block;
    font-size: 0.875rem;
    color: #636E72;
    margin-top: 0.25rem;
}

/* Validation Messages */
.validation-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.validation-message.success {
    color: #28a745;
}

.validation-message.error {
    color: var(--primary-color);
}

.validation-message.checking {
    color: #636E72;
}

/* Info Box */
.info-box {
    background: var(--red-50);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-box h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
}

.info-box li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Menu Options */
.menu-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.menu-option {
    background: var(--background-light);
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
    user-select: none;
}

.menu-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.menu-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    color: var(--text-color);
}

.menu-details p {
    font-size: 0.8rem;
    color: #636E72;
    margin: 0;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-secondary {
    background: #636E72;
    color: white;
}

.btn-secondary:hover {
    background: #4a5256;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Overview Section */
.overview-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.overview-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.overview-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.overview-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table tr {
    border-bottom: 1px solid #ddd;
}

.overview-table tr:last-child {
    border-bottom: none;
}

.overview-table td {
    padding: 1rem 0;
    font-size: 1.05rem;
}

.overview-table td:first-child {
    width: 45%;
    color: #636E72;
}

.overview-table td:last-child {
    color: var(--text-color);
}

.price-card {
    background: var(--background-light);
    padding: 1rem 1.5rem;
}

.price-inline {
    font-size: 1rem;
    color: var(--text-color);
}

.price-inline strong {
    color: var(--primary-color);
}

.payment-note {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--red-50);
    border-radius: 6px;
    font-weight: 500;
}

.payment-note i {
    margin-right: 0.35rem;
}

/* Success Box */
.success-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 4rem 2rem;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 2rem;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-box h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-box p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Closed Box */
.closed-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 4rem 2rem;
    text-align: center;
}

.closed-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.closed-box h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.closed-box p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .event-info {
        flex-direction: column;
        gap: 1rem;
    }

    .registration-section,
    .overview-section,
    .success-box,
    .closed-box {
        padding: 1.5rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .menu-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .menu-option {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }

    .menu-icon {
        font-size: 1.5rem;
    }

    .menu-details h4 {
        font-size: 0.85rem;
    }

    .menu-details p {
        font-size: 0.7rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .overview-table td:first-child {
        width: 40%;
        font-size: 0.9rem;
    }

    .overview-table td:last-child {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .quiz-hero {
        padding: 2rem 0 1.5rem;
    }

    .quiz-hero h1 {
        font-size: 1.5rem;
    }

    .success-icon,
    .closed-icon {
        font-size: 3rem;
    }

    .success-box h2,
    .closed-box h2 {
        font-size: 1.8rem;
    }

    .price-breakdown .total-price {
        font-size: 1.5rem;
    }
}
