/**************************************
 * CONTAINER
 **************************************/
.devis-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

/**************************************
 * SECTIONS
 **************************************/
.devis-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.devis-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.devis-section-title {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    font-weight: 700;
    color: #222;
}

/**************************************
 * GRID OF FIELDS
 **************************************/
.devis-section-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3rem 1.5rem;
}

@media (min-width: 768px) {
    .devis-section-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* For fields that must span 2 columns */
    .devis-field--full {
        grid-column: 1 / -1;
    }
}

/**************************************
 * FIELDS
 **************************************/
.devis-field {
    display: flex;
    flex-direction: column;
}

/**************************************
 * LABELS
 **************************************/
.devis-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.devis-required {
    color: #e63946;
    margin-left: 0.25rem;
}

/**************************************
 * BADGE
 **************************************/
.devis-badge {
    display: inline-block;
    margin-left: .4rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: rgba(37,99,235,0.12);
    color: #2563eb;
    vertical-align: middle;
}

.devis-field.is-recommended {
    padding: .6rem;
    border-radius: 10px;
    background: rgba(37,99,235,0.04);
    border: 1px solid rgba(37,99,235,0.12);
}

/**************************************
 * STANDARD INPUTS
 **************************************/
.devis-input,
.devis-select,
.devis-textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
}

.devis-input:focus,
.devis-select:focus,
.devis-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

.devis-textarea {
    min-height: 120px;
    resize: vertical;
}

/**************************************
 * CHECKBOXES & RADIOS — PERFECT ALIGNMENT
 **************************************/
.devis-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.devis-checkbox-option,
.devis-radio-option {
    display: inline-flex;          /* Align text + checkbox side-by-side */
    align-items: center;           /* Vertical alignment */
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.25;
}

.devis-checkbox-option input,
.devis-radio-option input {
    margin: 0;
    padding: 0;
    vertical-align: middle;
    position: relative;
    top: 0;                        /* Adjust -1px or +1px if needed */
}

/**************************************
 * TOTAL
 **************************************/
.devis-total {
    margin: 2rem 0 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: right;
}

.devis-total span {
    color: #2563eb;
}

/**************************************
 * SUBMIT BUTTON
 **************************************/
.devis-submit {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.05s ease-out,
                box-shadow 0.1s ease-out,
                background 0.15s;
}

.devis-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 10px 20px rgba(37,99,235,0.25);
    transform: translateY(-1px);
}

.devis-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/**************************************
 * SUCCESS MESSAGE
 **************************************/
.devis-success {
    max-width: 900px;
    margin: 0 auto 1.2rem;
    padding: 0.8rem 1rem;
    background: #ecfdf3;
    color: #166534;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    font-size: 0.95rem;
}

/* FIX MOBILE — padding global du form */
@media (max-width: 767px) {

    .devis-form {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .devis-total {
        padding-left: 0;
        padding-right: 0;
        text-align: left;
    }

    .devis-submit {
        display: block;
        width: 100%;
        margin: 0.5rem 0 1rem !important;
        box-sizing: border-box;
    }
}