.aks-quote-modal,
.aks-contact-main {
    --quote-navy: #102a46;
    --quote-navy-soft: #142e4c;
    --quote-blue: #03503c;
    --quote-blue-dark: #024332;
    --quote-orange: #102a46;
    --quote-text: #102a46;
    --quote-muted: #71828f;
    --quote-border: #dce6ec;
    --quote-soft: #f4f7f9;
}

/* The fixed header uses a high stacking level. Keep the modal and its
   backdrop above every desktop and mobile menu layer. */
.aks-quote-modal {
    z-index: 11020;
}

.modal-backdrop.show {
    z-index: 11010;
}

.aks-quote-modal .modal-dialog {
    width: min(calc(100% - 32px), 1160px);
    max-width: 1160px;
    margin-right: auto;
    margin-left: auto;
}

.aks-quote-modal .modal-content {
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 26px;
    box-shadow: 0 34px 90px rgba(3, 18, 29, .32);
}

.aks-quote-modal .modal-body {
    padding: 0;
}

.aks-quote-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #355064;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(20, 52, 74, .12);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(8, 25, 39, .1);
    align-items: center;
    justify-content: center;
    transition: color .2s ease, transform .2s ease, background .2s ease;
}

.aks-quote-modal-close:hover {
    color: #fff;
    background: var(--quote-blue);
    transform: rotate(8deg);
}

.aks-quote-modal-grid {
    display: grid;
    min-height: 690px;
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.38fr);
}

.aks-quote-modal-aside {
    position: relative;
    display: flex;
    min-height: 100%;
    padding: 48px 42px 38px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(5, 24, 38, .56) 0%, rgba(7, 31, 47, .94) 58%, #071f31 100%),
        url('../images/slider/showcase/2.webp') center/cover no-repeat;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.aks-quote-modal-aside::before,
.aks-quote-modal-aside::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    content: "";
}

.aks-quote-modal-aside::before {
    top: -150px;
    right: -190px;
    width: 460px;
    height: 460px;
}

.aks-quote-modal-aside::after {
    right: -85px;
    bottom: 100px;
    width: 240px;
    height: 240px;
}

.aks-quote-aside-kicker,
.aks-contact-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    color: #fff;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.aks-quote-aside-kicker::before,
.aks-contact-kicker::before {
    width: 28px;
    height: 2px;
    background: currentColor;
    content: "";
}

.aks-quote-modal-aside h3 {
    max-width: 330px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 3.2vw, 45px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.aks-quote-modal-aside > div > p {
    max-width: 330px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.75;
}

.aks-quote-benefits {
    display: grid;
    margin: 34px 0 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.aks-quote-benefits li {
    display: grid;
    padding: 14px 15px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    backdrop-filter: blur(8px);
    align-items: center;
    gap: 13px;
    grid-template-columns: 38px 1fr;
}

.aks-quote-benefits i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--quote-blue);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.aks-quote-benefits strong,
.aks-quote-benefits span {
    display: block;
}

.aks-quote-benefits strong {
    color: #fff;
    font-size: 13px;
}

.aks-quote-benefits span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .61);
    font-size: 11px;
}

.aks-quote-aside-contact {
    display: flex;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    flex-wrap: wrap;
    gap: 10px 20px;
}

.aks-quote-aside-contact a {
    display: inline-flex;
    color: rgba(255, 255, 255, .82);
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.aks-quote-aside-contact a:hover {
    color: #fff;
}

.aks-quote-modal-main {
    padding: 42px 46px 38px;
    background: #fff;
}

.aks-quote-modal-heading {
    padding-right: 44px;
}

.aks-quote-modal-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--quote-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.aks-quote-modal-heading h2 {
    margin: 0;
    color: var(--quote-text);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.aks-quote-modal-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--quote-muted);
    font-size: 13px;
    line-height: 1.65;
}

.aks-quote-form {
    position: relative;
    margin-top: 28px;
}

.aks-quote-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 16px;
}

.aks-quote-field {
    min-width: 0;
}

.aks-quote-field-wide {
    grid-column: 1 / -1;
}

.aks-quote-field > label {
    display: block;
    margin: 0 0 7px;
    color: #385164;
    font-size: 12px;
    font-weight: 750;
}

.aks-quote-field > label span {
    color: #ef624f;
}

.aks-quote-field > label small {
    color: #8a99a4;
    font-size: 10px;
    font-weight: 600;
}

.aks-quote-control {
    position: relative;
}

