* {
    margin: 0;
    padding: 0;
    /* font-family: "Unna", serif; */
    font-family: Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    user-select: none;
    text-wrap: balance;
}






html {
    max-width: 100%;
    font-size: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    overflow-x: hidden;
}


h2 {
    text-wrap: pretty;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.875rem; /* 3rem scaled down to 62.5% */
    font-weight: 300;
}

h3 {
    margin: 10px;
    font-size: 1.25rem; /* 2rem scaled down to 62.5% */
    font-weight: 400;
}


.link:link {
  color:  var(--primary);;
}

.link:visited {
  color: #41602f;
}


#agreements {
    font-size: 0.5rem; /* 1.8rem scaled down to 62.5% */
    font-weight: 400;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: rgb(25, 26, 27);
    line-height: 1.5;
    text-wrap: pretty;
    padding: 10px;
    /* background-color: #edf6fd; Light background color */
    /* border-radius: 10px; */
    /* border: 2px solid  var(--primary); /* Update border color */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); Subtle shadow for depth */ 
    /* transition: background-color 0.3s, border-color 0.3s; */
}

#agreements p {
    font-size: 0.8rem; /* 1.8rem scaled down to 62.5% */
    font-weight: 400;
}


.date {
    display: flex;
    direction: column;
    gap: 5px;
    align-items: center;
}

.container {
    color: rgb(0, 0, 0);
    width: 95%;
    margin: 10px;
    /* height: 100vh; */
    display: flex;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

form.container {
    padding-top: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
}

form.container > div{
    min-width: 400px;
    top:0;
    margin-top: 0;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

form.container > div.submit {
    flex-basis: 100%;
    /* it shoud be under the divs  */
}

form.container > div.submit > input {
    margin-left: auto;
    margin-right: auto;
}



.calendar {
    border-radius: 4rem;
    width: 90%;
    background-color: var(--bg-light);
}

.month {
    width: 100%;
    height: 6rem;
    box-sizing: border-box;
    background-color: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 2rem;
    border: #1f1f1f 2px solid;
}

.month i {
    font-size: 1.5625rem; /* 2.5rem scaled down to 62.5% */
    cursor: pointer;
    color: rgb(0, 0, 0);
    font-weight: 900;
}

.month h2 {
    font-size: 1.65rem; /* 3rem scaled down to 62.5% */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgb(0, 0, 0);
}

.month p {
    font-size: 1rem; /* 1.6rem scaled down to 62.5% */
    color: rgb(0, 0, 0);
    font-weight: 400;
}

.weekdays {
    width: 100%;
    height: 5rem;
    padding: 0 0.4rem;
    display: flex;
    align-items: center;
}



.weekdays div {
    width: 14%;
    font-size: 0.9375rem; /* 1.5rem scaled down to 62.5% */
    font-weight: 400;
    letter-spacing: 0.1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 .3rem .5rem rgba(0, 0, 0, .5);
}

#error-message{
    width: 90vw;
}

.days {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: .2rem;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}

.days div {
    box-sizing: border-box;
    font-size: 0.875rem; /* 1.4rem scaled down to 62.5% */
    margin: 1%;
    width: 12%;
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* text-shadow: 0 0.3rem 0.5rem rgba(0, 0, 0, .5); */
    border-radius: 0.5rem;
    transition: background-color .2s;
    font-weight: 800;
}

.days div:not(.unavaliable, .selected) {
    font-weight: 600;
    color: #000000;/* Update day text color */
    background-color: #fdf7f4;
    border:  0.2rem solid #e0d5cc;
}

.current-day {
    background-color: #8c82fc4d;
}



.unavaliable {
    opacity: 25%;
    border: 0.2rem solid #1f1f1f;
    cursor: not-allowed;
    background-color: #ffffff;
}

.prev-date, .next-date {
    opacity: 0%;
}

.next-date {
    display: none;
}

.days div:hover:not(.unavaliable) {
    cursor: pointer;
}

.days div:hover:not(.current-day, .selected, .unavaliable) {
    background-color: #e0d5cc;
}

label {
    font-size: 1.875rem; /* 3rem scaled down to 62.5% */
    display: block;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: rgb(25, 26, 27);
}

#appointment_date {
    text-align: center;
}

button:not(.menu-toggle){
    font-family: 'Ubuntu', sans-serif;
    width: 150px;
    padding-top: 7px;
    padding-bottom: 7px;
    /*height: 40px;*/
    /*line-height: 1;*/
    font-size: 1.125rem; /* 18px scaled down to 62.5% */
    font-weight: bold;
    letter-spacing: 1px;
    border: 3px solid var(--primary);  /* Update border color */
    background: #fff;
    color: var(--primary);  /* Update text color */
    border-radius: 40px;
    cursor: pointer;
    overflow: hidden;
    transition: all .35s;
}

button.selected, .days div.selected {
    background:  var(--primary); /* Update selected day background color */
    color: white;
}


.hour-button {
    width: 100px;
}

button:hover:not(.menu-toggle), #button:hover {
    /* width: 190px; */
    background: var(--primary);  /* Update hover background color */
    color: #fff;
}

.hour-button:hover {
    width: 120px;
}





select {
    appearance: none; 
    width: 60%;
	font-size: 1rem;
	padding: 0.8rem 1rem;
	border-radius: 1rem;
	border: 2px solid var(--primary);
	outline: none;
	transition: border-color 0.3s;
	background-color: white;
	cursor: pointer;
	text-align: center;
	
}

select:focus {
	border-color: var(--primary);
}

select:hover {
	background-color: #edf6fd;
}

select option {
	background-color: white;
	color: black;
}

select option:checked {
	background-color: var(--primary);
	color: white;
}



.hours-container {
    display: inline-flex;
    height: fit-content;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}



input[type="text"], input[type="password"], input[type="time"], input[type="date"], input[type="email"], input[type="number"]{
    width: 60%;
    font-size: 1rem; /* 1.6rem scaled down to 62.5% */
    padding: 0.8rem 1rem;
    box-sizing: border-box;
    border-radius: 1rem;
    border: 2px solid  var(--primary); /* Change to desired color */
    outline: none;
    transition: border-color .3s;
    align-self: center;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="time"]:focus, input[type="date"]:focus, input[type="number"]:focus {
    border-color:  var(--primary); /* Change to desired color */
}


input[type="checkbox"] {
    margin-left: 10px;
    margin-right: 10px;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid  var(--primary); /* Match your primary color */
    border-radius: 0.25rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color:  var(--primary); /* Checked background color */
    border-color:  var(--primary);
    color: #ffffff;
}

input[type="checkbox"]:checked::after {
    content: '✔';
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.inactive {
    display: none;
}

.info{
    text-align: center;
}

/* Main action buttons (submit, etc.) */
button:not(.menu-toggle):not(.hour-button):not(.prev):not(.next),
#button {
    background-color:  var(--primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    padding: 12px 24px;
    font-size: 1.125rem;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}



@media screen and (min-width: 500px) {

    /* .days div {
        margin: 0.3rem;
        width: calc(40.2rem / 7);
        height: 5rem;
    }
    .weekdays div {
        width: calc(44.2rem / 7);
    }*/
    #error-message {
        width: 400px;
    } 
}

