/* ===== Google Font Import - Poformsins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: #4070f4;
}

.container {
    position: relative;
    max-width: 430px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.container .forms {
    display: flex;
    align-items: center;
    height: 440px;
    width: 200%;
    transition: height 0.2s ease;
}


.container .form {
    width: 50%;
    padding: 30px;
    background-color: #fff;
    transition: margin-left 0.18s ease;
}

.container.active .login {
    margin-left: -50%;
    opacity: 0;
    transition: margin-left 0.18s ease, opacity 0.15s ease;
}

.container .signup {
    opacity: 0;
    transition: opacity 0.09s ease;
}

.container.active .signup {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.container.active .forms {
    height: 600px;
}

.container .form .title {
    position: relative;
    font-size: 27px;
    font-weight: 600;
}

.form .title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 30px;
    background-color: #4070f4;
    border-radius: 25px;
}

.form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 30px;
}

.input-field input {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 0 35px;
    border: none;
    outline: none;
    font-size: 16px;
    border-bottom: 2px solid #ccc;
    border-top: 2px solid transparent;
    transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid) {
    border-bottom-color: #4070f4;
}

.input-field i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 23px;
    transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid)~i {
    color: #4070f4;
}

.input-field i.icon {
    left: 0;
}

.input-field i.showHidePw {
    right: 0;
    cursor: pointer;
    padding: 10px;
}

.form .checkbox-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.checkbox-text .checkbox-content {
    display: flex;
    align-items: center;
}

.checkbox-content input {
    margin-right: 10px;
    accent-color: #4070f4;
}

.form .text {
    color: #333;
    font-size: 14px;
}

.form a.text {
    color: #4070f4;
    text-decoration: none;
}

.form a:hover {
    text-decoration: underline;
}

.form .button {
    margin-top: 35px;
}

.form .button input {
    border: none;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 6px;
    background-color: #4070f4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button input:hover {
    background-color: #265df2;
}

.form .login-signup {
    margin-top: 30px;
    text-align: center;
}

#loginMessage {
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* ==========================================
   BOOKING FORM
========================================== */

.booking-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Main form */

#bookingForm {
    width: 100%;
    padding: 40px;
    background: white;
    border-radius: 12px;
}

/* Header */

.booking-header {
    text-align: center;
    margin-bottom: 35px;
}

.booking-header h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.booking-header p {
    max-width: 650px;
    margin: auto;
    color: #666;
    line-height: 1.6;
}


/* Sections */

.booking-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
}

.booking-section h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.booking-section > p {
    color: #666;
    font-size: 14px;
    margin-bottom: 22px;
}


/* Contact fields */

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-field {
    display: flex;
    flex-direction: column;
}

.booking-field label,
.participant-field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.booking-field label span {
    font-weight: normal;
    color: #888;
}


.booking-field input,
.participant-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.booking-field input:focus,
.participant-field input:focus {
    border-color: #4070f4;
}


/* ==========================================
   PARTICIPANTS
========================================== */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading p {
    margin: 0;
    color: #666;
    font-size: 14px;
}


/* Add participant button */

.add-participant-btn {
    flex-shrink: 0;
    border: 1px solid #4070f4;
    background: white;
    color: #4070f4;
    border-radius: 6px;
    padding: 9px 15px;
    cursor: pointer;
    font-size: 14px;
}

.add-participant-btn:hover {
    background: #4070f4;
    color: white;
}


/* Participant row */

.participant-row {
    display: grid;
    grid-template-columns: 40px 1fr 130px;
    gap: 15px;
    align-items: end;

    padding: 15px;
    margin-bottom: 12px;

    border: 1px solid #e5e5e5;
    border-radius: 7px;
    background: #fafafa;
}

.participant-number {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #4070f4;
    color: white;

    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 7px;
}

.participant-field {
    display: flex;
    flex-direction: column;
}


/* ==========================================
   CALENDAR
========================================== */

#bookingCalendar {
    width: 100%;
    max-width: 520px;
    margin: 20px auto;
}

#bookingCalendar .fc {
    font-size: 13px;
}

#bookingCalendar .fc-toolbar-title {
    font-size: 17px;
}

#bookingCalendar .fc-button {
    padding: 4px 8px;
    font-size: 12px;
}

/* Sunday / Monday */

#bookingCalendar .unavailable-day {
    background: #f2f2f2 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
}

/* Bookable trial dates */

#bookingCalendar .bookable-trial-date {
    background: #d8f3dc !important;
    color: #1b4332 !important;
    cursor: pointer !important;
}

#bookingCalendar .bookable-trial-date:hover {
    background: #b7e4c7 !important;
}


/* Calendar legend */

.trial-calendar-legend {
    max-width: 520px;
    margin: 5px auto 20px;
    text-align: left;
}

.trial-calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

.trial-calendar-legend-colour {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #d8f3dc;
    border: 1px solid #95d5b2;
    border-radius: 3px;
}

/* Selected date */

#bookingCalendar .selected-booking-date {
    background: #4070f4 !important;
    color: white !important;
}


/* Message */

.date-selection-message {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
}


/* ==========================================
   SUBMIT
========================================== */

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

.booking-submit-btn {
    width: 100%;
    max-width: 400px;
    height: 50px;

    border: none;
    border-radius: 6px;

    background: #4070f4;
    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.booking-submit-btn:hover {
    background: #305dcc;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .booking-container {
        padding: 20px 10px 40px;
    }

    #bookingForm {
        padding: 25px 18px;
    }

    #bookingCalendar {
        max-width: 100%;
    }

}

#selectedDatesList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.selected-date-item {
    display: inline-block;

    padding: 8px 14px;

    background-color: #4070f4;
    color: #ffffff;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.booking-success {
    max-width: 650px;

    margin: 40px auto;

    padding: 30px;

    text-align: center;

    background: #f0f9f1;

    border: 1px solid #b7dfba;

    border-radius: 10px;
}

.booking-success h3 {
    margin-bottom: 15px;

    color: #2e7d32;
}

.booking-success p {
    margin-bottom: 10px;

    color: #444;

    line-height: 1.6;
}

.booking-confirmation {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 40px auto;
}

.booking-confirmation h2 {
    color: #4070f4;
    margin-bottom: 20px;
}

.booking-confirmation p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.booking-home-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: #4070f4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.booking-home-btn:hover {
    background: #265df2;
    color: white;
}