/* =====================================================
   BCVS — FORMULAIRE DE CRÉDIT
   Style bancaire premium, simple et responsive
   ===================================================== */

/* =========================
   BASE & TYPOGRAPHIE
   ========================= */

* {  
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f5f6f8;
    color: #111;
    margin: 0;
    padding: 0;
}

/* =========================
   CONTAINER FORMULAIRE
   ========================= */

form.container {
    width: 100%;
    max-width: 1200px;        /* lecture confortable desktop */
    margin: 0 auto;
    padding: 36px 32px;
    background-color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
    form.container {
        max-width: 100%;
        padding: 22px 16px;
    }
}

/* =========================
   TITRE PRINCIPAL
   ========================= */

.form-title-banner {
    margin-bottom: 32px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #000;
}

/* =========================
   SECTIONS
   ========================= */

form h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 36px 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6e8eb; /* séparation élégante */
    color: #000;
}

/* =========================
   GRILLE
   ========================= */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.col-md-6,
.col-md-12 {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

/* =========================
   LABELS
   ========================= */

form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

/* =========================
   INPUTS & SELECTS
   ========================= */

form .form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    color: #111;
    background-color: #fff;
    border: 1px solid #cfd3d8;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Placeholder */
form .form-control::placeholder {
    color: #b6bcc3;     /* plus clair */
    font-size: 12px;    /* plus petit */
    opacity: 0.7;       /* plus discret */
}
form .form-control:focus::placeholder {
    opacity: 0.3;
}


/* Hover */
form .form-control:hover {
    border-color: #aeb3b9;
}

/* Focus (mobile & desktop) */
form .form-control:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
}

/* Readonly */
form .form-control[readonly] {
    background-color: #f2f3f5;
    color: #666;
}

/* =========================
   SELECT
   ========================= */

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* =========================
   ESPACEMENTS
   ========================= */

.mb-3 {
    margin-bottom: 20px;
}

/* =========================
   CHAMPS DYNAMIQUES
   ========================= */

#autreMontantContainer,
#autreDureeContainer,
#tauxContainer {
    display: none;
}

/* =========================
   BOUTON
   ========================= */

form .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    margin-top: 28px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

form .btn-primary:hover {
    background-color: #333;
}

form .btn-primary:active {
    transform: translateY(1px);
}

/* Mobile button full width */
@media (max-width: 768px) {
    form .btn-primary {
        width: 100%;
    }
}

/* =========================
   TEXTE LÉGAL / INFO
   ========================= */

.form-info {
    margin-top: 40px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    background-color: #f7f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}
/* =========================
   BOUTON — FULL WIDTH PC
   ========================= */

form .btn-primary {
    display: block;      /* occupe la ligne */
    width: 100%;         /* pleine largeur */
    max-width: 100%;     /* sécurité */
    margin: 32px auto 0; /* centré */
    text-align: center;
}

/* Option : léger renfort visuel desktop */
@media (min-width: 768px) {
    form .btn-primary {
        height: 52px;
        font-size: 16px;
    }
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}
.section-note {
  font-size: 13px;
  color: #666;
  margin: 6px 0 18px;
}
.form-reassurance {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}
.field-hint {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
.form-security {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

/* Option par défaut (placeholder-like) */
select.form-control option[value=""] {
    color: #b6bcc3;
}


/* Select – lisibilité & cohérence avec inputs */
select.form-control {
    height: 46px;              /* même hauteur que inputs */
    padding: 10px 14px;
    line-height: 1.4;
    color: #111;
}

/* Option sélectionnée (meilleur contraste) */
select.form-control option:checked {
    background-color: #f2f3f5;
    color: #000;
}

/* Select non encore choisi : texte discret */
select.form-control:has(option[value=""]:checked) {
    color: #9aa0a6;
}
/* Fallback si :has() non supporté */
select.form-control {
    color: #9aa0a6;
}
select.form-control:not([value=""]) {
    color: #111;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }
}
@media (max-width: 768px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


@media (max-width: 768px) {
    form .form-control,
    form select {
        font-size: 16px !important;
    }
}
