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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #4a0b13; /* Dark red background */
}

/* Header Styles */
header {
    width: 100%;
    background-color: #0a2351; /* Dark blue for hockey theme */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* Banner Styles */
.banner {
    max-width: 1200px;
    margin: 0 auto 0.4rem auto;
    padding: 0 2rem;
    text-align: center;
}

/* Navigation Styles */
.main-nav {
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    padding: 0 2rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #0a2351;
    border-radius: 8px;
    overflow: hidden;
}

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem;
    transition: background-color 0.3s;
    font-weight: bold;
}

.main-nav a:hover {
    background-color: #061a3c;
}

.main-nav a.active {
    background-color: #ec1d27;
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin-bottom: 1px;
    }
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner h1 {
    color: white; /* White text for better contrast on red */
    margin-bottom: 0;
    font-size: 2.5rem;
    text-align: center; /* Center align the title */
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Description Section */
.description {
    margin-bottom: 3rem;
    text-align: left;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
}

.left-logo {
    margin-right: 1.5rem;
}

.right-logo {
    margin-left: 1.5rem;
}

.description h1 {
    color: #0a2351; /* Dark blue for hockey theme */
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.description h3 {
    color: #0a2351;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
}

.description h4 {
    color: #0a2351;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    width: 100%;
}

.description h5 {
    color: #0a2351;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    width: 100%;
}

.description p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.description ul {
    list-style-type: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.description ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.description ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0a2351;
    font-weight: bold;
}

.description ul li ul {
    margin-top: 0.8rem;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.description strong {
    color: #0a2351;
    font-weight: bold;
}

/* Team Listing Styles */
.team-listing {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
}

.team-listing ul {
    flex: 1;
    max-width: 48%;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .team-listing {
        flex-direction: column;
    }
    
    .team-listing ul {
        max-width: 100%;
    }
}

/* Program Grid Styles */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.program-grid-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.program-grid-item h4 {
    color: #0a2351;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr;
    }
}

/* Schedule Section */
.schedule {
    margin-bottom: 3rem;
}

.schedule h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white; /* White text for better contrast on red background */
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Add shadow for better readability */
}

/* Calendar Styles */
.calendar-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    color: #0a2351;
    font-size: 1.5rem;
}

.calendar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.month {
    flex: 1;
    min-width: 300px;
    margin-bottom: 2rem;
}

.month h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: #0a2351;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #0a2351;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.days div {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.days div:hover:not(:empty) {
    background-color: #e9ecef;
}

/* Calendar Day Types */
.current-day {
    background-color: #4285f4 !important; /* Blue background for current day */
    color: white !important;
    font-weight: bold;
    position: relative;
}

.event-day {
    background-color: #ec1d27 !important; /* Red background for event days */
    color: white !important;
    font-weight: bold;
    position: relative;
}


.holiday-day {
    background-color: #ffca28 !important; /* Yellow background for holidays */
    color: #333 !important;
    font-weight: bold;
    position: relative;
}

.tournament-day {
    background-color: #9c27b0 !important; /* Purple background for tournaments */
    color: white !important;
    font-weight: bold;
    position: relative;
}

.event-day:hover::after,
.holiday-day:hover::after,
.tournament-day:hover::after,
.current-day:hover::after {
    content: attr(data-event);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
}

/* Calendar Key */
/* Division Selector Styles */
.division-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.division-btn {
    background-color: #f8f9fa;
    color: #0a2351;
    border: 2px solid #0a2351;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.division-btn:hover {
    background-color: #0a2351;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.division-btn.active {
    background-color: #0a2351;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calendar-key {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    border-top: 1px solid #eee;
}

