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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
    overflow: hidden;
}

.header-image {
    width: 100vw;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.main-title {
    text-align: left;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: bold;
}

.subtitle {
    text-align: left;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.timeslot-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeslot-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeslot-option:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.timeslot-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.timeslot-option label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    flex: 1;
}

.time {
    font-weight: 600;
    color: #2c3e50;
}

.spots {
    font-size: 0.9rem;
    color: #7f8c8d;
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.legal-text {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.legal-text p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #2980b9;
}

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

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

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

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

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0;
        border-radius: 0;
    }

    .header-container {
        margin-left: -15px;
        margin-right: -15px;
        margin-top: -15px;
    }



    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .timeslot-option {
        padding: 12px;
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Desktop enhancements */
@media (min-width: 769px) {
    .container {
        margin: 20px auto;
        border-radius: 12px;
    }

    .header-image {
        max-height: 250px;
    }

    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .timeslot-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }

    .form-group {
        gap: 10px;
    }

    input[type="text"],
    input[type="email"],
    select,
    textarea {
        padding: 14px;
    }
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Loading state for submit button */
.submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
