@font-face {
    font-family: "Brown Sugar";
    src: url("/fonts/brown-sugar.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html {
    min-height: 100%;
    background: linear-gradient(
        to bottom right,
        #fffafc,
        #f7d9e1
    );
    background-attachment: fixed;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px 16px;
    box-sizing: border-box;
}

h1 {
    font-family: "Brown Sugar", sans-serif;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

h3 {
    font-weight: 400;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

main {
    width: 100%;
    max-width: 700px;
}

.form-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.name-row {
    display: flex;
    gap: 16px;
}

.name-row > div {
    flex: 1;
}

.services-row {
    display: flex;
    gap: 16px;
}

.services-row > div {
    flex: 1;
}

.services-row h3 {
    text-align: left;
    margin-top: 2px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

label {
    color: #555;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

input[type="radio"] {
    margin: 0 !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select {
    font-family: "Montserrat", sans-serif;
    border-radius: 6px;
    border: 1px solid #e3a2b7;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background-color: #fdfdfd;
}



input:focus,
select:focus {
    border-color: #d58aa6;
    outline: none;
}

button {
    font-family: "Montserrat", sans-serif;
    background-color: #e3a2b7;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 12px;
    border: none;
    transition: background-color 0.3s;
    margin-top: 10px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

button:hover {
    background-color: #d58aa6;
}

.form-check-label {
    font-family: "Montserrat", sans-serif;
}

.alert {
    background-color: #d58aa6;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}


.radio-container {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

input[type="radio"] {
    margin-right: 6px;
    width: 14px;
    height: 14px;
}

.radio-container label {
    color: #444;
    font-weight: 500;
    cursor: pointer;
    padding-left: 6px;
    margin: 0;
    font-size: 0.85rem;
}

input[type="date"],
input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
}

.icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #d58aa6;
    pointer-events: none;
}

.flatpickr-calendar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.flatpickr-day:hover {
    background: #e3a2b7;
    color: white;
}

.flatpickr-day.selected {
    background: #d58aa6;
    color: white;
}

.available-time-slots-container {
    margin-top: 10px;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.time-slot {
    padding: 8px 12px;
    background-color: #f9f0f3;
    color: #555;
    border: 1px solid #e3a2b7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

.time-slot:hover {
    background-color: #e3a2b7;
    color: white;
}

.time-slot.selected {
    background-color: #d58aa6;
    color: white;
    border-color: #d58aa6;
}

.no-time-warning {
    color: red;
    margin-top: 10px;
    font-size: 0.9rem;
}

#appointment-time {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}


.error{
    font-weight: 500;
}

.flatpickr-wrapper1{
    display: none;
}

@media (max-width: 500px) {
    body {
        padding: 12px 10px;
    }

    .form-container {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .name-row {
        flex-direction: column;
        gap: 0;
    }

    .services-row {
        flex-direction: column;
        gap: 0;
    }

    .services-row h3 {
        text-align: center;
    }

    h1 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .time-slot {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    button {
        padding: 14px;
        font-size: 1rem;
    }
}