/* Potomac Signal native booking UI */
.native-booking-area {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.native-booking-intro {
    max-width: 760px;
    margin: 0 auto 28px;
}

.native-booking-intro h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.native-booking-shell,
.native-booking-success {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(18, 103, 232, 0.14);
    border-radius: 18px;
    background: #fff;
    color: #10253d;
    text-align: left;
    box-shadow: 0 18px 45px rgba(5, 24, 45, 0.16);
}

.native-booking-shell[hidden],
.native-booking-success[hidden],
.native-booking-panel[hidden],
.native-booking-customer-form[hidden],
.native-booking-loading[hidden],
.native-booking-error[hidden],
.native-times-card[hidden] {
    display: none !important;
}

.native-booking-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e3ebf5;
}

#contact .native-booking-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1267e8;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

#contact .native-booking-link-button:hover {
    background: transparent;
    color: #0d4fb3;
}

.booking-address-summary {
    color: #607286;
    font-size: 12px;
    text-align: right;
}

.native-booking-panel {
    margin-top: 24px;
}

.native-booking-panel + .native-booking-panel,
.native-booking-customer-form {
    padding-top: 24px;
    border-top: 1px solid #e3ebf5;
}

.native-booking-step-label {
    margin-bottom: 7px;
    color: #1267e8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.native-booking-shell h3,
.native-booking-success h3 {
    margin: 0 0 16px;
    color: #10253d;
    font-size: 21px;
}

.native-address-unit {
    margin-top: 14px;
}

#contact .native-address-unit label,
#contact .native-booking-field-label,
#contact .native-booking-field label {
    display: block;
    margin: 0 0 6px;
    color: #29445f !important;
    font-size: 12px;
    font-weight: 700;
}

#contact .native-address-unit label span {
    color: #7e8c9c;
    font-weight: 500;
}

#contact .native-address-unit input,
#contact .native-booking-select,
#contact .native-booking-field input,
#contact .native-booking-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #c9d8e9;
    border-radius: 9px;
    background: #fff;
    color: #17212b;
    font: inherit;
}

#contact .native-address-unit input:focus,
#contact .native-booking-select:focus,
#contact .native-booking-field input:focus,
#contact .native-booking-field textarea:focus {
    outline: 2px solid rgba(18, 103, 232, 0.28);
    outline-offset: 1px;
    border-color: #1267e8;
}

.native-booking-meta {
    margin: 9px 0 0;
    color: #687b8f;
    font-size: 12px;
}

.native-booking-loading,
.native-booking-error {
    margin: 18px 0 0;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.native-booking-loading {
    background: #f1f7ff;
    color: #174d8c;
}

.native-booking-error {
    border: 1px solid #f0c4c4;
    background: #fff4f4;
    color: #a72b2b;
}

.native-booking-schedule-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(245px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}

.native-calendar-card,
.native-times-card {
    border: 1px solid #d9e4f0;
    border-radius: 14px;
    background: #fff;
}

.native-calendar-card {
    padding: 18px;
}

.native-calendar-header {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.native-calendar-month {
    text-align: center;
    color: #10253d;
    font-size: 16px;
}

#contact .native-calendar-nav {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid #d2dfed;
    border-radius: 50%;
    background: #fff;
    color: #1267e8;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

#contact .native-calendar-nav:hover:not(:disabled) {
    background: #eef6ff;
}

#contact .native-calendar-nav:disabled {
    opacity: 0.28;
    cursor: default;
}

.native-calendar-weekdays,
.native-booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.native-calendar-weekdays {
    margin-bottom: 6px;
}

.native-calendar-weekdays span {
    padding: 5px 0;
    color: #728398;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.native-calendar-blank {
    min-height: 46px;
}

#contact .native-calendar-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #18354f;
    cursor: pointer;
}

#contact .native-calendar-day:hover:not(:disabled):not(.is-selected) {
    background: #edf5ff;
}

#contact .native-calendar-day:disabled {
    color: #bdc7d1;
    cursor: default;
}

#contact .native-calendar-day.is-outside-range {
    visibility: hidden;
}

