.st-application-form-card {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.st-application-form-card *,
.st-application-form-card *::before,
.st-application-form-card *::after {
    box-sizing: border-box;
}

.st-application-form-card__heading {
    margin-bottom: 18px;
}

.st-application-form-card__title {
    margin: 0 0 7px;
}

.st-application-form-card__subtitle {
    margin: 0;
}

.st-application-form__fields {
    display: grid;
    gap: 12px;
}

.st-application-form__field {
    margin: 0;
}

.st-application-form__field input,
.st-application-form__field textarea {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d8dbe3;
    border-radius: 8px;
    background: #fff;
    color: #202124;
    font: inherit;
    line-height: 1.35;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.st-application-form__field textarea {
    display: block;
    resize: vertical;
}

.st-application-form__field input:focus,
.st-application-form__field textarea:focus {
    border-color: #6546c7;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(101, 70, 199, .12);
}

.st-application-form__field [aria-invalid="true"] {
    border-color: #c62828;
}

.st-application-form__submit {
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.st-application-form__submit:disabled,
.st-application-form__submit.is-loading {
    cursor: wait;
    opacity: .7;
}

.st-application-form__footer {
    margin-top: 10px;
}

.st-application-form__note {
    margin: 0;
}

.st-application-form__message {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.st-application-form__message.is-success,
.st-application-form__message.is-error {
    display: block;
}

.st-application-form__message.is-success {
    color: #137333;
}

.st-application-form__message.is-error {
    color: #b3261e;
}

.st-application-form .st-cta-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.st-application-form-card--vertical .st-application-form__fields {
    grid-template-columns: minmax(0, 1fr);
}

.st-application-form-card--horizontal {
    width: 100%;
    margin: 34px 0;
    padding: 24px;
    border: 1px solid #e3def5;
    border-radius: 14px;
    background: #f8f6ff;
    box-shadow: 0 8px 25px rgba(37, 22, 86, .07);
}

.st-application-form-card--horizontal .st-application-form-card__heading {
    margin-bottom: 16px;
    text-align: left;
}

.st-application-form-card--horizontal .st-application-form-card__title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.st-application-form-card--horizontal .st-application-form__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr) auto;
    align-items: stretch;
}

.st-application-form-card--horizontal .st-application-form__field textarea {
    height: 48px;
    min-height: 48px;
    resize: none;
}

.st-application-form-card--horizontal .st-application-form__submit {
    align-self: stretch;
}

.st-application-form-card--horizontal .st-application-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
}

@media (max-width: 980px) {
    .st-application-form-card--horizontal .st-application-form__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-application-form-card--horizontal .st-application-form__field--query {
        grid-column: 1 / -1;
    }

    .st-application-form-card--horizontal .st-application-form__submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .st-application-form-card--horizontal {
        margin: 24px 0;
        padding: 18px;
    }

    .st-application-form-card--horizontal .st-application-form__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .st-application-form-card--horizontal .st-application-form__field--query,
    .st-application-form-card--horizontal .st-application-form__submit {
        grid-column: auto;
    }
}
