/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #313131;
    background-color: #FFF5F3;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 670px;
    background-color: rgba(255, 122, 89, 0.1);
    overflow: hidden;
}

.hero-content {
    max-width: 1173.354px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    height: 100%;
}

.footer-class-new {
    height: 72.042px !important;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    height: auto;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    width: 72px;
    height: 72px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: #313131;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

.contact-btn {
    background-color: #FF7A59;
    color: white;
    border: none;
    padding: 16.5px 30px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 18px;
    line-height: 22px;
    width: 157px;
    height: 55px;
    font-weight: 500;
    text-align: center;
}

.hero-text {
    max-width: 635px;
    margin-top: 50px;
}

.hero-text h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #313131;
    font-weight: 600;
}

.school-name {
    position: relative;
    margin-top: 20px;
}

.school-name p {
    color: #6F727E;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 35px;
    font-weight: 400;
}

.underline {
    width: 100%;
    max-width: 635px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
}

.location-card.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.line-art-illustrationdemo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 314px;
    background: url('slider.png') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.line-art-illustration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 314px;
    background: url('slider.png') no-repeat bottom;
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.time-slot.full {
    background-color: #eee;
    color: #ee0707;
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid #ddd;
}

/* Enhanced Media Queries for Better Responsiveness */
@media screen and (min-width: 1200px) {
    .hero-content {
        padding: 30.936px 133px;
    }

    header {
        margin-bottom: 125px;
        height: 72.042px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .underline {
        width: 635px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .hero-content {
        padding: 30px 40px;
    }

    header {
        margin-bottom: 80px;
        height: auto;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .contact-btn {
        width: 140px;
        height: 50px;
        font-size: 16px;
        padding: 14px 25px;
    }
}

@media screen and (max-width: 767px) {
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 20px 15px;
    }

    header {
        margin-bottom: 40px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-link {
        font-size: 16px;
    }

    .contact-btn {
        width: 100%;
        max-width: 200px;
        height: 45px;
        font-size: 16px;
        padding: 12px 20px;
    }

    .hero-text {
        margin-top: 30px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .school-name p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .line-art-illustration {
        min-height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        min-height: 450px;
    }

    .hero-content {
        padding: 15px 10px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .contact-btn {
        font-size: 14px;
        padding: 10px 15px;
        height: 40px;
    }

    .nav-link {
        font-size: 14px;
    }
}

/* Section Styles */
section {
    margin: 0 auto;
    padding: 30px 20px;
}

h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

/* Location Cards */
/* .location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
} */

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* fixed 3 columns */
    gap: 20px;
}


.location-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 14px rgba(186, 186, 186, 0.15);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 20px rgba(186, 186, 186, 0.2);
}

.location-card.selected {
    background-color: #FF7A59;
    color: white;
}

.location-card.selected p{
    color: white;
}

.checkbox {
    width: 30px;
    height: 30px;
    border: 1px solid #B3B3B3;
    border-radius: 5px;
    position: relative;
    flex-shrink: 0;
}

.checkbox.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #FF7A59;
    border-radius: 2px;
}

.location-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.location-info p {
    color: #6F727E;
    font-size: 16px;
}

/* Tour Type Cards */
/* .tour-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
} */

.tour-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3-column layout */
    gap: 20px;
}

.tour-type-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 14px rgba(186, 186, 186, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tour-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 20px rgba(186, 186, 186, 0.2);
}

.tour-type-card.selected {
    background-color: #FF7A59;
    color: white;
}

.tour-type-card.selected .checkbox {
    border-color: #FF7A59;
    background: white;
}

.location-card.selected .checkbox {
    border-color: #FF7A59;
    background: white;
}

.checkbox.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9.5px;
    height: 7.4px;
    background: transparent;
    border: 2px solid #FF7A59;
    border-top: none;
    border-right: none;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.tour-info {
    flex: 1;
}

.tour-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #4D4D4D;
}

.tour-type-card.selected .tour-info h3 {
    color: white;
}

.tour-info p {
    color: #6F727E;
    font-size: 16px;
    opacity: 0.7;
}

.tour-type-card.selected .tour-info p {
    color: white;
    opacity: 0.7;
}

