.royal-solution-form {
    width: 100%;
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    color: #222b33;
}

.royal-solution-form__heading {
    margin-bottom: 14px;
}

.royal-solution-form__heading h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.35;
}

.royal-solution-form__heading p {
    margin: 0;
    color: #5d6872;
}

.royal-solution-form__form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.royal-solution-form__field,
.royal-solution-form__actions {
    min-width: 0;
}

.royal-solution-form__field--wide {
    grid-column: 1 / -1;
}

.royal-solution-form label {
    display: block;
    margin-bottom: 6px;
    color: #303941;
    font-weight: 600;
}

.royal-solution-form input,
.royal-solution-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #cfd5da;
    border-radius: 6px;
    background: #fff;
    color: #1e252b;
    font: inherit;
}

.royal-solution-form textarea {
    resize: vertical;
}

.royal-solution-form input:focus,
.royal-solution-form textarea:focus,
.royal-solution-form__submit:focus-visible {
    outline: 2px solid #1f6f54;
    outline-offset: 2px;
}

.royal-solution-form [aria-invalid="true"] {
    border-color: #b64242;
}

.royal-solution-form__error {
    margin: 5px 0 0;
    color: #a52f2f;
    font-size: 14px;
}

.royal-solution-form__error[hidden] {
    display: none;
}

.royal-solution-form__status:empty {
    display: none;
}

.royal-solution-form__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.royal-solution-form__submit {
    min-height: 44px;
    border-radius: 6px;
}

.royal-solution-form__submit:disabled {
    cursor: wait;
    opacity: .7;
}

.royal-solution-form__status {
    color: #3e4850;
}

.royal-solution-form__status[data-state="success"] {
    color: #1f6f54;
}

.royal-solution-form__status[data-state="error"] {
    color: #a52f2f;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .royal-solution-form__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .royal-solution-form {
        padding: 18px 16px;
    }

    .royal-solution-form__form {
        grid-template-columns: minmax(0, 1fr);
    }

    .royal-solution-form__field--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 320px) {
    .royal-solution-form {
        padding: 18px 12px;
    }

    .royal-solution-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .royal-solution-form__submit {
        width: 100%;
    }
}
