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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #0a0a0a;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d5016 50%, #000000 100%);
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.7), 
        rgba(0, 0, 0, 0.7)
      ),url('/static/bg.jpg');
    background-size: cover;
    min-height: 100vh;
    padding: 20px;
    color: #e8e8e8;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1c2e1c 0%, #1a1a1a 50%, #1a1a1a 100%);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
}

h1 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.2em;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

p {
    text-align: center;
    color: #c0c0c0;
    font-size: 1.1em;
    line-height: 1.6;
    font-weight: 300;
}

.event-details {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.event-details p {
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: 1em;
    text-align: left;
}

.event-details strong {
    color: #d4af37;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    border-left-color: #dc3545;
}

.rsvp-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #d4af37;
    font-size: 1em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9em;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 1);
}

input::placeholder, textarea::placeholder {
    color: #888;
    font-style: italic;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #b8860b 100%);
    color: #1a1a1a;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.confirmation {
    text-align: center;
}

.confirmation h1 {
    color: #d4af37;
    font-size: 2.2em;
    margin-bottom: 20px;
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    }
    to {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.3);
    }
}

.details {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    margin: 25px 0;
    text-align: left;
}

.details h3 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.details ul {
    list-style: none;
}

.details li {
    margin-bottom: 12px;
    padding: 8px 0;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

.details li:last-child {
    border-bottom: none;
}

.details li strong {
    color: #d4af37;
    display: inline-block;
    width: 100px;
}

.email-success {
    color: #4caf50;
    font-weight: 500;
    margin: 20px 0;
}

.email-error {
    color: #ff6b6b;
    font-weight: 500;
    margin: 20px 0;
}

.back-btn {
    display: inline-block;
    background: linear-gradient(135deg, #444 0%, #222 100%);
    color: #d4af37;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #555;
    margin-top: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.back-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .container {
        padding: 25px 20px;
        margin: 0 auto;
        border-radius: 8px;
    }

    h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }

    p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    input, select, textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .details {
        padding: 20px 15px;
    }

    .details li strong {
        width: 80px;
        display: block;
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.6em;
    }

    .form-group {
        margin-bottom: 18px;
    }

    input, select, textarea {
        padding: 12px;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .details li strong {
        width: 100%;
        display: block;
        margin-bottom: 4px;
    }
}

/* Additional Notes Box */
.event-notes {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.event-notes p {
    color: #e0e0e0;
    line-height: 1.4;
    text-align: left;
}

.event-notes .notes-header {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Table Capacity Box */
.table-capacity {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.table-capacity .capacity-label {
    color: #d4af37;
    font-weight: 500;
    margin-bottom: 5px;
}

.table-capacity .capacity-count {
    color: #e0e0e0;
    font-size: 1.1em;
}

.table-capacity .spots-remaining {
    color: #4caf50;
    font-size: 0.9em;
}

/* Event Full Styles */
.event-full-container {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.event-full-container h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.event-full-container p {
    color: #e0e0e0;
    margin-bottom: 15px;
}

.future-games-info {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.future-games-info h3 {
    color: #d4af37;
    margin-bottom: 15px;
}

.future-games-info p,
.future-games-info ul {
    color: #e0e0e0;
    text-align: left;
    padding-left: 20px;
}

.event-description {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.event-description h3 {
    color: #d4af37;
    margin-bottom: 15px;
}

.event-description p {
    color: #e0e0e0;
}

/* Admin links */
.admin-link {
    text-align: center;
    margin-top: 30px;
}

.admin-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Capacity warning */
.capacity-warning {
    color: #ffc107;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Event full message */
.event-full-message {
    font-size: 1.2em;
    color: #ff6b6b;
    font-weight: 500;
}

/* Thanks message */
.thanks-message {
    text-align: center;
    margin-top: 30px;
}

.thanks-message p {
    color: #999;
    font-size: 0.9em;
}