/* ============================================================
   Rappel précontractuel (checkout - étape paiement)
   ============================================================ */
.retraction-precontract-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f6f8fc;
    border: 1px solid #d7dfee;
    border-left: 4px solid #2c5cdc;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-size: 0.92rem;
    color: #1a1f36;
    line-height: 1.5;
}

.retraction-precontract-notice__icon {
    flex-shrink: 0;
    color: #2c5cdc;
    display: flex;
    align-items: center;
}

.retraction-precontract-notice__icon .material-icons {
    font-size: 28px;
}

.retraction-precontract-notice__body strong {
    color: #1a1f36;
}

.retraction-precontract-notice__link {
    display: inline-block;
    margin-top: 4px;
    color: #2c5cdc;
    font-weight: 600;
    text-decoration: underline;
}

.retraction-precontract-notice__link:hover {
    color: #1d3f9d;
}

/* ============================================================
   Lien footer
   ============================================================ */
.retraction-footer-link {
    text-align: center;
    padding: 8px 0;
    font-size: 0.85em;
}

.retraction-footer-link a {
    color: inherit;
    text-decoration: underline;
}

/* ============================================================
   Page de rétractation
   ============================================================ */
.retraction-page {
    padding: 32px 16px 64px;
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.retraction-card {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(20, 27, 52, 0.08), 0 2px 6px rgba(20, 27, 52, 0.04);
    padding: 40px 48px;
    border: 1px solid #eef0f5;
}

@media (max-width: 575px) {
    .retraction-card {
        padding: 24px 20px;
        border-radius: 8px;
    }
}

.retraction-card__header {
    border-bottom: 1px solid #eef0f5;
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.retraction-card__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 8px;
    line-height: 1.2;
}

.retraction-card__subtitle {
    color: #5a6378;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.retraction-card__subtitle strong {
    color: #1a1f36;
}

.retraction-card__footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eef0f5;
    color: #8b93a7;
    font-size: 0.875rem;
}

.retraction-card__footer p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retraction-card__footer .material-icons {
    font-size: 18px;
    color: #b5bcd1;
}

/* ============================================================
   Stepper (1 -> 2 -> 3)
   ============================================================ */
.retraction-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 32px;
    counter-reset: step;
    position: relative;
}

.retraction-steps::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #eef0f5;
    z-index: 0;
}

.retraction-steps__item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.retraction-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e3e7f0;
    color: #8b93a7;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.retraction-steps__label {
    display: block;
    font-size: 0.8rem;
    color: #8b93a7;
    font-weight: 500;
}

.retraction-steps__item.is-active .retraction-steps__num {
    background: #2c5cdc;
    border-color: #2c5cdc;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 92, 220, 0.15);
}

.retraction-steps__item.is-active .retraction-steps__label {
    color: #1a1f36;
    font-weight: 600;
}

.retraction-steps__item.is-done .retraction-steps__num {
    background: #1fbf76;
    border-color: #1fbf76;
    color: #ffffff;
}

.retraction-steps__item.is-done .retraction-steps__label {
    color: #1a1f36;
}

/* ============================================================
   Formulaires
   ============================================================ */
.retraction-form .form-group {
    margin-bottom: 20px;
}

.retraction-form label {
    display: block;
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.retraction-form .required {
    color: #e0395b;
    margin-left: 2px;
}

.retraction-form .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #1a1f36;
    background: #fafbfd;
    border: 1px solid #e3e7f0;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: none;
    height: auto;
}

.retraction-form .form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: #2c5cdc;
    box-shadow: 0 0 0 3px rgba(44, 92, 220, 0.12);
}

.retraction-form .form-text {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #8b93a7;
}

.retraction-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 575px) {
    .retraction-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.retraction-checkbox {
    background: #f6f8fc;
    border: 1px solid #e3e7f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 8px;
}

.retraction-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.retraction-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #2c5cdc;
}

.retraction-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.retraction-form__actions--center {
    justify-content: center;
    margin-top: 32px;
}

.retraction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    background: #2c5cdc;
    border: 1px solid #2c5cdc;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(20, 27, 52, 0.08);
    text-decoration: none;
}

.retraction-btn:hover,
.retraction-btn:focus {
    background: #2247b3;
    border-color: #2247b3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 92, 220, 0.25);
    text-decoration: none;
}

.retraction-btn:active {
    transform: translateY(1px);
}

.retraction-btn .material-icons {
    font-size: 18px;
}

/* ============================================================
   Récapitulatif commande (étape 2)
   ============================================================ */
.retraction-order-summary {
    background: #f6f8fc;
    border: 1px solid #e3e7f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.retraction-order-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.retraction-order-summary__row + .retraction-order-summary__row {
    border-top: 1px dashed #e3e7f0;
}

.retraction-order-summary__label {
    color: #5a6378;
    font-size: 0.875rem;
    font-weight: 500;
}

.retraction-order-summary__value {
    color: #1a1f36;
    font-weight: 600;
}

/* ============================================================
   Alertes
   ============================================================ */
.retraction-alert {
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.retraction-alert ul {
    margin: 0;
    padding-left: 18px;
}

.retraction-alert.alert-danger {
    background: #fdecf0;
    border-color: #f5b7c4;
    color: #b3203f;
}

.retraction-alert.alert-warning {
    background: #fff5e0;
    border-color: #f7d486;
    color: #8a5b00;
}

.retraction-alert.alert-success {
    background: #e6f7ee;
    border-color: #a8e2c2;
    color: #0f7d44;
}

/* ============================================================
   Écran de succès (étape 3)
   ============================================================ */
.retraction-card--success {
    text-align: center;
}

.retraction-card--success .retraction-card__title {
    margin-top: 8px;
}

.retraction-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e6f7ee;
    color: #1fbf76;
    margin-bottom: 16px;
}

.retraction-success__icon .material-icons {
    font-size: 44px;
}
