.home-form {
    display: grid;
    gap: 25px;
    width: 100%;
    margin: 0;
    font: 400 16px/1.35 var(--home-font, Arial, sans-serif);
}

.home-form > input,
.home-form > textarea,
.home-form-phone {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid #c9c9c9;
    border-radius: 5px;
    background: #fff;
    color: #262626;
    font: inherit;
}

.home-form > input,
.home-form-phone {
    height: 60px;
}

.home-form > input,
.home-form > textarea {
    padding: 0 20px;
}

#quote-request .home-form > textarea {
    margin-bottom: 4px;
}

.home-form > textarea {
    min-height: 102px;
    padding-top: 16px;
    padding-bottom: 16px;
    resize: vertical;
}

.home-form > input::placeholder,
.home-form > textarea::placeholder,
.home-form-phone input::placeholder {
    color: #787878;
    opacity: 1;
}

.home-form-phone {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.home-form-phone input {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.home-form-phone:focus-within,
.home-form > input:focus,
.home-form > textarea:focus {
    outline: 2px solid #216bcf;
    outline-offset: 1px;
}

.home-form-phone input:focus {
    outline: 0;
}

.home-form-country {
    position: relative;
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    gap: 4px;
    height: 32px;
}

.home-form-country::after {
    content: "";
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top-color: #989898;
    transform: translateY(3px);
}

.home-form-dialog .home-form-country {
    flex-basis: 43px;
}

.home-form-country select {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.home-form-country [data-phone-flag] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    min-height: 14px;
    border-radius: 2px;
    font-size: 18px;
    line-height: 1;
}

.home-form-country [data-phone-flag]:empty {
    min-height: 13px;
    background: #bfc0c1;
}

.home-form-prefix {
    margin-right: 4px;
    white-space: nowrap;
}

.home-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #586c80;
    font: 400 11px/1.4 Arial, sans-serif;
    text-align: left;
}

.home-form-consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 2px 0 0;
    accent-color: #216bcf;
}

.home-form-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 1px;
}

.home-form-submit {
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: #216acd;
    color: #fff;
    box-shadow: 0 15px 30px -10px rgb(0 11 48 / 20%);
    font: 600 16px/1.25 var(--home-font, Arial, sans-serif);
    cursor: pointer;
    transition: background-color .2s ease;
}

.home-form-submit:hover {
    background: #195eba;
}

.home-form-dialog .home-form-submit {
    position: relative;
    overflow: hidden;
}

.home-form-dialog .home-form-submit::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, transparent 49%, rgb(255 255 255 / 17%) 51%);
    content: "";
    pointer-events: none;
}

.home-form-submit:disabled {
    cursor: wait;
    opacity: .7;
}

.home-form-footer {
    max-width: 440px;
    gap: 8px;
    font: 400 14px/1.35 Arial, sans-serif;
}

.home-form-footer > input,
.home-form-footer > textarea,
.home-form-footer .home-form-phone {
    border: 0;
    border-radius: 10px;
    background: #f7f7f7;
}

.home-form-footer > input,
.home-form-footer .home-form-phone {
    height: 40px;
}

.home-form-footer .home-form-consent {
    margin: 6px 0 2px;
}

.home-form-footer .home-form-submit {
    min-height: 44px;
    background: linear-gradient(135deg, #262626, #0d0d0d);
    box-shadow: none;
    font: 500 16px/1.25 Arial, sans-serif;
}

.home-form-footer .home-form-submit:hover {
    background: #195eba;
}

.home-form-dialog {
    box-sizing: border-box;
    width: min(560px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    overflow: visible;
    margin: auto;
    border: 0;
    background: #fff;
    color: #000;
}

.home-form-dialog::backdrop {
    background: rgb(0 0 0 / 60%);
}

body:has(.home-form-dialog[open]) {
    overflow: hidden;
}

.home-form-panel {
    box-sizing: border-box;
    max-height: inherit;
    overflow-y: auto;
    padding: 40px 45px;
}

.home-form-dialog-copy {
    margin: 0 0 24px;
    text-align: center;
}

.home-form-dialog-copy h2 {
    margin: 0 0 11px;
    color: inherit;
    font: 600 36px/1.23 var(--home-font, Arial, sans-serif);
    letter-spacing: -.02em;
}

.home-form-dialog-copy h2:focus {
    outline: 0;
}

.home-form-dialog-copy p {
    margin: 0;
    font: 300 16px/1.55 var(--home-font, Arial, sans-serif);
}

.home-form-close {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.home-form-close::before,
.home-form-close::after {
    position: absolute;
    top: calc(50% - 1px);
    right: calc(50% - 14.5px);
    width: 29px;
    height: 2px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
}

.home-form-close::after {
    transform: rotate(-45deg);
}

.home-form-status:not([hidden]) {
    padding: 14px;
    background: #edf5ff;
    color: #173b6d;
    font: 400 15px/1.5 Arial, sans-serif;
}

.home-form[data-home-complete] > :not([data-home-status]),
.home-form-dialog:has(.home-form[data-home-complete]) .home-form-dialog-copy {
    display: none;
}

.home-form-status.home-form-success:not([hidden]) {
    padding: 24px 12px;
    background: transparent;
    color: #172d49;
    font: 400 16px/1.5 var(--home-font, Arial, sans-serif);
    text-align: center;
}

.home-form-success-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #216bcf;
    font-size: 30px;
}

.home-form-success h3 {
    margin: 0 0 12px;
    color: #172d49;
    font: 600 28px/1.2 var(--home-font, Arial, sans-serif);
}

.home-form-success p {
    max-width: 340px;
    margin: 0 auto 22px;
    color: #526984;
}

.home-form-success button {
    min-height: 44px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: #216bcf;
    color: #fff;
    font: 500 15px/1.3 var(--home-font, Arial, sans-serif);
    cursor: pointer;
}

@media (max-width: 640px) {
    .home-form-dialog .home-form > input,
  .home-form-dialog .home-form-phone {
        height: 50px;
        padding-inline: 14px;
    }

    .home-form-dialog .home-form > textarea {
        padding-inline: 14px;
    }

    .home-form-dialog .home-form-submit {
        min-height: 50px;
    }

    .home-form-footer > input,
  .home-form-footer .home-form-phone {
        height: 49px;
        border-radius: 6px;
    }

    .home-form-footer .home-form-submit {
        min-height: 52px;
        font-size: 14px;
    }

    .home-form-panel {
        padding: 20px;
    }

    .home-form-dialog-copy {
        margin-bottom: 14px;
    }

    .home-form-dialog-copy h2 {
        margin-bottom: 6px;
        font-size: 28px;
    }

    #call-request .home-form-dialog-copy h2 {
        font-size: clamp(21px, 6.8vw, 28px);
        line-height: 1.29;
    }

    .home-form-dialog-copy p {
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (max-width: 560px) {
    .home-form-dialog {
        width: 100%;
        height: 100dvh;
        max-height: none;
    }

    .home-form-panel {
        height: 100%;
        padding-top: 70px;
        padding-bottom: 32px;
    }

    .home-form-close {
        inset: 0 0 auto;
        width: 100%;
        height: 50px;
        background: #000;
        color: #fff;
    }

    .home-form-close::before,
  .home-form-close::after {
        right: 18px;
        width: 20px;
    }
}