#contact .native-calendar-day.is-selected {
    background: #1267e8;
    color: #fff;
}

.native-calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.native-calendar-availability-dot {
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1267e8;
    transform: translateX(-50%);
}

#contact .native-calendar-day.is-selected .native-calendar-availability-dot {
    background: #fff;
}

.native-calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    color: #728398;
    font-size: 10px;
}

.native-calendar-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1267e8;
}

.native-times-card {
    padding: 18px;
    background: #f8fbff;
}

.native-times-heading {
    color: #1267e8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.native-times-card h4 {
    margin: 5px 0 14px;
    color: #10253d;
    font-size: 15px;
}

.native-booking-time-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 355px;
    overflow-y: auto;
    padding-right: 3px;
}

#contact .native-time-button {
    width: 100%;
    margin: 0;
    padding: 11px 10px;
    border: 1px solid #b9d2f0;
    border-radius: 8px;
    background: #fff;
    color: #1267e8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

#contact .native-time-button:hover {
    border-color: #1267e8;
    background: #eef6ff;
}

#contact .native-time-button.is-selected {
    border-color: #1267e8;
    background: #1267e8;
    color: #fff;
}

.native-time-placeholder {
    padding: 20px 12px;
    color: #718297;
    text-align: center;
    font-size: 12px;
    line-height: 1.55;
}

.native-booking-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px;
    border-radius: 10px;
    background: #f7f9fc;
    color: #607286;
    font-size: 13px;
}

.native-booking-customer-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.native-booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.native-booking-field-full {
    grid-column: 1 / -1;
}

.native-booking-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #d9e6f5;
    border-radius: 10px;
    background: #f5f9ff;
}

.native-booking-summary strong {
    color: #10253d;
    font-size: 13px;
}

.native-booking-summary span {
    color: #607286;
    font-size: 12px;
}

#contact .native-booking-primary,
#contact .native-booking-secondary {
    margin-top: 10px;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

#contact .native-booking-primary {
    background: #1267e8;
    color: #fff;
}

#contact .native-booking-primary:hover {
    background: #0d58ca;
}

#contact .native-booking-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#contact .native-booking-secondary {
    background: #edf4fd;
    color: #174d8c;
}

.native-booking-submit {
    justify-self: start;
}

.native-booking-success {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.native-booking-success .booking-confirmation-check {
    margin-top: 2px;
}

.native-booking-success-copy {
    flex: 1;
}

.native-booking-success-copy p {
    margin: 5px 0 0;
    color: #607286;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .native-booking-shell,
    .native-booking-success,
    .service-address-gate {
        width: calc(100% - 8px);
        padding: 21px 18px;
    }

    .native-booking-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-address-summary {
        text-align: left;
    }

    .native-booking-schedule-layout {
        grid-template-columns: 1fr;
    }

    .native-booking-form-grid {
        grid-template-columns: 1fr;
    }

    .native-booking-field-full {
        grid-column: auto;
    }

    .native-booking-success {
        flex-direction: column;
    }
}


/* ==== POTOMAC BOOKING UX V2 START ==== */

#native-booking-phone {
    font-variant-numeric: tabular-nums;
}

#native-booking-success {
    scroll-margin-top: 20vh;
}

/* ==== POTOMAC BOOKING UX V2 END ==== */


/* ==== POTOMAC INLINE MOBILE AUTOCOMPLETE START ==== */

