body {
    font-family: 'Open Sans', sans-serif;
    background-image: url('https://images.typeform.com/images/u9TTPreQepqb/background/large');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Libre Caslon Display', sans-serif;
    font-weight: normal;
}

form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    margin: 2rem;
    box-sizing: border-box;
}

form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.3rem;
    color: #555;
}

input,
select {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background-color: #f0f0f0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

input:focus,
select:focus {
    background-color: #e8f7f9;
    outline: none;
}

button {
    margin-top: 2rem;
    padding: 14px;
    background-color: #BD8346;
    color: white;
    font-family: 'EB Garamond', sans-serif;
    font-size: 1.2rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

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

input:focus,
select:focus {
    background-color: #E7E3E1;
    /* 👈 your custom color */
    outline: none;
    /* removes default blue glow */
    box-shadow: 0 0 0 2px #E7E3E1;
    /* optional soft border effect */
}

input::placeholder {
    color: #aaa;
    opacity: 1;
}

input:focus::placeholder {
    color: #888;
}

.date-picker-wrapper {
    margin-bottom: 2rem;
}

.date-picker-wrapper label {
    text-align: left;
    display: block;
    margin-left: 0;
}

#date {
    display: block;
    margin: 0 auto;
    width: 100%;
    text-align: left;
    /* 👈 aligns text inside the input to the left */
}

.flatpickr-calendar.inline {
    display: block;
    margin: 1rem auto;
}

.flatpickr-day {
    height: 2.5rem;
    line-height: 2.5rem;
    width: 2.5rem;
}

/* Change background color of selected day */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
    background-color: #BD8346 !important;
    border-color: #BD8346 !important;
    color: #fff;
    /* Make sure text stays readable */
}

.success,
.error {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 600;
}

.success {
    color: #2e7d32;
}

.error {
    color: #c62828;
}

#selected-date-display {
    font-style: italic;
    margin-top: 0.25rem;
    color: #444;
}

/* 📱 Mobile Responsiveness */
@media screen and (max-width: 600px) {
    body {
        padding: 1rem;
        justify-content: flex-start;
    }

    form {
        padding: 1.5rem;
        margin: 1rem;
    }

    form h2 {
        font-size: 1.6rem;
    }

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

    input,
    select {
        font-size: 0.95rem;
        padding: 12px;
    }
}

.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 999;
}

.dialog h3 {
    margin-top: 0;
    color: #333;
}

.dialog p {
    margin: 1rem 0;
    color: #555;
}

.dialog button {
    padding: 0.75rem 1.5rem;
    background-color: #BD8346;
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.dialog button:hover {
    background-color: #a06d39;
}

.hidden {
    display: none;
}

.dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}