/* Caution — styles alignés sur le formulaire du thème (page contact / Gravity Forms).
   Couleurs du thème : primary #012334, secondary/brown #C5A37E, blue-gray #809199. */

.awa-caution {
    max-width: 620px;
    margin: 0 auto;
}

.awa-caution__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.awa-caution__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.awa-caution__field label {
    font-size: 0.9rem;
    line-height: normal;
    color: #fff;
    display: inline-block;
}

/* Champs texte : fond transparent, bordure dorée, texte blanc (comme le thème). */
.awa-caution__field input {
    width: 100%;
    border: 1px solid #C5A37E;
    background-color: transparent;
    color: #fff;
    padding: 15px;
    appearance: none;
    font-size: 18px;
    line-height: normal;
    font-family: inherit;
    border-radius: 0.2rem;
    box-sizing: border-box;
}

.awa-caution__field input::placeholder {
    color: #fff;
    opacity: 0.7;
}

.awa-caution__field input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #809199;
}

.awa-caution__field input:focus::placeholder {
    color: #809199;
    opacity: 1;
}

/* Select : fond blanc / texte gris, comme les selects du thème. */
.awa-caution__field select {
    width: 100%;
    padding: 8px 12px;
    height: 42px;
    background-color: #fff;
    color: #4c4c4c;
    border: 1px solid #eeeeee;
    border-radius: 0.2rem;
    font-size: 16px;
    font-family: inherit;
}

.awa-caution__field select:focus {
    outline: none;
}

/* Encart montant : carte sombre lisible sur fond foncé. */
.awa-caution__amount {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #C5A37E;
    border-radius: 0.2rem;
    padding: 1rem 1.15rem;
    color: #fff;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.awa-caution__amount strong {
    font-size: 1.35rem;
    color: #C5A37E;
}

.awa-caution__note {
    flex-basis: 100%;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #809199;
}

/* Honeypot : hors écran mais pas display:none. */
.awa-caution__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.awa-caution__actions {
    margin-top: 0.4rem;
}

/* Le bouton hérite du style .btn-primary global du thème ; on ne force que l'état désactivé. */
.awa-caution__submit:disabled,
.awa-caution__submit.is-loading {
    opacity: 0.5;
    cursor: not-allowed;
}

.awa-caution__error {
    margin: 0;
    padding: 0.85rem 1rem;
    background-color: rgba(214, 62, 62, 0.12);
    border: 1px solid #d63e3e;
    color: #fff;
    border-radius: 0.2rem;
    font-size: 0.95rem;
}

/* Écrans success / cancel : cartes sombres cohérentes avec le thème. */
.awa-caution__box {
    padding: 1.5rem 1.6rem;
    border-radius: 0.2rem;
    border: 1px solid #C5A37E;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.awa-caution__box h2 {
    margin-top: 0;
    color: #fff;
}

.awa-caution__box p {
    color: #fff;
}

.awa-caution__box--success {
    border-color: #2ee255;
}

.awa-caution__box--warning {
    border-color: #C5A37E;
}

.awa-caution__link {
    color: #C5A37E;
    font-weight: 600;
    text-decoration: underline;
}
