/* US English date picker used only by the homepage hero estimate form. */

.caligo-hero-form .caligo-us-date-field {
    position: relative;
}

body.home #content.site-content > .caligo-hero.caligo-us-calendar-open,
body.page-template-front-page #content.site-content > .caligo-hero.caligo-us-calendar-open {
    z-index: 30;
    overflow: visible;
}

.caligo-hero-form .caligo-us-date-field > input[type="text"] {
    padding-right: 42px;
}

.caligo-hero-form .caligo-us-date-toggle {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: grid;
    width: 42px;
    min-height: 43px;
    place-items: center;
    padding: 0;
    border: 0;
    color: rgba(232, 240, 251, 0.82);
    background: transparent;
    cursor: pointer;
}

.caligo-hero-form .caligo-us-date-toggle svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.caligo-hero-form .caligo-us-date-toggle:hover,
.caligo-hero-form .caligo-us-date-toggle:focus-visible {
    color: #ff5b0b;
}

.caligo-hero-form .caligo-us-date-toggle:focus-visible {
    border-radius: 6px;
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

.caligo-hero-form .caligo-us-calendar {
    position: absolute;
    z-index: 120;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(117, 147, 193, 0.5);
    border-radius: 12px;
    color: #ffffff;
    background: #101a2b;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

.caligo-hero-form .caligo-us-calendar[hidden] {
    display: none;
}

.caligo-hero-form .caligo-us-calendar__header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: center;
}

.caligo-hero-form .caligo-us-calendar__month {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.caligo-hero-form .caligo-us-calendar__nav {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    color: rgba(239, 244, 252, 0.82);
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.caligo-hero-form .caligo-us-calendar__nav:hover,
.caligo-hero-form .caligo-us-calendar__nav:focus-visible {
    border-color: rgba(255, 91, 11, 0.55);
    color: #ff5b0b;
    outline: none;
}

.caligo-hero-form .caligo-us-calendar__weekdays,
.caligo-hero-form .caligo-us-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.caligo-hero-form .caligo-us-calendar__weekdays {
    margin: 10px 0 5px;
}

.caligo-hero-form .caligo-us-calendar__weekdays span {
    color: rgba(227, 235, 248, 0.62);
    font-size: 11px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
}

.caligo-hero-form .caligo-us-calendar__empty,
.caligo-hero-form .caligo-us-calendar__day {
    min-width: 0;
    min-height: 34px;
}

.caligo-hero-form .caligo-us-calendar__day {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    color: rgba(247, 250, 255, 0.94);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.caligo-hero-form .caligo-us-calendar__day:hover {
    border-color: rgba(255, 91, 11, 0.62);
    color: #ffffff;
    background: rgba(255, 91, 11, 0.12);
}

.caligo-hero-form .caligo-us-calendar__day:focus-visible {
    border-color: #ffffff;
    outline: 2px solid #ff5b0b;
    outline-offset: 1px;
}

.caligo-hero-form .caligo-us-calendar__day[aria-current="date"] {
    border-color: rgba(86, 159, 241, 0.75);
}

.caligo-hero-form .caligo-us-calendar__day[aria-selected="true"] {
    border-color: #ff5b0b;
    color: #ffffff;
    background: #ff5b0b;
}

.caligo-hero-form .caligo-us-calendar__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(117, 147, 193, 0.24);
}

.caligo-hero-form .caligo-us-calendar__footer span {
    color: rgba(227, 235, 248, 0.58);
    font-size: 11px;
    font-weight: 700;
}

.caligo-hero-form .caligo-us-calendar__footer button {
    padding: 5px 7px;
    border: 0;
    border-radius: 5px;
    color: #69aef8;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.caligo-hero-form .caligo-us-calendar__footer button:hover,
.caligo-hero-form .caligo-us-calendar__footer button:focus-visible {
    color: #ffffff;
    background: rgba(41, 128, 226, 0.18);
    outline: 2px solid #ffffff;
    outline-offset: 1px;
}

@media (max-width: 620px) {
    .caligo-hero-form .caligo-us-calendar {
        right: auto;
        left: 0;
        width: min(320px, calc(100vw - 64px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .caligo-hero-form .caligo-us-calendar *,
    .caligo-hero-form .caligo-us-date-toggle {
        scroll-behavior: auto;
        transition: none;
    }
}
