/* ===== BeTheme-style minimal UI ===== */

#divBookedExams table th,
#divBookedExams table td {
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

#divBookedExams table tr:last-child td {
    border-bottom: none; /* remove last row border */
}

#divBookedExams th {
    background: #2c3e50;
    color: #fff;
}

#divBookedExams td, #divBookedExams th {
    padding: 10px;
    text-align: center;
}

.ec-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ec-field {
    flex: 1;
    min-width: 240px;
}

    .ec-field label {
        font-weight: 600;
        margin-bottom: 6px;
        display: block;
    }

    .ec-field select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

.ec-calendar {
    display: none;
    margin-top: 10px;
}

    .ec-calendar h4 {
        margin-bottom: 10px;
    }

#calendarDays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 2%;
}

    #calendarDays div {
        padding: 10px;
        text-align: center;
        border-radius: 10px;
        background: #f5f5f5;
        color: #aaa;
    }

    #calendarDays .active {
        background: #e80b8c;
        color: #ffff;
        border: 2px solid #1255a2;
        cursor: pointer;
        font-weight: 600;
    }

.ec-details {
    /*  display: none; */
    margin-top: 20px;
}

    .ec-details button {
        background: #b60000;
        color: #fff;
        border: none;
        padding: 12px 20px;
        border-radius: 4px;
        cursor: pointer;
    }

