.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    flex-wrap: wrap;
    max-width: 650px;
    padding: 0 1rem; /* ✅ add this */
}

.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--backgrd-cl);
    color: var(--text);
    border: 1px solid var(--backgrd-bl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.step.completed .circle {
    background-color: var(--backgrd-bl);
    color: white;
}

.line {
    flex: 1;
    height: 4px;
    background-color: var(--backgrd-cl);
    margin: 0 5px;
    min-width: 30px;
}

.line.completed {
    background-color: var(--backgrd-bl);
}

@media (max-width: 600px) {
    .stepper {
        gap: 0.5rem;
        justify-content: center; /* keep it centered */
    }

    .circle {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .step p {
        font-size: 0.60rem;
    }

    .line {
        height: 3px;
        margin: 0 3px;
        max-width: 15px; /* not too long */
        min-width: 7px;
    }
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.service-card {
    background: var(--backgrd-cl);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);

    display: flex;
    flex-direction: column; /* stack children */
}

.service-card h3 {
    margin-top: 0;
}

.book-button {
    margin-top: auto;       /* pushes button to bottom */
    align-self: center;     /* optional: center horizontally */
    padding: 0.5rem 1rem;
    background: var(--backgrd-bl);
    color: var(--light-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form {
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--backgrd-cl);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

form h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Feedback message under promo field */
.promo-message {
    font-size: 0.7rem;
    color: var(--text);
}

.promo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

form input {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background-color: var(--backgrd-cl);
}

form input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--backgrd-cl);
}

form label {
    display: block;
    font-size: 0.85rem;      /* smaller size */
    color: var(--text);             /* subtle gray */
    font-weight: 600;        /* slightly bolder for clarity */
}

/* Specific styling for date input */
input[type="date"] {
    appearance: none;             /* Remove native styling (limited support) */
    -webkit-appearance: none;     /* Remove iOS default look */
    background-color: var(--backgrd-cl);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Optional: Add calendar icon for non-iOS browsers */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(35%) sepia(100%) saturate(1000%) hue-rotate(250deg);
    cursor: pointer;
}

/* Remove inner padding or arrows (may be visible on some Android devices) */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

.logo {
    font-weight: bold;
    font-size: 1.25rem;
}

.date-time-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.date-time-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.calendar-container, .time-slots-container {
    flex: 1;
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.4rem;
    background: white;
    cursor: pointer;
}

.calendar-day.selected {
    background: var(--backgrd-bl);
    color: var(--light-bg);
}

.date-time-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.calendar-container {
    max-width: 320px;
}

.time-slots-container {
    max-width: 320px;
    padding-top: 4.5rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.time-slot {
    padding: 0.5rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    width: 120px;
}

.time-slot.selected {
    background: var(--backgrd-bl);
    color: var(--light-bg);
}

.next-button {
    padding: 0.7rem 2rem;
    margin-top: 1rem;
    background-color: var(--backgrd-bl);
    color: var(--light-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.next-button:hover {
    background-color: #ccc; /*TODO: change to light blue*/
}

.back-button {
    padding: 0.7rem 2rem;
    margin-top: 1rem;
    background-color: #ddd;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.back-button:hover {
    background-color: #ccc;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.button-group .back-button,
.button-group .next-button {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    max-width: 13rem;
    min-width: 10rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 2rem);
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.calendar-day.disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.confirmation-details p {
    font-size: 1rem;
    margin: 0.4rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.thank-you-container {
    display: flex;
    flex-direction: column;
    align-items: center;       /* horizontal centering */
    justify-content: center;   /* vertical centering if container has height */
    gap: 20px;                 /* space between elements */
    min-height: 200px;         /* optional: to have vertical centering */
    text-align: center;        /* center text */
}

.thank-you-container button {
    width: 150px;              /* fix button width to match others */
    padding: 10px 0;
    font-size: 16px;
}

.note {
    max-width: 400px;
    margin: 0.75rem auto 0 auto; /* some space above, centered */
    text-align: center;
    color: var(--accent);
    font-weight: 600;
}

.small-note {
    font-size: 0.8rem;
    text-align: left;
    color: #333333;
}

.weekday-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    max-width: 283px;
    margin: 0 auto;
    gap: 4px;
    text-align: center;
}

.weekday-label {
    padding: 2px 0;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;

}

.time-slot:disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

/* Layout inside the box */
#confirmation-form .button-group,
#details-form .button-group {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

#confirmation-form .note {
    font-size: 0.875rem;
    margin-top: 8px;
    color: #6b7280;
}

/* Ensure the page can actually scroll to the bottom */
html, body {
    height: auto;
    overflow-y: auto;
}

/* If your main app container was blocking scroll, let it pass through */
#app, main, .page, .content, .steps-container {
    min-height: 100vh;
    overflow: visible; /* or overflow-y: auto; if you prefer internal scrolling */
}

/* Defensive fix if some global style set overflow:hidden somewhere */
body {
    overflow-y: auto !important;
}