.key-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.key-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.key-current { background-color: #4285f4; }
.key-event { background-color: #ec1d27; }
.key-holiday { background-color: #ffca28; }
.key-tournament { background-color: #9c27b0; }

/* Events Row */
.events-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .events-row {
        flex-direction: column !important;
        align-items: center !important;
        display: flex !important;
    }
    
    .month-events {
        width: 100% !important;
        margin-bottom: 2rem !important;
        display: block !important;
    }
}

/* Month Dates */
.month-dates {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.month-dates h5 {
    color: #0a2351;
    margin-top: 0;
    margin-bottom: 0.8rem;
    text-align: center;
    font-size: 1.1rem;
}

.month-dates ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.month-dates li {
    margin-bottom: 0.6rem;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.month-dates li::before {
    content: "🏒";
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .month-dates li {
        font-size: 0.85rem;
    }
}

/* Month Events */
.month-events {
    flex: 1;
    min-width: 300px;
}

.month-events h5 {
    color: #0a2351;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-align: center;
}

.month-events ul {
    list-style-type: none;
}

.month-events li {
    margin-bottom: 0.6rem;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .month-events ul {
        display: block !important;
        width: 100% !important;
    }
    
    .month-events li {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.8rem;
    }
}

.month-events li::before {
    content: "🏒";
    position: absolute;
    left: 0;
}

/* Schedule List */
.schedule-list {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.schedule-list h4 {
    color: #0a2351;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.schedule-list ul {
    list-style-type: none;
}

.schedule-list li {
    margin-bottom: 0.8rem;
    padding-left: 20px;
    position: relative;
}

.schedule-list li::before {
    content: "🏒";
    position: absolute;
    left: 0;
}

/* Coaches Section */
.coaches {
    margin-bottom: 3rem;
}

.coaches-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.coaches-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0a2351; /* Dark blue for contrast on white background */
    font-size: 2rem;
    margin-top: 0;
}

.coaches-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.coach-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.coach-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #0a2351;
}

.coach-name {
    color: #0a2351;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.coach-qualifications {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.coach-qualifications li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: #555;
}

.coach-qualifications li::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Apply Section */
.apply {
    text-align: center;
    margin-bottom: 3rem;
}

.apply-button {
    background-color: #0a2351; /* Blue for contrast with red background */
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.apply-button:hover {
    background-color: #061a3c; /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.apply-button:active {
    transform: translateY(-1px);
}

/* Footer Styles */
footer {
    background-color: #000000; /* Black background */
    color: #f8f9fa;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Legal Text Styles */
.legal-text {
    font-size: 0.6rem; /* Very small text size */
    color: #777; /* Light gray color for low contrast */
    text-align: justify;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    line-height: 1.2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.legal-text h5 {
    font-size: 0.65rem;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
    color: #999;
}

.legal-text p {
    margin-bottom: 0.5rem;
}

/* Photo Gallery Styles */
.photo-gallery {
    margin-bottom: 3rem;
}

.photo-gallery h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white; /* White text for better contrast on red background */
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Add shadow for better readability */
}

.gallery-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 576px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.gallery-prev, .gallery-next {
    background-color: #0a2351;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-prev:hover, .gallery-next:hover {
    background-color: #ec1d27;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-dot.active {
    background-color: #0a2351;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

.modal-content {
    background-color: white;
    margin: 1% auto;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    height: 600px;
    overflow-y: auto;
    position: relative;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 0;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: #ec1d27;
}

.modal-content h2 {
    color: #0a2351;
    text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 0.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.05rem;
    font-weight: bold;
    color: #333;
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0a2351;
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 35, 81, 0.2);
}

/* Registration Page Styles */
.registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

.registration-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Field-specific styles */
#player-name, #parent1-name, #parent2-name {
    width: 100%;
}

#birth-year, #previous-level, #tournament-interest, #tournament-location {
    width: 60%;
    min-width: 150px;
}

#previous-team {
    width: 100%;
}

#previous-coach, #coach-contact {
    width: 100%;
}

#parent1-email, #parent2-email {
    width: 100%;
}

#parent1-phone, #parent2-phone {
    width: 60%;
    min-width: 150px;
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    display: inline;
    font-size: 0.9rem;
}

.registration-container h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #0a2351;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.back-button {
    background-color: #777;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.back-button:hover {
    background-color: #555;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.submit-button {
    background-color: #0a2351;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.submit-button:hover {
    background-color: #061a3c;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

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

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-message h3 {
    color: #0a2351;
    margin-bottom: 1.5rem;
}

.success-message p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-message a {
    color: #0a2351;
    text-decoration: underline;
}

.success-message .form-buttons {
    justify-content: center;
    margin-top: 2rem;
}

.success-message {
    text-align: center;
    padding: 1rem;
}

.success-message h2 {
    color: #0a2351;
    margin-bottom: 1.5rem;
}

.success-message p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ok-button {
    background-color: #0a2351;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.ok-button:hover {
    background-color: #061a3c;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.ok-button:active {
    transform: translateY(-1px);
}

/* Form Grid Layout - Changed to single column for vertical alignment */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h4 {
    color: #0a2351;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #0a2351;
    padding-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Jersey Options */
.jersey-options {
    display: none;
}

.jersey-options.show {
    display: block;
}

.tournament-options {
    display: none;
}

.tournament-options.show {
    display: block;
}

/* Liability Waiver Styles */
.liability-waiver-group {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    flex-direction: column;
    align-items: flex-start;
}

.liability-waiver-group label {
    font-weight: bold;
    color: #856404;
    margin-bottom: 0.5rem;
}

.waiver-link {
    color: #0a2351;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.waiver-link:hover {
    color: #ec1d27;
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
}

.waiver-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Waiver Content Styles */
.waiver-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.waiver-content h2 {
    color: #0a2351;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.waiver-content h4 {
    color: #0a2351;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.waiver-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Waiver Modal Styles */
.waiver-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
}

.waiver-modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.waiver-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.waiver-modal-header h3 {
    color: #0a2351;
    margin: 0;
    font-size: 1.5rem;
}

.waiver-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.waiver-close:hover {
    color: #ec1d27;
}

.waiver-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
}

.waiver-modal-body h2 {
    color: #0a2351;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.waiver-modal-body h4 {
    color: #0a2351;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.waiver-modal-body p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #333;
}

.waiver-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.waiver-cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.waiver-cancel-btn:hover {
    background-color: #5a6268;
}

.waiver-accept-btn {
    background-color: #0a2351;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.waiver-accept-btn:hover {
    background-color: #061a3c;
}

/* Mobile responsiveness for waiver modal */
@media (max-width: 768px) {
    .waiver-modal {
        padding: 10px;
    }
    
    .waiver-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .waiver-modal-header,
    .waiver-modal-body,
    .waiver-modal-footer {
        padding: 1rem;
    }
    
    .waiver-modal-body h2 {
        font-size: 1.1rem;
    }
    
    .waiver-modal-body h4 {
        font-size: 1rem;
    }
    
    .waiver-modal-footer {
        flex-direction: column;
    }
    
    .waiver-cancel-btn,
    .waiver-accept-btn {
        width: 100%;
    }
}