@media only screen and (max-width: 600px) {

    /*
       Google desktop widget remains in the DOM so none of the
       existing desktop logic is disturbed. On phones only,
       we hide its self-contained UI and show our inline input.
    */

    #service-address-autocomplete > gmp-place-autocomplete {
        display: none !important;
    }


    #service-address-gate,
    #service-address-autocomplete {
        overflow: visible !important;
    }


    #service-address-autocomplete {
        position: relative !important;

        width: 100% !important;
        max-width: 100% !important;

        z-index: 50;
    }


    .ps-mobile-address-wrapper {
        position: relative;

        width: 100%;
        max-width: 100%;

        overflow: visible;
    }


    .ps-mobile-address-input {
        display: block;

        width: 100%;
        max-width: 100%;

        height: 52px;

        box-sizing: border-box;

        margin: 0;

        padding: 0 15px;

        font-family: inherit;

        /*
           16px is intentional. iOS Safari normally zooms
           focused form fields whose text is smaller.
        */

        font-size: 16px !important;
        line-height: 1.35;

        color: #111827;
        background: #ffffff;

        border: 1px solid #cbd5e1;
        border-radius: 10px;

        outline: none;

        -webkit-appearance: none;
        appearance: none;
    }


    .ps-mobile-address-input:focus {
        border-color: #1267e8;

        box-shadow:
            0 0 0 3px
            rgba(18, 103, 232, 0.14);
    }


    /*
       This list is physically attached beneath our input.

       It does NOT move the page and does NOT open another
       Google-controlled screen.
    */

    .ps-mobile-address-suggestions {
        position: absolute;

        top: calc(100% + 4px);
        left: 0;
        right: 0;

        display: none;

        width: 100%;
        max-width: 100%;

        max-height: min(270px, 38dvh);

        margin: 0;
        padding: 0;

        box-sizing: border-box;

        overflow-y: auto;
        overscroll-behavior: contain;

        -webkit-overflow-scrolling: touch;

        background: #ffffff;

        border: 1px solid #d5dae1;
        border-radius: 10px;

        box-shadow:
            0 12px 28px
            rgba(15, 23, 42, 0.18);

        z-index: 999999;
    }


    .ps-mobile-address-suggestions.is-open {
        display: block;
    }


    .ps-mobile-address-suggestion {
        display: block;

        width: 100%;

        min-height: 57px;

        margin: 0;
        padding: 10px 13px;

        box-sizing: border-box;

        text-align: left;

        font-family: inherit;

        color: #111827;
        background: #ffffff;

        border: 0;
        border-bottom: 1px solid #e5e7eb;

        border-radius: 0;

        cursor: pointer;

        touch-action: manipulation;
    }


    .ps-mobile-address-suggestion:last-child {
        border-bottom: 0;
    }


    .ps-mobile-address-suggestion:active {
        background: #f4f7fb;
    }


    .ps-mobile-address-main {
        display: block;

        overflow: hidden;

        font-size: 16px;
        font-weight: 600;
        line-height: 1.3;

        color: #111827;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .ps-mobile-address-secondary {
        display: block;

        overflow: hidden;

        margin-top: 3px;

        font-size: 13px;
        font-weight: 400;
        line-height: 1.3;

        color: #64748b;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .ps-mobile-address-message {
        padding: 12px 13px;

        font-size: 14px;
        line-height: 1.35;

        color: #64748b;
    }

}

/* ==== POTOMAC INLINE MOBILE AUTOCOMPLETE END ==== */


/* ==== POTOMAC MOBILE SUGGESTION STYLE START ==== */

@media only screen and (max-width: 600px) {

    #service-address-autocomplete
    .ps-mobile-address-suggestions
    .ps-mobile-address-suggestion {

        background: #ffffff !important;
        background-color: #ffffff !important;

        color: #000000 !important;

        border: 1px solid #000000 !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        margin: -1px 0 0 0 !important;
    }


    #service-address-autocomplete
    .ps-mobile-address-suggestions
    .ps-mobile-address-suggestion:first-child {

        margin-top: 0 !important;

        border-radius: 6px 6px 0 0 !important;
    }


    #service-address-autocomplete
    .ps-mobile-address-suggestions
    .ps-mobile-address-suggestion:last-child {

        border-radius: 0 0 6px 6px !important;
    }


    #service-address-autocomplete
    .ps-mobile-address-suggestions
    .ps-mobile-address-suggestion:active {

        background: #f3f3f3 !important;
        background-color: #f3f3f3 !important;
    }


    #service-address-autocomplete
    .ps-mobile-address-main {

        color: #000000 !important;
    }


    #service-address-autocomplete
    .ps-mobile-address-secondary {

        color: #555555 !important;
    }

}

/* ==== POTOMAC MOBILE SUGGESTION STYLE END ==== */
