@font-face {
    font-family: "roboto";
    src: url(./fonts/Roboto-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "roboto";
    src: url(./fonts/Roboto-Medium.ttf);
    font-weight: 500;
}

@font-face {
    font-family: "roboto";
    src: url(./fonts/Roboto-Bold.ttf);
    font-weight: 700;
}

@font-face {
    font-family: "nunito";
    src: url(./fonts/Nunito-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "nunito";
    src: url(./fonts/Nunito-Medium.ttf);
    font-weight: 500;
}

@font-face {
    font-family: "nunito";
    src: url(./fonts/Nunito-Bold.ttf);
    font-weight: 700;
}

:root {
    --font-main: "roboto";
    --text-title: #101010;
    --text-describe: #646764;
    --color-button: #962428;
    --color-hover: #ff551d;
    --mauchinh: #171f32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-style: normal;
    font-size: 16px;
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--text-title);
}

.sct-booking {
    max-width: 1300px;
    margin: 0 auto;
}

section.section-booking {
    padding: 50px 0;
}

.calendar-booking {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 20px;
    gap: 5px;
}

.wd-calendar-container {
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    max-width: 330px;
    position: relative;
    border: 3px solid #4d4d4d;
}

.ui-datepicker {
    border: none;
    width: auto;
    padding: 0;
}

.ui-datepicker table {
    margin: 0;
}

.ui-datepicker-header {
    background: #444 !important;
    color: #fff;
    border: none;
    padding: 10px 0;
    font-weight: bold;
}

.ui-datepicker-calendar {
    width: 100%;
    border-collapse: collapse;
}

.ui-datepicker th {
    text-align: center;
    padding: 12px 0;
    color: #444;
    font-weight: 700;
    border: 1px solid #c5c5c5;
}

.ui-datepicker td {
    text-align: center;
    padding: 0;
    border: 1px solid #c5c5c5;
}

.form-booking .ui-datepicker td a {
    display: block;
    text-align: center;
    color: #fff;
    background-color: #59b200;
    text-decoration: none;
}

.ui-datepicker td span,
.ui-datepicker td a {
    text-align: center;
    padding: 15px 0;
    font-size: 0.7em;
    font-weight: 700;
    border: none !important;
}

.ui-datepicker td a:hover {
    background: #ddd;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight {
    border: 1px solid #c5c5c5;
    background: #f6f6f6;
    font-weight: normal;
    color: #454545;

}


.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
    background-color: #555555 !important;
    color: #fff;
}

.wd-calendar-btn {
    margin-top: 20px;
    background: #4CAF50;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.wd-calendar-btn:hover {
    background: #45a045;
}

.wd-calendar-output {
    margin-top: 15px;
    font-weight: bold;
}

#custom-controls {
    position: absolute;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 5px;
    left: 0;
    padding: 0 10px;
}

#custom-controls button {
    background: transparent;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 35px;
    line-height: 0.6;
}

#custom-controls button#nextMonth {
    margin-left: auto;
}


.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    display: none;
}

.calendar-header {
    background: #444;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot {
    position: relative;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    min-width: 130px;
    text-align: center;
    line-height: 1.3;
    user-select: none;
}

.time-slot input[type="radio"] {
    display: none;
}

.time-slot:has(input:checked) {
    background-color: #555;
    color: #fff;
    border-color: #555;
}

.time-slot span {
    display: inline-block;
    white-space: nowrap;
    width: auto;
}

.calendar th,
.calendar td {
    width: 14.28%;
    height: 40px;
    text-align: center;
    border: 1px solid #ccc;
    font-size: 0.7em;
    font-weight: 700;
}

.calendar td.available {
    background-color: #59b200;
    color: white;
}

.calendar td.unavailable {
    color: #b0b0b0;
    font-weight: 400;
}

.legend {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-box {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    vertical-align: middle;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.legend-box {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-box.available {
    background-color: #4CAF50;
}

.legend-box.booked {
    background-color: #C62828;
}

.legend-box.pending {
    background-color: #F9A825;
}

.powered {
    font-size: 0.6em;
    color: #777;
    text-align: left;
}

.powered a {
    color: #337ab7;
}

.time-booking-buttons {
    padding: 20px;
    font-family: sans-serif;
}

.title-time {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    color: #636363;
}

.time-slot-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.time-slot {
    background-color: #FAFAFA;
    border: 1px solid #ccc;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    height: fit-content;
    color: #737373;
    transition: all 0.3s ease;
    font-size: 0.9em;
    min-width: 215px;
}

.time-slot:hover {
    background-color: #e0e0e0;
}

.time-slot.active {
    background-color: #666;
    color: #fff;
    border-color: #666;
}

.form-booking {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-gr {
    display: flex;
    flex-direction: column;
}

.input-gr span.error {
    align-items: center;
    gap: 10px;
    border: 1px solid rgb(213 173 103);
    border-left: 5px solid #e09118;
    padding: 5px 10px;
    width: 100%;
    color: #916c34;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.input-gr span.error.show-error {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}

.title-ip {
    font-size: 1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;

}

.form-container .box-text-booking {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.box-text-booking input,
.box-text-booking textarea {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border 0.3s ease;
    resize: vertical;
    width: 100%;

}

.box-text-booking input:focus,
.box-text-booking textarea:focus {
    border-color: #007bff;
    outline: none;
}

.box-text-booking textarea {
    min-height: 100px;
}

.box-text-booking .box-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.button-send {
    display: flex;
    justify-content: flex-start;
}

.btn-send {
    background-color: #F9F9F9;
    color: #777777;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.btn-send:hover {
    border: 2px solid #0056b3;
}

.confirmation-container {
    padding: 16px;
    color: #222;
    max-width: 900px;
    margin: auto;
    padding: 70px 0;
}

.confirmation-message {
    margin-bottom: 16px;
    font-weight: 400;
    color: var(--text-describe);
}

.confirmation-box {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.confirmation-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.confirmation-header span {
    color: #444;
}

.confirmation-line {
    width: 4px;
    height: 20px;
    background: #8bc34a;
    margin-right: 10px;
    display: inline-block;
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
}

.confirmation-section h4 {
    margin-bottom: 8px;
    font-size: 16px;
    padding-bottom: 4px;
    font-weight: 400;
}

.confirmation-section p {
    margin: 10px 0;
    font-size: 15px;
    font-weight: 400;
}

.confirmation-section p span {
    color: #444;
}

.confirmation-section strong {
    font-weight: 600;
}

.loading-booking {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.loading-booking img {
    width: 40px;
    display: none;
}

@media (min-width: 768px) {
    .confirmation-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .confirmation-section {
        width: 48%;
    }
}

@media(min-width:480px) {
    .time-slot-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media(min-width:768px) {

    .box-text-booking input,
    .box-text-booking textarea {
        width: 335px;
    }

    .box-text-booking .box-input {
        flex-direction: row;
    }

    .input-gr span.error {
        width: 200px;
    }

    .input-gr.date span.error {
        width: 100%;
    }
}

@media(min-width:996px) {

    section.section-booking {
        padding: 100px 0;
    }
}