/**
 * Pricing wizard styles.
 *
 * Follows the site's Elementor kit: Titillium Web everywhere, #FF645F as the
 * accent (same coral the page headings use), #323232 for body copy.
 *
 * The wizard sits in a card so it reads as one self-contained step rather than
 * loose elements floating on the page background.
 */

.mw-wizard {
    box-sizing: border-box;
    max-width: 560px;
    margin: 50px auto;
    padding: 48px 44px 44px;
    background: #FFFFFF;
    border: 1px solid #EAEAEE;
    border-radius: 18px;
    /* Two shadows: a tight one for the edge, a wide soft one for the lift. */
    box-shadow: 0 1px 2px rgba(28, 28, 32, .04), 0 18px 40px -18px rgba(28, 28, 32, .16);
    text-align: center;
    font-family: "Titillium Web", Sans-serif;
}

.mw-wizard * {
    box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
    .mw-wizard {
        margin: 28px 16px;
        padding: 34px 22px 30px;
        border-radius: 14px;
    }
}

/* ---------- Question ---------- */
.mw-wizard__question {
    margin: 0 0 32px;
    color: #FF645F;
    font-family: "Titillium Web", Sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

@media only screen and (max-width: 767px) {
    .mw-wizard__question {
        margin-bottom: 24px;
        font-size: 26px;
    }
}

/* ---------- Date field ---------- */
.mw-wizard__field {
    position: relative;
}

/* Calendar glyph on the trailing edge, the way a select shows its chevron. */
.mw-wizard__field::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    pointer-events: none;
    opacity: .75;
    transition: opacity .2s ease;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23FF645F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mw-wizard__field:hover::after {
    opacity: 1;
}

.mw-wizard__date,
.mw-wizard input.mw-wizard__date {
    display: block;
    width: 100%;
    height: 58px;
    padding: 0 48px;
    background-color: #FAFAFB;
    border: 1px solid #E0E0E5;
    border-radius: 12px;
    box-shadow: none;
    color: #323232;
    font-family: "Titillium Web", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 56px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.mw-wizard__date::placeholder {
    color: #97979E;
    font-weight: 400;
    opacity: 1; /* Firefox dims placeholders by default */
}

.mw-wizard__date:hover {
    background-color: #FFFFFF;
    border-color: #FFB3B0;
}

.mw-wizard__date:focus,
.mw-wizard input.mw-wizard__date:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: #FF645F;
    box-shadow: 0 0 0 4px rgba(255, 100, 95, .14);
}

/* ---------- Hint / error ---------- */
.mw-wizard__hint {
    margin: 14px 0 0;
    color: #7A7A82;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
}

/* Sits above the field, so the calendar (which opens downwards) never hides it. */
.mw-wizard__error {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #FFF1F0;
    border: 1px solid #FFD5D3;
    border-radius: 10px;
    color: #C8352F;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.mw-wizard__error[hidden] {
    display: none;
}

/* ---------- CTA ---------- */
.mw-wizard__button {
    display: block;
    width: 100%;
    margin-top: 28px;
    padding: 19px 40px;
    background-color: #FF645F;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 18px -8px rgba(255, 100, 95, .7);
    color: #FFFFFF;
    font-family: "Titillium Web", Sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mw-wizard__button:hover,
.mw-wizard__button:focus {
    background-color: #F5504B;
    box-shadow: 0 12px 22px -8px rgba(255, 100, 95, .8);
    transform: translateY(-1px);
}

.mw-wizard__button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px -8px rgba(255, 100, 95, .7);
}

/* Muted until a date is picked. Deliberately not [disabled] - the click still
   has to land so the error message can be shown. */
.mw-wizard__button.is-empty {
    background-color: #FFB3B0;
    box-shadow: none;
}

.mw-wizard__button.is-empty:hover,
.mw-wizard__button.is-empty:focus {
    background-color: #FFA5A1;
    box-shadow: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .mw-wizard__button,
    .mw-wizard__date {
        transition: none;
    }

    .mw-wizard__button:hover,
    .mw-wizard__button:focus {
        transform: none;
    }
}

/* ---------- flatpickr theming ---------- */
/* flatpickr ships with Elementor and defaults to a blue accent - repaint it and
   soften the box so it matches the card above. */
.flatpickr-calendar {
    margin-top: 8px;
    padding-bottom: 4px;
    border: 1px solid #EAEAEE;
    border-radius: 14px;
    box-shadow: 0 16px 38px -14px rgba(28, 28, 32, .28);
    font-family: "Titillium Web", Sans-serif;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none; /* the little arrow tail - the gap reads cleaner without it */
}

/* Static mode wraps the input in a div - keep the field full width. */
.mw-wizard__field .flatpickr-wrapper {
    display: block;
    width: 100%;
}

/* Anchored to the field, centered under it. */
.mw-wizard__field .flatpickr-calendar.static {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
}

.flatpickr-months {
    padding-top: 6px;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
    background: #FFFFFF;
    color: #323232;
    fill: #323232;
}

span.flatpickr-weekday {
    color: #9A9AA2;
    font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 600;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #FF645F;
}

.flatpickr-day {
    border-radius: 9px;
    font-weight: 400;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: #FFF1F0;
    border-color: #FFF1F0;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #FF645F;
    border-color: #FF645F;
    color: #FFFFFF;
    font-weight: 600;
}

.flatpickr-day.today {
    border-color: #FFB3B0;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    background: #FFF1F0;
    border-color: #FF645F;
    color: #323232;
}

.flatpickr-day.today.selected {
    color: #FFFFFF;
}
