/***
=============================================
    Get A Quote popup form
=============================================
***/

.dgs-quote-lock,
.dgs-quote-lock body {
    overflow: hidden;
}

.dgs-quote {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms ease, visibility 250ms;
}

.dgs-quote.is-open {
    visibility: visible;
    opacity: 1;
}

.dgs-quote__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 38, 0.72);
}

.dgs-quote__dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 44px 40px 40px;
    background: #edf0f5;
    border-radius: 14px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 250ms ease;
    font-family: var(--thm-font);
}

.dgs-quote.is-open .dgs-quote__dialog {
    transform: translateY(0);
}

.dgs-quote .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dgs-quote__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--thm-black);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.dgs-quote__close:hover {
    background: var(--thm-base);
    color: #ffffff;
}

.dgs-quote__dialog h2 {
    margin: 0 0 6px;
    color: var(--thm-black);
    font-family: var(--thm-font);
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
}

.dgs-quote__intro {
    margin: 0 0 26px;
    color: var(--thm-gray);
    font-size: 16px;
    line-height: 1.5;
}

.dgs-quote__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
}

.dgs-quote__full {
    grid-column: 1 / -1;
}

.dgs-quote__field {
    position: relative;
    display: block;
    margin: 0;
}

.dgs-quote__form input,
.dgs-quote__form select,
.dgs-quote__form textarea {
    display: block;
    width: 100%;
    height: 62px;
    padding: 0 22px;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--thm-black);
    font-family: var(--thm-font);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    box-shadow: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.dgs-quote__form textarea {
    height: 120px;
    padding: 18px 22px;
    resize: vertical;
}

.dgs-quote__form select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 46px;
    cursor: pointer;
    text-overflow: ellipsis;
}

.dgs-quote__form input::placeholder,
.dgs-quote__form textarea::placeholder {
    color: #3b4250;
    opacity: 1;
}

.dgs-quote__form select:invalid {
    color: #3b4250;
}

.dgs-quote__form input:focus,
.dgs-quote__form select:focus,
.dgs-quote__form textarea:focus {
    border-color: var(--thm-base);
    box-shadow: 0 0 0 3px rgba(var(--thm-base-rgb), 0.18);
}

.dgs-quote__form .is-invalid {
    border-color: #d93a3a;
}

.dgs-quote__chev {
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -7px;
    color: var(--thm-black);
    pointer-events: none;
}

.dgs-quote__phone {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
}

.dgs-quote__code {
    position: relative;
    flex: 0 0 150px;
    margin: 0;
}

.dgs-quote__code select {
    border-radius: 12px 0 0 12px;
    border-right: 1px solid #e3e6ec;
}

.dgs-quote__mobile {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.dgs-quote__mobile input {
    border-radius: 0 12px 12px 0;
}

.dgs-quote__error {
    margin: 18px 0 0;
    color: #d93a3a;
    font-size: 15px;
}

.dgs-quote__submit {
    display: inline-block;
    margin-top: 28px;
    padding: 0 50px;
    height: 58px;
    border: 0;
    border-radius: 12px;
    background: var(--thm-base);
    color: #ffffff;
    font-family: var(--thm-font);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 200ms ease;
}

.dgs-quote__submit:hover {
    background: var(--thm-black);
}

.dgs-quote__success {
    margin: 18px 0 0;
    padding: 14px 18px;
    background: #e3f4e6;
    border-radius: 10px;
    color: #1d6b2c;
    font-size: 15px;
}

@media only screen and (max-width: 767px) {
    .dgs-quote {
        padding: 10px;
    }

    .dgs-quote__dialog {
        max-height: calc(100vh - 20px);
        padding: 56px 18px 26px;
    }

    .dgs-quote__dialog h2 {
        font-size: 26px;
    }

    .dgs-quote__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dgs-quote__form input,
    .dgs-quote__form select {
        height: 54px;
        padding: 0 16px;
        font-size: 15px;
    }

    .dgs-quote__form select {
        padding-right: 40px;
    }

    .dgs-quote__code {
        flex-basis: 125px;
    }

    .dgs-quote__submit {
        width: 100%;
    }
}

/* ---------- Success alert (quote popup + contact form) ---------- */
.dgs-alert {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms ease, visibility 250ms ease;
}

.dgs-alert.is-open {
    visibility: visible;
    opacity: 1;
}

.dgs-alert__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 30, 0.6);
    backdrop-filter: blur(3px);
}

.dgs-alert__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px 34px 32px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
    transform: translateY(16px) scale(0.96);
    transition: transform 300ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.dgs-alert.is-open .dgs-alert__box {
    transform: none;
}

.dgs-alert__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(43, 182, 115, 0.12);
    color: #2bb673;
}

.dgs-alert__ring {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}

.dgs-alert__tick {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}

.dgs-alert.is-open .dgs-alert__ring {
    animation: dgsAlertDraw 600ms ease-out 150ms forwards;
}

.dgs-alert.is-open .dgs-alert__tick {
    animation: dgsAlertDraw 350ms ease-out 650ms forwards;
}

@keyframes dgsAlertDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.dgs-alert__box h3 {
    margin: 0 0 10px;
    color: var(--thm-black, #17334a);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.dgs-alert__box p {
    margin: 0 0 26px;
    color: var(--thm-gray, #6b7385);
    font-size: 16px;
    line-height: 1.65;
}

.dgs-alert__btn {
    min-width: 160px;
    padding: 14px 30px;
    border: 0;
    border-radius: 8px;
    background: var(--thm-base, #c9974a);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 250ms ease;
}

.dgs-alert__btn:hover,
.dgs-alert__btn:focus-visible {
    background: var(--thm-black, #17334a);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .dgs-alert__ring,
    .dgs-alert__tick {
        stroke-dashoffset: 0;
        animation: none !important;
    }
}
