.twd-notice {
    margin: 0 0 1rem;
    padding: 1rem 1.125rem;
    border-left: 4px solid #2271b1;
    border-radius: 0.25rem;
    background: #f6f7f7;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.twd-notice--error {
    border-left-color: #b32d2e;
    background: #fcf0f1;
}

.twd-notice--success {
    border-left-color: #00844a;
    background: #effaf5;
}

.twd-notice__list {
    margin: 0;
    padding-left: 1.25rem;
}

.twd-notice__title {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.twd-notice__item + .twd-notice__item {
    margin-top: 0.375rem;
}

.twd-devis {
    margin: 1.5rem 0;
}

.twd-devis__inner {
    max-width: 48rem;
    padding: 1.5rem;
    border: 1px solid #dcdcde;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.twd-devis__header {
    margin-bottom: 1.5rem;
}

.twd-devis__title {
    margin: 0 0 0.5rem;
}

.twd-devis__description {
    margin: 0;
    color: #50575e;
}

.twd-form {
    margin: 0;
}

.twd-form__summary {
    margin: 0 0 1rem;
    color: #50575e;
    font-size: 0.9375rem;
}

.twd-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.twd-form__field--textarea,
.twd-form__field--radio,
.twd-form__field--multi_checkbox,
.twd-form__field--checkbox,
.twd-form__field--consent,
.twd-form__field--upload {
    grid-column: 1 / -1;
}

.twd-form__label,
.twd-form__checkbox label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.twd-form__control {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 0.875rem;
    font: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    border: 1px solid #8c8f94;
    border-radius: 0.25rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.twd-form__control:focus,
.twd-form__choice input:focus,
.twd-form__checkbox input[type="checkbox"]:focus {
    outline: 0;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.twd-form textarea.twd-form__control {
    min-height: 10rem;
    resize: vertical;
}

.twd-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.125rem 0;
}

.twd-form__checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.twd-form__description,
.twd-form__error {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
}

.twd-form__description--hint {
    color: #50575e;
}

.twd-form__group {
    border: 0;
    margin: 0;
    padding: 0;
}

.twd-form__choices {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.twd-form__choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.125rem 0;
}

.twd-form__error {
    color: #b32d2e;
}

.twd-form__required {
    color: #b32d2e;
}

.twd-form__control--file {
    min-height: auto;
    padding: 0.5rem 0;
    border: 0;
    box-shadow: none;
}

.twd-form__field.is-invalid .twd-form__control,
.twd-form__field.is-invalid .twd-form__checkbox input[type="checkbox"] {
    border-color: #b32d2e;
    box-shadow: 0 0 0 1px #b32d2e;
}

.twd-form__actions {
    margin-top: 1.5rem;
}

.twd-form__submit {
    min-width: 12rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    border-radius: 0.25rem;
    background: #2271b1;
    color: #fff;
    transition: background 0.15s ease, transform 0.15s ease;
}

.twd-form__submit:hover,
.twd-form__submit:focus {
    background: #135e96;
}

.twd-form__submit:active {
    transform: translateY(1px);
}

@media (max-width: 782px) {
    .twd-devis__inner {
        padding: 1.25rem;
    }

    .twd-form__grid {
        grid-template-columns: 1fr;
    }

    .twd-form__submit {
        width: 100%;
    }
}
