:root {
    --bg: #09090b;
    --primary: #a508fd;
    --input: #1e1a1f;
    --stroke: #332d36;
    --grad1: #af7fce;
    --grad2: #d575c7;
    --text: #efeaf3;
    --muted: #cfc7d6;
}
/* @import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap"); */
@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=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&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");

.booking-app {
    background: var(--bg);
    min-height: 100dvh;
    padding-top: 20px;
    padding-bottom: 28px;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
        "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji",
        "Segoe UI Emoji";
}

/* Topbar */
.topbar {
    padding: 14px 16px;
    position: relative;

    background: #1e1e1e;
    backdrop-filter: blur(25px);
    border-radius: 25px 25px 30px 30px;
}
.title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.2px;
    color: #f4f0f5;

    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;

    color: #ffffff;
}
.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #f5e8ff;
    background: #1e1e1e;
    border: 1px solid #ffffff;
}
.icon-btn svg {
    display: block;
}

/* Toggle */
.toggle-wrap {
    flex-wrap: wrap;
}
.pill-toggle {
    padding: 15px 30px;
    gap: 8px;

    background: #1e1e1e;
    border: 1px solid #332d36;
    border-radius: 20px;
    color: #ffffff;

    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 200;
    font-size: 20px;
    line-height: 24px;
}
.pill-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0px 1px 20px rgba(165, 8, 253, 0.45),
        0 0 0 1px rgba(165, 8, 253, 0.45) inset;
}

.lead-note {
    text-align: left;

    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
    color: #ffffff;

    letter-spacing: 0%;
}

/* Fields */
/* .field-label {
    display: block;
    margin-bottom: 8px;
    color: #ffff;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
}
.input-wrap {
    background: var(--input);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 2px 10px;
}
.dark-input {
    background: transparent !important;
    border: none !important;
    color: var(--text) !important;
    height: 50px;
    box-shadow: none !important;
}
.dark-input::placeholder {
    color: #9e94a9;
}
.is-invalid {
    border-color: #e55353 !important;
} */

/* Base underline */
.input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 0.5px solid #fff;
    transition: border-color 0.2s ease;
}

/* Focus/active: underline = primary */
.input-wrap:focus-within {
    border-bottom-color: var(--primary) !important;
}

/* Input reset */
.dark-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    color: var(--text) !important;
    height: 48px;
    line-height: 48px;
    padding: 0;
    outline: none;
    box-shadow: none !important;
}
.dark-input::placeholder {
    color: #9e94a9;
}

/* Invalid should override focus */
.dark-input.is-invalid {
    border-bottom-color: #e55353 !important;
    box-shadow: none;
}

/* Optional: hover state */
.dark-input:hover:not(:focus):not(.is-invalid) {
    border-bottom-color: color-mix(in srgb, var(--stroke) 80%, #fff 20%);
}

/* Confirm */
.confirm-btn {
    --ring: 0 10px 36px rgba(175, 127, 206, 0.35);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 20px;
    padding: 15px 30px;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0px 1px 20px rgba(165, 8, 253, 0.45),
        0 0 0 1px rgba(165, 8, 253, 0.45) inset;
    transition: transform 0.06s ease, filter 0.2s ease;
}
.confirm-btn:active {
    transform: translateY(1px);
}

/* Tight mobile width visual parity */
@media (min-width: 480px) {
    .container {
        max-width: 460px;
    }
}

/* If embedding inside iframe, remove outer paddings from layout */
.booking-app[data-embed="1"] {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Center the two pill toggles */
.toggle-wrap {
    flex-wrap: wrap;
    justify-content: center; /* <-- added */
}
.lead-note {
    text-align: center;
    color: #ffff;
} /* matches your screenshot */

/* White placeholders */
.dark-input::placeholder {
    color: var(--muted) !important;
    opacity: 0.7;
}

/* Gradient glow on focus */
/* .input-wrap:focus-within {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg), var(--bg)) padding-box,
        linear-gradient(90deg, var(--grad1), var(--grad2)) border-box;
    box-shadow: 0 0 12px rgba(175, 127, 206, 0.6),
        0 0 24px rgba(213, 117, 199, 0.4);
    border-radius: 14px;
} */

/* Country code box */
.code-wrap {
    max-width: 100px;
    flex-shrink: 0;
}
.code-wrap input {
    text-align: center;
    font-weight: 600;
}

/* ========== Location step ========== */
#map {
    height: 340px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: #0f0d10;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.coords {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Ensure hidden sections don't take space */
[hidden] {
    display: none !important;
}

/* Wrapper around the select */
.select-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    border-bottom: 0.5px solid #fff;
    padding: 12px 0;
    transition: border-color 0.2s ease;
}

/* Custom arrow */
.select-wrap::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 15px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg width='15' height='16' viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M11.7188 5.89062L7.5 10.1094L3.28125 5.89062' stroke='white' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/></svg>")
        no-repeat center;
    background-size: contain;
}