.aks-quote-control > i:first-child {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #78909f;
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.aks-quote-control input,
.aks-quote-control select,
.aks-quote-control textarea {
    width: 100%;
    min-height: 47px;
    margin: 0;
    padding: 11px 42px;
    color: #1d3548;
    background: #f7f9fa;
    border: 1px solid var(--quote-border);
    border-radius: 11px;
    outline: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.aks-quote-control input::placeholder,
.aks-quote-control textarea::placeholder {
    color: #9aa8b2;
}

.aks-quote-control select {
    padding-right: 40px;
    appearance: none;
}

.aks-quote-control input:focus,
.aks-quote-control select:focus,
.aks-quote-control textarea:focus {
    background: #fff;
    border-color: rgba(3, 80, 60, .75);
    box-shadow: 0 0 0 4px rgba(3, 80, 60, .09);
}

.aks-quote-control-textarea textarea {
    min-height: 100px;
    padding: 13px 15px;
    resize: vertical;
}

.aks-quote-select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #78909f;
    font-size: 10px;
    pointer-events: none;
    transform: translateY(-50%);
}

.aks-quote-control-suffix {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #71828f;
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
}

.aks-quote-field-error {
    display: block;
    min-height: 15px;
    margin-top: 4px;
    color: #d74f42;
    font-size: 10px;
    line-height: 1.35;
}

.aks-quote-field-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.aks-quote-field-meta > span:last-child {
    margin-top: 4px;
    color: #95a3ad;
    font-size: 10px;
    white-space: nowrap;
}

.aks-quote-field.has-error .aks-quote-control input,
.aks-quote-field.has-error .aks-quote-control select,
.aks-quote-field.has-error .aks-quote-control textarea,
.aks-quote-form.was-validated .aks-quote-control input:invalid,
.aks-quote-form.was-validated .aks-quote-control select:invalid,
.aks-quote-form.was-validated .aks-quote-control textarea:invalid {
    background: #fffafa;
    border-color: #e47a70;
}

.aks-quote-consent-field {
    margin-top: -2px;
}

.aks-quote-consent {
    display: grid !important;
    margin: 0 !important;
    color: #6d7f8c !important;
    cursor: pointer;
    align-items: flex-start;
    gap: 10px;
    grid-template-columns: 20px 1fr;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.55;
}

.aks-quote-consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.aks-quote-consent-box {
    display: inline-flex;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #fff !important;
    background: #fff;
    border: 1px solid #cbd8df;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.aks-quote-consent input:checked + .aks-quote-consent-box {
    background: var(--quote-blue);
    border-color: var(--quote-blue);
}

.aks-quote-consent input:focus-visible + .aks-quote-consent-box {
    box-shadow: 0 0 0 4px rgba(3, 80, 60, .13);
}

.aks-quote-consent-box i {
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s ease, transform .2s ease;
}

.aks-quote-consent input:checked + .aks-quote-consent-box i {
    opacity: 1;
    transform: scale(1);
}

.aks-quote-form-toolbar {
    display: flex;
    margin-top: 5px;
    padding-top: 18px;
    border-top: 1px solid #e8eef2;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.aks-quote-form-toolbar p {
    display: flex;
    max-width: 310px;
    margin: 0;
    color: #84939e;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
    line-height: 1.5;
}

.aks-quote-form-toolbar p i {
    margin-top: 2px;
    color: var(--quote-blue);
}

.aks-quote-submit {
    display: inline-flex;
    min-width: 182px;
    min-height: 48px;
    padding: 0 22px;
    color: #fff;
    background: var(--quote-blue);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(3, 80, 60, .22);
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.aks-quote-submit:hover {
    background: var(--quote-blue-dark);
    box-shadow: 0 15px 32px rgba(2, 67, 50, .28);
    transform: translateY(-2px);
}

.aks-quote-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.aks-quote-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aks-quote-spin .7s linear infinite;
}

.aks-quote-form.is-submitting [data-submit-icon] {
    display: none;
}

.aks-quote-form.is-submitting .aks-quote-spinner {
    display: inline-block;
}

.aks-quote-form-alert {
    margin: 14px 0 0;
    padding: 12px 14px;
    color: #9a342d;
    background: #fff2f0;
    border: 1px solid #ffd8d3;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.5;
}

.aks-quote-success {
    display: flex;
    min-height: 190px;
    padding: 28px;
    background: linear-gradient(135deg, #f2fbf7, #f2f8fc);
    border: 1px solid #d9ede3;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: left;
}

.aks-quote-success[hidden] {
    display: none;
}

.aks-quote-success-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    color: #fff;
    background: #24a267;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(36, 162, 103, .22);
    align-items: center;
    justify-content: center;
}

.aks-quote-success strong {
    display: block;
    color: #183e2d;
    font-size: 20px;
}

.aks-quote-success p {
    max-width: 390px;
    margin: 6px 0 0;
    color: #647b6f;
    font-size: 12px;
    line-height: 1.6;
}

.aks-quote-form.is-complete [data-form-fields],
.aks-quote-form.is-complete [data-form-toolbar],
.aks-quote-form.is-complete [data-form-alert] {
    display: none !important;
}

.aks-quote-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Contact page */
.aks-contact-main {
    padding: 88px 0;
    background: #f3f6f8;
}

.aks-contact-layout {
    display: grid;
    align-items: stretch;
    gap: 28px;
    grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
}

.aks-contact-info-panel,
.aks-contact-form-card {
    overflow: hidden;
    border-radius: 22px;
}

.aks-contact-info-panel {
    position: relative;
    padding: clamp(34px, 4vw, 54px);
    color: #fff;
    background: linear-gradient(145deg, #102a46, #142e4c);
    isolation: isolate;
}

.aks-contact-info-panel::after {
    position: absolute;
    right: -110px;
    bottom: -130px;
    z-index: -1;
    width: 330px;
    height: 330px;
    background: rgba(3, 80, 60, .18);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.aks-contact-info-panel h2 {
    max-width: 390px;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.aks-contact-info-panel > p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.75;
}

.aks-contact-details {
    display: grid;
    margin: 36px 0 0;
    gap: 12px;
}

.aks-contact-detail {
    display: grid;
    min-height: 78px;
    padding: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    align-items: center;
    gap: 14px;
    grid-template-columns: 44px 1fr;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.aks-contact-detail:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transform: translateX(3px);
}

.aks-contact-detail > i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--quote-blue, #03503c);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.aks-contact-detail small,
.aks-contact-detail strong {
    display: block;
}

.aks-contact-detail small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .54);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.aks-contact-detail strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
}

.aks-contact-socials {
    display: flex;
    margin-top: 28px;
    align-items: center;
    gap: 10px;
}

.aks-contact-socials > span {
    margin-right: 5px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.aks-contact-socials a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.aks-contact-socials a:hover {
    background: #03503c;
}

.aks-contact-form-card {
    padding: clamp(30px, 4vw, 48px);
    background: #fff;
    border: 1px solid #e2e9ed;
    box-shadow: 0 22px 60px rgba(8, 25, 39, .08);
}

.aks-contact-form-heading > span {
    color: #03503c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.aks-contact-form-heading h2 {
    margin: 8px 0 0;
    color: #193044;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.aks-contact-form-heading p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #71828f;
    font-size: 13px;
    line-height: 1.7;
}

.aks-contact-form-card .aks-quote-form {
    margin-top: 30px;
}

.aks-contact-map-section {
    padding: 84px 0 96px;
    background: #fff;
}

.aks-contact-map-heading {
    display: flex;
    margin-bottom: 28px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.aks-contact-map-heading h2 {
    margin: 7px 0 0;
    color: #193044;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 760;
    letter-spacing: -.035em;
}

.aks-contact-map-heading p {
    max-width: 460px;
    margin: 0;
    color: #71828f;
    font-size: 13px;
    line-height: 1.7;
}

.aks-contact-map-frame {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #e9eff2;
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(8, 25, 39, .1);
}

.aks-contact-map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@keyframes aks-quote-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .aks-quote-modal .modal-dialog {
        width: min(calc(100% - 24px), 760px);
    }

    .aks-quote-modal-grid {
        grid-template-columns: 1fr;
    }

    .aks-quote-modal-aside {
        min-height: 245px;
        padding: 34px 34px 28px;
    }

    .aks-quote-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .aks-quote-benefits li {
        grid-template-columns: 34px 1fr;
    }

    .aks-quote-benefits i {
        width: 34px;
        height: 34px;
    }

    .aks-quote-aside-contact {
        display: none;
    }

    .aks-contact-layout {
        grid-template-columns: 1fr;
    }

    .aks-contact-map-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .aks-quote-modal .modal-dialog {
        width: 100%;
        min-height: 100%;
        margin: 0;
    }

    .aks-quote-modal .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }

    .aks-quote-modal-aside {
        min-height: auto;
        padding: 30px 24px 24px;
    }

    .aks-quote-modal-aside h3 {
        max-width: 280px;
        font-size: 31px;
    }

    .aks-quote-modal-aside > div > p,
    .aks-quote-benefits {
        display: none;
    }

    .aks-quote-modal-main {
        padding: 30px 22px 28px;
    }

    .aks-quote-form-fields {
        grid-template-columns: 1fr;
    }

    .aks-quote-field-wide {
        grid-column: auto;
    }

    .aks-quote-form-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .aks-quote-submit {
        width: 100%;
    }

    .aks-contact-main {
        padding: 56px 0;
    }

    .aks-contact-info-panel,
    .aks-contact-form-card {
        border-radius: 17px;
    }

    .aks-contact-map-section {
        padding: 58px 0 70px;
    }

    .aks-contact-map-frame {
        min-height: 350px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aks-quote-submit,
    .aks-quote-modal-close,
    .aks-contact-detail {
        transition: none;
    }
}
