@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --primary-color: #603AC4;
    --secondary-color: #613ac410;
    --background-color: #FFFCF4;
    --stroke-color: #613ac449;
    --text-color: #262626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

#reservation-form .header {
    display: flex;
    flex-direction: column;
}

#reservation-form .header .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#reservation-form .header .title h1 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 30px); 
}

#reservation-form .header .title .back-btn {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    transition: opacity 0.3s ease;
}

#reservation-form .header .title .back-btn:hover {
    opacity: 0.7;
}

#reservation-form .header p {
    max-width: 75%;
    font-size: clamp(12px, 1.5vw, 15px);
}

#reservation-form .body-container {
    height: auto;
    max-height: clamp(200px, 50vh, 400px);
    width: 100%;
    margin: 25px 0;
    overflow-y: auto;
}

#reservation-form .body-container::-webkit-scrollbar {
    width: 8px;
}

#reservation-form .body-container::-webkit-scrollbar-track {
    background: transparent; 
}

#reservation-form .body-container::-webkit-scrollbar-thumb {
    background-color: #613ac4; 
    border-radius: 10px;    
    border: 2px solid transparent;
    background-clip: content-box; 
}

#reservation-form .body-container::-webkit-scrollbar-thumb:hover {
    background-color: #452b8a; 
}

#reservation-form .body-container .introduction-container  {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.select-container {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    background-color: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    border-radius: 15px;
    padding: 15px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.select-container:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.select-container .select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-container .select-header .left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.select-container .select-header .left .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    background-color: #613ac43d;
    flex-shrink: 0;
    border-radius: 50%;
}

.select-container .select-header .left .name h2, .select-inside-container h2 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 20px);
}

.select-container .select-header .left .name h1, .select-inside-container h1 {
    color: var(--primary-color);
    font-style: italic;
    font-size: clamp(1.5rem, 1.5vw, 4rem);
    font-weight: 900;
}

.select-container .select-header .left .name p, .select-inside-container p {
    color: var(--text-color);
    font-weight: 300;
    font-size: clamp(12px, 1.5vw, 15px);
}

.select-container .select-header svg {
    margin-right: clamp(10px, 2vw, 20px);
    width: clamp(20px, 3vw, 38px);
    height: clamp(10px, 1vw, 22px);
}

.select-container .select-content {
    overflow: hidden;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    padding-bottom: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease 0.3s;
}

.select-container.active .select-content {
    opacity: 1;
}

.select-container .select-content li {
    font-size: clamp(12px, 1.5vw, 16px); 
    line-height: 1.5;
    list-style-type: disc;
    color: var(--text-color);
    margin-left: 20px;
}

.select-container .select-content button {
    width: 100%;
    align-self: flex-end;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-weight: 300;
    background-color: var(--primary-color);
    font-size: clamp(16px, 2vw, 20px);
    transition: background-color 0.2s, color 0.2s;
}

.select-container:not(.active) .select-content {
    max-height: 0;
    padding: 0;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease 0s;
}

#reservation-form .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

#reservation-form .footer .left {
    width: clamp(50%, 65%, 65%);
    padding: clamp(8px, 1.5vw, 12px) clamp(20px, 4vw, 40px);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    font-weight: 400;
    cursor: pointer;
    background-color: transparent;
    color: var(--primary-color);
    font-size: clamp(12px, 2vw, 18px);
    transition: background-color 0.2s, color 0.2s;
}

#reservation-form .footer .right {
    width: clamp(30%, 35%, 35%);
    padding: clamp(8px, 1.5vw, 10px) clamp(20px, 4vw, 40px);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    font-weight: 400;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-size: clamp(12px, 2vw, 18px);
    transition: background-color 0.2s, color 0.2s;
}

#reservation-form .footer .right.disabled {
    background-color: var(--stroke-color);
    border: 1px solid var(--stroke-color);
    cursor: not-allowed;
}

#reservation-form .footer .right.disabled:hover {
    background-color: var(--stroke-color);
    color: var(--background-color);
    border: 1px solid var(--stroke-color);
}

#reservation-form .footer .left:hover {
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

#reservation-form .footer .right:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.step-view-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
}

.step-view-container .circle {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 16px);
}

.step-view-container .circle span {
    position: absolute;
    left: 50%;
    bottom: -2em; 
    transform: translateX(-50%);
    color: var(--text-color);
    font-weight: 300;
    font-size: clamp(8px, 1.5vw, 12px);
}

.step-view-container .circle.active {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.step-view-container .line {
    width: clamp(20px, 3vw, 35px);
    height: clamp(1px, 0.3vw, 1px);
    background-color: var(--stroke-color);
}

.step-1-container, 
.step-2-container,
.step-3-container,
.step-4-container,
.step-5-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: 100%;
    width: 100%;
}

.checkbox-container {
    cursor: pointer;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: var(--secondary-color);
    border: 1px solid var(--stroke-color);
    border-radius: 15px;
    padding: 15px;
    gap: 15px;
    transition: all 0.3s ease;
}

