/* Using Georgia font family */

* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

.event-registration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 40px 0;
}

/* Hero Image Section */
.hero-section {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 0 40px 0;
    overflow: hidden;
}

.hero-section.has-image {
    background-image: linear-gradient(135deg, rgba(26, 26, 26, 0.6), rgba(51, 51, 51, 0.4));
}

.hero-section.no-image {
    background: linear-gradient(135deg, #1a1a1a, #333333);
}

.hero-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.5), rgba(51, 51, 51, 0.3));
    z-index: 1;
}

.event-header {
    background: #ffffff;
    color: #1a1a1a;
    padding: 60px 40px;
    border-radius: 0;
    margin: 0 20px 40px 20px;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: none;
}

.event-header h1 {
    margin: 0 0 30px 0;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.event-details p {
    margin: 12px 0;
    font-size: 1.1rem;
    color: #666666;
    font-weight: 400;
}

.event-details strong {
    color: #1a1a1a;
    font-weight: 500;
}

.loading-container {
    text-align: center;
    padding: 80px 20px;
}

.loading-container .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 20px;
    border-color: #1a1a1a;
    border-right-color: transparent;
}

.registration-form,
.rsvp-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    margin: 0 20px 40px 20px;
    border: 1px solid #e5e5e5;
}

.registration-form h2 {
    color: #1a1a1a;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.primary-contact-section {
    margin-bottom: 50px;
}

.primary-contact-section h3 {
    color: #1a1a1a;
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.additional-attendees-section {
    margin-bottom: 50px;
}

.additional-attendees-section h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.additional-attendees-section p {
    color: #666666;
    margin-bottom: 30px;
}

.additional-attendee-card {
    border: 1px solid #e5e5e5;
    border-radius: 0;
    margin-bottom: 30px;
    overflow: hidden;
    background: #ffffff;
}

.additional-attendee-card .card-header {
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
}

.additional-attendee-card .card-header h5 {
    margin: 0;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1.1rem;
}

.additional-attendee-card .card-body {
    padding: 30px;
    background-color: #ffffff;
}

.registration-summary {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 0;
    margin-bottom: 40px;
    border-left: 3px solid #1a1a1a;
    border-top: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.registration-summary h4 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1.3rem;
}

.registration-summary ul {
    margin: 15px 0 0 20px;
    color: #666666;
}

.registration-summary p {
    color: #666666;
    margin-bottom: 10px;
}

.registration-summary strong {
    color: #1a1a1a;
    font-weight: 500;
}

.form-actions {
    text-align: left;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
}

.form-actions .btn-primary {
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.form-actions .btn-primary:hover:not(:disabled) {
    background: #333333;
    border-color: #333333;
    transform: none;
    box-shadow: none;
}

.form-actions .btn-primary:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-label {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    border: 1px solid #cccccc;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: #ffffff;
    color: #1a1a1a;
}

.form-control:focus {
    border-color: #1a1a1a;
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: #999999;
}

.btn-outline-primary {
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    background: transparent;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: none;
}

.btn-outline-danger {
    border-radius: 0;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    transform: none;
}

.alert {
    border-radius: 0;
    border: 1px solid;
    box-shadow: none;
    padding: 20px 30px;
    margin: 0 20px 30px 20px;
}

.alert-success {
    background: #f8fff9;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #fff5f5;
    color: #721c24;
    border-color: #f1aeb5;
}

.alert-warning {
    background: #fffdf5;
    color: #856404;
    border-color: #ffeaa7;
}

.alert h4 {
    color: inherit;
    font-weight: 500;
    margin-bottom: 10px;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 400;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.text-muted {
    color: #666666 !important;
}

/* Additional utility classes */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-registration-container {
        padding: 0 0 20px 0;
    }
    
    .hero-section {
        height: auto;
        margin: 0 0 30px 0;
        /* Maintain 3:1 aspect ratio for the image */
        aspect-ratio: 3 / 1;
        /* Ensure full width coverage without cropping */
        background-size: 100% 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .event-header {
        padding: 40px 20px;
        margin: 0 10px 30px 10px;
    }
    
    .event-header h1 {
        font-size: 2.2rem;
    }
    
    .registration-form,
    .rsvp-form {
        padding: 25px 20px;
        margin: 0 10px 30px 10px;
    }
    
    .alert {
        margin: 0 10px 20px 10px;
    }
    
    .registration-form h2 {
        font-size: 1.6rem;
    }
    
    .primary-contact-section h3,
    .additional-attendees-section h3 {
        font-size: 1.3rem;
    }
    
    .additional-attendee-card .card-header {
        padding: 15px 20px;
    }
    
    .additional-attendee-card .card-body {
        padding: 20px;
    }
    
    .registration-summary {
        padding: 20px;
        margin: 0 10px 30px 10px;
    }
    
    .form-actions .btn-primary {
        width: 100%;
        padding: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
        /* Maintain 3:1 aspect ratio on small screens */
        aspect-ratio: 3 / 1;
        /* Ensure full width coverage without cropping */
        background-size: 100% 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1rem;
    }
    
    .event-header h1 {
        font-size: 1.8rem;
    }
    
    .registration-form h2 {
        font-size: 1.4rem;
    }
    
    .primary-contact-section h3,
    .additional-attendees-section h3 {
        font-size: 1.2rem;
    }
}

/* Calendar buttons styling */
.calendar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.calendar-buttons .btn {
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.875rem;
}

.calendar-buttons .btn i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.calendar-buttons .btn-outline-primary {
    color: #1a1a1a;
    border: 1px solid #cccccc;
    background: #ffffff;
}

.calendar-buttons .btn-outline-primary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: none;
}

.calendar-buttons .btn-outline-primary:focus {
    box-shadow: none;
    outline: none;
}

/* Responsive calendar buttons */
@media (max-width: 576px) {
    .calendar-buttons {
        flex-direction: column;
    }
    
    .calendar-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}