.agile-download-module {
    clear: both;
    margin: 24px 0;
    text-align: center;
}

.agile-download-module-before {
    margin-top: 0;
}

.agile-download-module-before .agile-download-trigger {
    background-color: var(--e-global-color-primary, #1264a3);
    font-family: var(--e-global-typography-accent-font-family), sans-serif;
    font-size: var(--fluid-18, 18px);
    font-weight: 500;
    line-height: 1.5em;
}

.agile-download-module-before .agile-download-trigger:hover,
.agile-download-module-before .agile-download-trigger:focus {
    background-color: var(--e-global-color-accent, #0e4f82);
}

.agile-download-module-after {
    margin-bottom: 0;
}

.agile-download-trigger {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
}

.agile-download-form {
    margin: 0 auto;
    max-width: 720px;
    text-align: left;
}

.elementor-popup-modal .agile-download-form {
    box-sizing: border-box;
    padding: clamp(20px, 4vw, 34px);
    width: 100%;
}

.agile-download-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agile-download-field {
    min-width: 0;
}

.agile-download-field-wide {
    grid-column: 1 / -1;
}

.agile-download-phone-code-row {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.agile-download-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.agile-download-field input,
.agile-download-field textarea {
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    box-sizing: border-box;
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.agile-download-field textarea {
    min-height: 92px;
    resize: vertical;
}

.agile-download-send-code {
    align-items: center;
    background: #1264a3;
    border: 1px solid #1264a3;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    min-height: 44px;
    min-width: 116px;
    padding: 10px 16px;
    white-space: nowrap;
}

.agile-download-send-code:hover {
    background: #0e4f82;
    border-color: #0e4f82;
}

.agile-download-send-code:disabled,
.agile-download-submit:disabled {
    cursor: wait;
    opacity: .6;
}

.agile-download-field input:focus-visible,
.agile-download-field textarea:focus-visible,
.agile-download-send-code:focus-visible,
.agile-download-submit:focus-visible {
    outline: 3px solid rgba(18, 100, 163, .25);
    outline-offset: 2px;
}

.agile-download-consent {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.agile-download-consent input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.agile-download-submit {
    background: #1264a3;
    border: 1px solid #1264a3;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    min-height: 46px;
    padding: 11px 18px;
    width: 100%;
}

.agile-download-submit:hover {
    background: #0e4f82;
    border-color: #0e4f82;
}

.agile-download-status {
    grid-column: 1 / -1;
    min-height: 1.5em;
    margin-top: -8px;
    padding: 2px 0;
}

.agile-download-status.is-error {
    color: #b42318;
}

.agile-download-status.is-success {
    color: #16803c;
}

.agile-download-status.is-loading {
    color: #475467;
}

.agile-download-honeypot {
    height: 0;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

@media (max-width: 600px) {
    .agile-download-grid {
        grid-template-columns: 1fr;
    }

    .agile-download-field-wide {
        grid-column: auto;
    }

    .agile-download-phone-code-row {
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .agile-download-send-code {
        grid-column: 2;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .agile-download-phone-code-row {
        grid-template-columns: 1fr;
    }

    .agile-download-send-code {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agile-download-form *,
    .agile-download-form *::before,
    .agile-download-form *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