.location-section {
    max-width: 1171px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tour-type-section {
    max-width: 1171px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Date and Time Selection */
.datetime-section {
    max-width: 1171px;
    margin: 0 auto;
    padding: 30px 20px;
}

.datetime-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .datetime-container {
        grid-template-columns: 1fr 1fr;
    }
}

.calendar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 14px rgba(186, 186, 186, 0.15);
    width: 100%;
    max-width: 576px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header h3 {
    font-size: 24px;
    color: #4D4D4D;
    font-weight: 600;
}

.prev-month {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.weekdays div {
    text-align: center;
    color: #4D4D4D;
    font-size: 16px;
    font-weight: 500;
}

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

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4D4D4D;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.day:hover:not(.disabled) {
    background-color: #FFF5F3;
}

.day.selected {
    background-color: #FFF5F3;
    color: black;
}

.day.disabled {
    color: #808080;
    cursor: not-allowed;
}

.day.selected.active-selected{
    background-color: #FF7A59;
    color: white;
}

.time-slots {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 14px rgba(186, 186, 186, 0.15);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
}

.time-slot {
    background: #FFF5F3;
    border-radius: 5px;
    padding: 16.5px 30px;
    text-align: center;
    color: #6F727E;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: #FF7A59;
    color: white;
}

.time-slot.selected {
    background: #FF7A59;
    color: white;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

label {
    font-size: 18px;
    color: #4D4D4D;
}

input {
    padding: 20px;
    border: 1px solid #E6E6E6;
    border-radius: 7px;
    background: #FFF5F3;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #FF7A59;
}

.note {
    font-size: 14px;
    color: #6F727E;
    margin-top: 20px;
    line-height: 1.4;
}

.add-child-btn {
    background-color: #FF7A59;
    color: white;
    border: none;
    padding: 16.5px 30px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
}

.add-child-btn:hover {
    background-color: #e66a4a;
    transform: translateY(-1px);
}

/* Personal Information and Child Details Sections */
.personal-info-section,
.child-info-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto 30px;
    box-shadow: 0 20px 14px rgba(186, 186, 186, 0.15);
    max-width: 1140px;
}

/* Footer */
footer {
    max-width: 1171px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (min-width: 768px) {
    footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.signup-btn {
    background-color: #FF7A59;
    color: white;
    border: none;
    padding: 16.5px 30px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 10px;
    max-width: 300px;
    margin: 10px auto 0 auto;
    display: block;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background-color: #e66a4a;
    transform: translateY(-1px);
}

.signup-btn-remove {
    background-color:#f10e2d;
    color: white;
    border: none;
    padding: 6.5px 15px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    margin-top: 10px;
    max-width: 281px;
    margin: -105px auto 0 auto;
    display: block;
    transition: all 0.3s ease;
}

.signup-btn-remove:hover {
    background-color: #d90c26;
}

@media (min-width: 768px) {
    .signup-btn {
        width: auto;
    }
}

/* Additional Mobile Responsive Improvements */
@media screen and (max-width: 767px) {
    section {
        padding: 20px 15px;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 25px;
        text-align: center;
    }

    .location-grid,
    .tour-type-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .location-card,
    .tour-type-card {
        padding: 20px;
        gap: 20px;
        flex-direction: column;
        text-align: center;
    }

    .location-info h3,
    .tour-info h3 {
        font-size: 20px;
    }

    .location-info p,
    .tour-info p {
        font-size: 14px;
    }

    .calendar,
    .time-slots {
        padding: 20px;
    }

    .calendar-header h3 {
        font-size: 20px;
    }

    .weekdays div {
        font-size: 14px;
    }

    .day {
        font-size: 16px;
    }

    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .time-slot {
        padding: 12px 20px;
        font-size: 14px;
    }

    .personal-info-section,
    .child-info-section {
        padding: 20px;
        margin: 0 auto 20px;
    }

    .form-group {
        gap: 8px;
    }

    label {
        font-size: 16px;
    }

    input {
        padding: 15px;
        font-size: 14px;
    }

    .add-child-btn {
        padding: 14px 25px;
        font-size: 16px;
    }

    .note {
        font-size: 12px;
        margin-top: 15px;
    }

    footer {
        padding: 20px 15px;
        text-align: center;
    }

    .terms {
        justify-content: center;
    }

    .signup-btn {
        padding: 14px 25px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        padding: 15px 10px;
    }

    section {
        padding: 15px 10px;
    }

    h2 {
        font-size: 24px;
    }

    .location-card,
    .tour-type-card {
        padding: 15px;
        gap: 15px;
    }

    .location-info h3,
    .tour-info h3 {
        font-size: 18px;
    }

    .location-info p,
    .tour-info p {
        font-size: 13px;
    }

    .calendar,
    .time-slots {
        padding: 15px;
    }

    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .time-slot {
        padding: 10px 15px;
        font-size: 12px;
    }

    .personal-info-section,
    .child-info-section {
        padding: 15px;
    }

    input {
        padding: 12px;
        font-size: 13px;
    }

    .add-child-btn,
    .signup-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.contact-btn:focus,
.add-child-btn:focus,
.signup-btn:focus,
.time-slot:focus,
.day:focus {
    outline: 2px solid #FF7A59;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero,
    .line-art-illustration,
    .add-child-btn,
    .signup-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .location-card,
    .tour-type-card,
    .calendar,
    .time-slots,
    .personal-info-section,
    .child-info-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