.checkbox-container.active {
    background-color: var(--stroke-color);
    box-shadow: 4px 4px 15px 0 #26262623;
}

.checkbox-container .left-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.checkbox-container .text-container  {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.checkbox-container .text-container h2 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(10px, 2vw, 18px);
}

.checkbox-container .text-container h1 {
    color: var(--primary-color);
    font-style: italic;
    font-size: clamp(1.5rem, 1.5vw, 4rem);
    font-weight: 900;
}

.checkbox-container .text-container p {
    opacity: 0.7;
    font-weight: 300;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
}

.checkbox-container .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8vw;       
    height: 8vw;
    min-width: 50px; 
    min-height: 50px;
    max-width: 60px;
    max-height: 60px;
    flex-shrink: 0;
    background-color: #613ac43d;
    border-radius: 50%;
}

.checkbox-container .icon img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.checkbox-container .check {
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container .check svg {
    width: 20px;
    height: 20px;
}

.checkbox-container.active .check {
    opacity: 1;
}

.select-inside-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.select-inside-container .check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--stroke-color);
    border-radius: 50%;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.select-inside-container .check svg {
    width: 20px;
    height: 20px;
}

.select-inside-container.active .check {
    background-color: var(--primary-color);
}

.step-3-container .select-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.calendar-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    max-height: 250px;
}

.calendar {
    background: var(--secondary-color);
    max-height: 250px;
    height: 100%;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.calendar-header span {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    font-size: 15px; 
}

.calendar-header .arrow {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    width: 25px;
    flex-shrink: 0;
}

.calendar-header .arrow:hover {
    background-color: var(--stroke-color);
    border-radius: 50%;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-days div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-style: italic;
    color: var(--primary-color);
    transition: background-color 0.2s ease;
}

.calendar-days div:hover {
    background-color: var(--secondary-color);
}

.calendar-days div.day-title:hover {
    background-color: transparent;
    cursor: default;
}

.day.active {
    background: var(--primary-color);
    color: var(--background-color);
}

.day.full {
    background-color: #2626262a;
    color: #262626a6;
    cursor: not-allowed;
}

.day.next-month {
    color: #262626a6;
    opacity: 0.5;
    cursor: pointer;
}

.slot-empty {
    width: 100%;
    text-align: center;
    font-size: 0.6rem;
    color: #888;
    margin: 10px 0;
}

.creneau {
    display: flex;
    gap: 10px;
    background: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 12px;
    min-width: 220px;
    max-height: 250px;
    min-height: 250px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.creneau::-webkit-scrollbar {
    width: 8px;
}

.creneau::-webkit-scrollbar-track {
    background: transparent; 
}

.creneau::-webkit-scrollbar-thumb {
    background-color: #613ac4; 
    border-radius: 10px;    
    border: 2px solid transparent;
    background-clip: content-box; 
}

.creneau::-webkit-scrollbar-thumb:hover {
    background-color: #452b8a; 
}

.creneau h4 {
    margin: 5px 0;
    font-size: 12px;
    opacity: 0.6;
    font-weight: 300;
}

.creneau div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.creneau .slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--stroke-color);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.creneau .slot.active {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.creneau .slot:hover {
    background-color: #d1c4e9;
}

.no-reservations {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(20px, 5vw, 40px);
}

.icon-container {
    border-radius: 50%;
    width: clamp(60px, 10vw, 100px);
    height: clamp(60px, 10vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(15px, 3vw, 25px);
    border: 3px solid #e9ecef;
    color: #6c757d;
}

.icon-container img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.no-reservations svg {
    height: 55px;
    stroke: var(--primary-color);
}

.no-reservations h3 {
    color: var(--primary-color);
    margin-bottom: clamp(8px, 2vw, 15px);
    font-size: clamp(18px, 2.5vw, 24px);
}

.no-reservations p {
    color: var(--text-color);
    margin-bottom: clamp(15px, 4vw, 25px);
    max-width: clamp(250px, 80%, 400px);
    line-height: 1.5;
    font-size: clamp(14px, 1.8vw, 18px);
}

@media all and (max-width: 950px) {
    section.overlay {
        background-color: var(--background-color);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }

    section.overlay form {
        box-shadow: none;
    }
}


@media all and (max-width: 575px) {
    .creneau {
        flex-direction: column;
        gap: 15px;
        min-width: 125px;
        padding: 10px 15px;
    }
    .creneau h4 {
        display: none;
    }
}

@media all and (max-width: 485px) {
    .calendar-container {
        gap: 10px;
        max-height: 100%;
        flex-direction: column;
    }

    .creneau {
        min-height: auto;
        width: 100%;
        max-width: 90vw;
        max-height: auto;
        overflow-y: hidden;
        overflow-x: scroll;
        flex-direction: row;
    }

    .creneau div {
        flex-direction: row;
    }
    
    .creneau::-webkit-scrollbar {
        height: 8px; 
    }
}