/* Focus state: underline changes to primary */
.select-wrap:focus-within {
    border-bottom-color: var(--primary);
}

/* The select itself */
.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 24px;
    color: var(--text);
    font-size: 16px;
    line-height: 150%;
    padding-right: 24px; /* space for arrow */
    cursor: pointer;
}

/* Options inside dropdown */
.select-wrap select option {
    background: #1a1a1a !important;
    color: #fff !important;
}

.select-wrap select option:checked,
.select-wrap select option:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ==== Date & Time step (final) ==== */

/* Small label above Start/End */
.sub-label {
    font-weight: 600;
    color: #ede6f3;
}

/* Center the inline calendar */
.calendar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.calendar-wrap .flatpickr-calendar.inline {
    margin: 0 auto;
}
.calendar-wrap .block-error {
    margin-top: 8px;
    font-size: 0.92rem;
    color: #f3b6c0; /* same as other errors */
    text-align: center;
}

/* ---- Calendar frame with gradient border ---- */
.flatpickr-calendar {
    background: #1e1e1e !important;
    border: 2px solid transparent !important; /* hide UA border */
    border-radius: 16px !important;
    box-shadow: 0 18px 40px rgba(175, 127, 206, 0.15);
    background-clip: padding-box, border-box !important;
    background-origin: border-box !important;
}

/* Inner areas all dark (no borders) */
.flatpickr-calendar,
.flatpickr-calendar.inline,
.flatpickr-innerContainer,
.flatpickr-rContainer,
.dayContainer,
.flatpickr-days,
.flatpickr-months,
.flatpickr-weekdays,
.flatpickr-current-month .numInputWrapper,
.flatpickr-current-month select.flatpickr-monthDropdown-months {
    background: #1e1e1e !important;
    color: #fff !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Header + weekdays */
.flatpickr-months,
.flatpickr-weekdays {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.flatpickr-weekday {
    color: var(--muted) !important;
}

/* Prev/Next month arrows (SVGs) */
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #fff !important;
    stroke: #fff !important;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(175, 127, 206, 0.15) !important;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(223, 160, 231, 0.35) inset;
}

/* Month dropdown + year input (and ▲/▼) */
.flatpickr-current-month select.flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    border: 1px solid var(--stroke) !important;
    border-radius: 8px;
}
.flatpickr-current-month input.cur-year {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #fff !important;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #fff !important;
}

/* Days */
.flatpickr-day {
    background: #1e1e1e !important;
    color: #ede6f3 !important;
    border: none !important;
    border-radius: 10px;
}
.flatpickr-day:hover {
    background: rgba(175, 127, 206, 0.18) !important;
    color: #fff !important;
}
.flatpickr-day.today {
    box-shadow: 0 0 0 1px #a508fd inset !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px #a508fd inset !important;
}

/* ---- Time picker (no big white border) ---- */
.flatpickr-time,
.flatpickr-time * {
    outline: none !important;
    box-shadow: none !important;
}
.flatpickr-time {
    background: #1e1a1f !important;
    border: 0 !important;
    border-top: 1px solid var(--stroke) !important; /* subtle divider */
}