.emd-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.emd-group {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

    .emd-group label {
        margin-bottom: 6px;
        font-weight: 600;
    }

    .emd-group select {
        padding: 10px;
        font-size: 16px;
        width: 100%;
    }

.calendar-container {
    width: 600px;
    font-family: Arial, sans-serif;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5% 1% 1%;
}

    .calendar-header button {
        background: red;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 18px;
        cursor: pointer;
    }
/*
.weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}
*/
.weekdays div {
    font-weight: bold;
    text-align: center;
}


.calendar-days .active {
    background: #ffe3e3;
    color: red;
    border: 2px solid red;
    cursor: pointer;
}

.calendar-days .empty {
    background: transparent;
}

.login-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.login-box {
    position: relative;
    width: 50%;
    min-height: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    margin: 5% auto;
    z-index: 10000;
    text-align: center;
    align-content: center;
}

    .login-box input {
        padding: 10px;
        margin: 8px 0;
    }

    .login-box button {
        width: 50%;
        padding: 10px;
        margin-top: 10px;
        cursor: pointer;
    }

.register-box {
    position: relative;
    width: 75%;
    min-height: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    margin: 5% auto;
    z-index: 10000;
    text-align: center;
    align-content: center;
}

    .register-box input {
        width: 100%;
        padding: 10px;
        margin: 8px 0;
    }

    .register-box button {
        width: 50%;
        padding: 10px;
        margin-top: 10px;
        cursor: pointer;
    }

    .register-box table tr td {
        text-align: left;
    }

.progress-container {
    width: 60%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    align-content: center;
    margin: 5% 5% 0% 20%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

    .step span {
        width: 40px;
        height: 25px;
        border-radius: 65%;
        background: #ccc;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    .step.completed span {
        background: #2ecc71;
    }

    .step.active span {
        background: #3498db;
    }

    .step p {
        margin-top: 6px;
        font-size: 12px;
        text-align: center;
    }

.line {
    flex: 1;
    height: 6px;
    background: #ccc;
    margin: 0 10px;
    border-radius: 3px;
}

    .line.active {
        background: linear-gradient(to right, #2ecc71, #3498db);
    }


.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot {
    text-decoration: none;
    /* color: #ff0080; */ /* adjust color if needed */
}


/* Payment */
.checkout-wrapper {
    display: flex;
    gap: 30px;
    background: #ffe3e3;
    padding: 30px;
    border-radius: 20px;
}

.checkout-left,
.checkout-right {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    flex: 1;
}

.radio-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.promo-box {
    background: #fdecec;
    padding: 12px;
    border-radius: 8px;
    color: #d60000;
    margin: 20px 0;
    font-weight: 600;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.state-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.terms {
    display: block;
    margin: 15px 0;
}

.pay-btn {
    width: 100%;
    padding: 15px;
    background: #f26464;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: not-allowed;
}

    .pay-btn.active {
        cursor: pointer;
        opacity: 1;
    }

.note {
    text-align: center;
    margin-top: 10px;
    color: #777;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price {
    margin-top: 20px;
    font-size: 26px;
    font-weight: bold;
    color: #d60000;
}

/* === UI background match with payment === */
.login-box,
.register-box,
.exam-calendar-container,
.ec-wrap,
.calendar-container {
    background: #ffe3e3;
    border-radius: 20px;
}

.checkout-center {
    max-width: 500px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    text-align: left;
}

    .checkout-center h3 {
        text-align: center;
        margin-bottom: 20px;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

    .summary-row.total {
        font-size: 18px;
        font-weight: bold;
        border-top: 2px solid #000;
        margin-top: 10px;
    }

.pay-btn {
    width: 100%;
    margin-top: 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

    .pay-btn:hover {
        background: #005f8d;
    }

.note {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}
/* === BeTheme mobile responsiveness === */
@media (max-width: 767px) {

    .ec-wrap {
        flex-direction: column;
    }

    .calendar-container,
    .login-box,
    .register-box,
    .progress-container {
        width: 100%;
        max-width: 100%;
    }

    .checkout-wrapper {
        flex-direction: column;
    }

    .ec-wrap,
    .emd-container {
        flex-direction: column;
    }

    /* Main register box */
    .register-box {
        width: 100%;
        max-width: 100%;
        margin: 40px auto;
        padding: 20px 16px;
        border-radius: 16px;
        box-sizing: border-box;
    }

        /* Form layout: force single column */
        .register-box table,
        .register-box table tr,
        .register-box table td {
            display: block;
            width: 100%;
        }

            .register-box table td {
                margin-bottom: 16px;
            }

        /* Inputs */
        .register-box input,
        .register-box select {
            width: 100%;
            font-size: 16px; /* prevents iOS zoom */
            padding: 12px;
            box-sizing: border-box;
        }

        /* Buttons */
        .register-box button {
            width: 100%;
            padding: 14px;
            font-size: 16px;
        }

    /* Progress wrapper */
    .progress-container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 8px;
        width: 100%;
        height: 50%;
        margin: auto;
    }

    /* Individual step */
    .step {
        min-width: 10%;
        flex: 0 0 auto;
        text-align: center;
    }

        .step span {
            width: 30%;
            height: 25px;
            font-size: 14px;
            line-height: 36px;
            margin: 0 auto 6px;
        }

        /* Step label text */
        .step p {
            font-size: 11px;
            line-height: 1.3;
            white-space: normal; /* allow wrap */
            max-width: 90px;
            margin: 0 auto;
            word-break: break-word;
        }

    /* Connector line */
    .line {
        min-width: 15px;
        height: 4px;
        margin: 0;
        flex: 0 0 auto;
    }

    /* Hide scrollbar visually */
    .progress-container::-webkit-scrollbar {
        display: none;
    }

    .progress-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    /* Content spacing below steps */
    .ec-wrap,
    .emd-container {
        margin-top: 20px;
    }



    /*  Custom css*/
    #calendarDays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        margin: 2%;
    }

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

    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 2%;
    }

    calendar-header button {
        background: red;
        color: white;
        border: none;
        border-radius: 50%;
        width: 10% !important;
        height: 7% !important;
        font-size: 10px;
        cursor: pointer;
    }

    .emd-group {
        flex: 1 1 1px;
        display: flex;
        flex-direction: column;
    }

    .calendar-header button {
        background: red;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 10px;
        cursor: pointer;
    }

    .calendar-header button {
        background: red;
        color: white;
        border: none;
        border-radius: 30%;
        width: 1%;
        height: 1% !important;
        font-size: 10px;
        cursor: pointer;
    }

    #prevMonth {
        border: none;
        padding: 1%;
        border-radius: 30px;
    }

    #nextMonth {
        border: none;
        padding: 1%;
        border-radius: 30px;
    }
}

.flatpickr-current-month .cur-year {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
}

.flatpickr-current-month {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/*
.calendar-days{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:5px;
}
*/
.weekdays {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-day,
.empty {
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
}

.empty {
    background: #f7f7f7;
    border: none;
}

.calendar-day.active {
    background: #0d6efd;
    color: #fff;
    cursor: pointer;
}

.calendar-day.disabled {
    background: #efefef;
    color: #999;
    cursor: not-allowed;
}
