/* ===============================
   FORM CONTAINER
================================ */
#documentForm {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===============================
   MAIN TITLE
================================ */
#documentForm h2 {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    color: #111;
}

#documentForm > p {
    font-size: 0.9rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 36px;
}

/* ===============================
   SECTION TITLES
================================ */
.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111;
}

/* ===============================
   SECTION NOTES
================================ */
.section-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ===============================
   LABELS
================================ */
#documentForm .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* ===============================
   INPUTS & SELECTS
================================ */
#documentForm input,
#documentForm select {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Placeholder */
#documentForm ::placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Focus */
#documentForm input:focus,
#documentForm select:focus {
    border-color: #800000;
    box-shadow: 0 0 0 2px rgba(128,0,0,0.12);
    outline: none;
}

/* ===============================
   SELECT CLEAN STYLE
================================ */
#documentForm select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

/* ===============================
   CHECKBOXES
================================ */
#documentForm .form-check {
    margin-top: 10px;
}

#documentForm .form-check-input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    cursor: pointer;
}

#documentForm .form-check-input:checked {
    background-color: #800000;
    border-color: #800000;
}

#documentForm .form-check-label {
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
}

/* ===============================
   DIVIDERS
================================ */
#documentForm hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 28px 0;
}

/* ===============================
   SUBMIT BUTTON
================================ */
.submit-btn {
    margin-top: 10px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    background: #800000;
    transition: all .25s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(128,0,0,0.25);
}

/* ===============================
   SUBMIT NOTE
================================ */
.submit-note {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    #documentForm {
        padding: 28px 20px;
    }

    .section-title {
        font-size: 1rem;
    }
}

/* ===============================
   FIX SELECT TEXT ALIGNMENT
================================ */
#documentForm select {
    height: 46px;                 /* hauteur fixe premium */
    line-height: 46px;            /* centre verticalement le texte */
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

/* Fix option text */
#documentForm select option {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===============================
   FIELD ERROR STATE (PREMIUM)
================================ */
.field-error {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 2px rgba(185,28,28,0.15);
}

.error-message {
    font-size: 0.75rem;
    color: #b91c1c;
    margin-top: 6px;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    #documentForm {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    #documentForm {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}



@media (max-width: 768px) {
    #documentForm input,
    #documentForm select {
        font-size: 16px !important;
    }
}