/* Columns: HH / MM / AM-PM */
.flatpickr-time .numInputWrapper,
.flatpickr-time .flatpickr-am-pm {
    background: var(--input) !important;
    color: #fff !important;
    border: 1px solid var(--stroke) !important;
    border-radius: 10px;
}
.flatpickr-time .numInputWrapper + .numInputWrapper,
.flatpickr-time .numInputWrapper + .flatpickr-am-pm {
    border-left-color: var(--stroke) !important; /* no white seam */
}
.flatpickr-time .numInputWrapper input {
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
}

/* Hover/active gradient ring for time parts (keeps dark fill) */
.flatpickr-time .numInputWrapper:hover,
.flatpickr-time .numInputWrapper:focus-within,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus {
    border: 1px solid transparent !important;
    background: linear-gradient(var(--input), var(--input)) padding-box,
        linear-gradient(90deg, var(--grad1), var(--grad2)) border-box !important;
    box-shadow: 0 0 0 1px #a508fd inset !important;
}

/* ==== Payment card ==== */
.pay-card {
    background: #1e1e1e;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.pay-card__title {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 700;
    margin: 4px 0 16px;
    color: #f4f0f5;
}
.pay-section {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 700;
    margin: 14px 0 10px;
    color: #f4f0f5;
}
.pay-card__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    line-height: 1.4;
}
.pay-k {
    color: #ede6f3;
    font-weight: 600;
}
.pay-v {
    color: #cfc7d6;
}

.pay-card__split {
    height: 1px;
    margin: 14px 0;
    background: #ffffff;
}

.pay-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
}
.pay-total span {
    font-size: 22px;
    font-weight: 700;
    color: #f4f0f5;
    font-family: "Playfair Display", serif;
}
.pay-total strong {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

/* Radios */
.radio-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}
.radio-line input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Coupon row */
.coupon-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.link-btn {
    background: transparent;
    border: none;
    color: #ede6f3;
    text-decoration: underline;
    font-weight: 600;
    padding: 8px 4px;
    border-radius: 10px;
}
.link-btn:hover {
    text-decoration: none;
    box-shadow: 0 0 0 1px #a508fd inset;
    color: #a508fd;
}
.coupon-msg {
    margin-top: 8px;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 10px;
    background: #1e1a1f;
    color: #cfc7d6;
    border: 1px solid var(--stroke);
}
.coupon-msg.ok {
    color: #b6f3c0;
    border-color: rgba(56, 207, 120, 0.5);
}
.coupon-msg.error {
    color: #f3b6c0;
    border-color: rgba(255, 90, 90, 0.45);
}
.coupon-msg.warn {
    color: #ffe9b2;
    border-color: rgba(255, 200, 90, 0.45);
}

/* Inline error look */
.field-error {
    margin-top: 6px;
    font-size: 0.92rem;
    color: #f3b6c0; /* soft red/pink for dark UI */
}

/* highlight the input container */
.input-wrap.has-error {
    border-color: #ff6b6b !important;
}

/* for non-input blocks (calendar/map/select) */
.block-error {
    margin-top: 6px;
    font-size: 0.92rem;
    color: #f3b6c0;
}

.success-container {
    text-align: center;
    padding: 20px;
    background-color: #121012;
    color: white;
    border-radius: 10px;
    margin-top: 20px;
}

.success-icon {
    max-width: 100px;
    margin-bottom: 10px;
}

.success-text {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.availability-container {
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.availability-reason {
    font-weight: 600;
    color: #ffff;
    margin-bottom: 15px;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.suggestions button {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(223, 160, 231, 0.25);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.suggestions button:hover {
    background-color: #f0f0f0;
    border-color: #888;
}

/* Success */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #4caf50;
    padding: 40px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.2em;
    text-align: center;
    margin-top: 30px;
}

.success-icon {
    width: 120px;
    margin-bottom: 15px;
}

#lottie-container {
    margin: 0 auto;
    padding: 10px;
    width: 400px;
    height: 400px;
}

/* Wrapper around the radio buttons */
#userTypeSelection {
    text-align: center;
    margin: 20px;
}

.user-type-option {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 20px;
    cursor: pointer;
}

.user-type-option input[type="radio"] {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    accent-color: #3b204a;
}

.radio-text {
    font-size: 22px;
    color: #333;
}

.user-type-option input[type="radio"]:checked {
    accent-color: #3b204a;
}
