/* Module vlchequecadeau — Page front /module/vlchequecadeau/order */

#vlcc-order {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.vlcc-order__header {
    margin-bottom: 2rem;
    text-align: center;
}

.vlcc-order__header .page-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.vlcc-order__lead {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

.vlcc-order__errors {
    margin-bottom: 1.5rem;
}

.vlcc-form .vlcc-step {
    margin: 0 0 2rem;
    padding: 1.5rem;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fafafa;
}

.vlcc-form legend {
    width: auto;
    padding: 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* --- Étape 1 : grille des templates --- */
.vlcc-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vlcc-template {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    font: inherit;
    color: inherit;
}

.vlcc-template:hover { border-color: #ccc; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.vlcc-template.is-selected {
    border-color: #2fb5d2;
    box-shadow: 0 0 0 3px rgba(47, 181, 210, .15);
}

.vlcc-template__img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1054 / 1492;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.vlcc-template__label {
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

/* --- Étape 2 : choix du montant --- */
.vlcc-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.vlcc-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin: 0;
    font-weight: 600;
}

.vlcc-amount input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.vlcc-amount:hover { border-color: #999; }
.vlcc-amount.is-selected {
    border-color: #2fb5d2;
    background: rgba(47, 181, 210, .08);
    color: #2fb5d2;
}

.vlcc-amount__value { font-size: 1.1rem; }

/* --- Étape 3 : champs texte --- */
.vlcc-form .form-group { margin-top: 1rem; }
.vlcc-form label.required::after { content: ' *'; color: #d9534f; }
.vlcc-form .form-control { width: 100%; }

/* --- Soumission --- */
.vlcc-actions {
    text-align: center;
    margin-top: 1.5rem;
}

/* Le bouton submit utilise la classe globale .btn-veloland du thème
   (couleurs bg-veloland-primary). Largeur minimum pour rester équilibré. */
.vlcc-actions button[type="submit"] {
    min-width: 260px;
}

@media (max-width: 600px) {
    #vlcc-order { margin: 1rem auto; }
    .vlcc-order__header .page-title { font-size: 1.5rem; }
    .vlcc-form .vlcc-step { padding: 1rem; }
}
