/* ========================================
   Welcome — Multi-step Wizard redesign
   ======================================== */

/* Compatibility shim for legacy ids/classes referenced by myMin.js */
.park-capacity { margin: 0; }

/* ===== Glass card ===== */
.glass-card {
    background: rgba(165, 165, 165, 0.637);
    backdrop-filter: blur(0.8px);
    -webkit-backdrop-filter: blur(0.8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    margin: 0 auto;
    max-width: 760px;
}

.glass-card-header {
    background: linear-gradient(135deg, #fbcc35 0%, #f4b43a 100%);
    padding: 1.5rem 2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.glass-card-header h2 {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}

.glass-card-header .lang-toggle {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    color: #fff;
}

.glass-card-header .lang-toggle:hover,
.glass-card-header .lang-toggle:focus {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.glass-card-body {
    padding: 2rem;
}

/* ===== Tarifs (always visible, above wizard) ===== */
.tarif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tarif-card {
    background: linear-gradient(135deg, #fbcc35 0%, #f4b43a 100%);
    border-radius: 14px;
    padding: 0.85rem 1rem 0.95rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(244, 180, 58, 0.22);
}

.tarif-card-title {
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
    margin: 0 0 0.65rem;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

.tarif-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 0.5rem;
}

.tarif-cell-label {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.tarif-cell-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}
.tarif-cell-value small {
    font-size: 0.65em;
    font-weight: 500;
    opacity: 0.85;
    margin-left: 1px;
}

/* ===== Wizard stepper indicator ===== */
.wizard-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 0 1.75rem;
    position: relative;
    padding: 0 0.5rem;
}

/* Each step is centered in its 25% slot — circles sit at 12.5%, 37.5%, 62.5%, 87.5%.
   The grey track and orange progress fill share the same anchor (12.5%). */
.wizard-stepper::before {
    content: '';
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 18px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.wizard-stepper::after {
    content: '';
    position: absolute;
    left: 12.5%;
    top: 18px;
    height: 2px;
    background: linear-gradient(90deg, #f4b43a, #fbcc35);
    z-index: 0;
    width: 0;
    transition: width 0.35s ease-out;
}

.wizard-stepper[data-progress="1"]::after { width: 25%; }
.wizard-stepper[data-progress="2"]::after { width: 50%; }
.wizard-stepper[data-progress="3"]::after { width: 75%; }

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    z-index: 1;
    cursor: pointer;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.step-circle .step-icon { display: none; }

.step-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.wizard-step.is-done .step-circle {
    background: #f4b43a;
    border-color: #f4b43a;
    color: #fff;
}
.wizard-step.is-done .step-circle .step-num { display: none; }
.wizard-step.is-done .step-circle .step-icon { display: inline; }
.wizard-step.is-done .step-label { color: rgba(255, 255, 255, 0.9); }

.wizard-step.is-active .step-circle {
    background: #f4b43a;
    border-color: #f4b43a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(244, 180, 58, 0.2);
}
.wizard-step.is-active .step-label {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ===== Wizard panels ===== */
.wizard-panel {
    display: none;
    animation: panelIn 0.3s ease-out;
}
.wizard-panel.is-active { display: block; }

@keyframes panelIn {
    from { opacity: 0; transform: translateX(15px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wizard-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.wizard-panel-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.25rem;
}

/* ===== Floating label inputs ===== */
.floating { position: relative; }

.floating > .form-control {
    height: 56px;
    padding: 1.5rem 0.85rem 0.45rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    width: 100%;
}

.floating > .form-control:hover { background: rgba(255, 255, 255, 0.78); }

.floating > .form-control::placeholder { color: transparent; }

.floating > .form-control:focus {
    border-color: #f4b43a;
    box-shadow: 0 0 0 3px rgba(244, 180, 58, 0.15);
    outline: none;
}

.floating > .form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.floating > label {
    position: absolute;
    left: 0.85rem;
    top: 1rem;
    color: #000;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.12s ease-out;
    margin: 0;
}

.floating > .form-control:focus ~ label,
.floating > .form-control:not(:placeholder-shown) ~ label,
.floating > .form-control[type="date"] ~ label {
    top: 0.45rem;
    font-size: 0.7rem;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating .invalid-feedback {
    display: block;
    color: #b91c1c;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

/* ===== Pill toggle (Journée / Demi-journée) ===== */
.type-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.65);
    padding: 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    width: 100%;
    max-width: 100%;
    height: 56px;
    align-items: center;
}

.type-toggle .btn-check + .btn {
    flex: 1;
    border: none;
    border-radius: 3px;
    padding: 0.6rem 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #000;
    background: transparent;
    transition: all 0.15s;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 0;
}
.type-toggle .btn-check + .btn:hover { color: #f4b43a; }
.type-toggle .btn-check:checked + .btn {
    background: #fff;
    color: #f4b43a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

.field-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
    display: block;
}

/* ===== Number stepper ===== */
.steppers-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.stepper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.stepper-row:last-child { border-bottom: none; }

.stepper-info { flex: 1; min-width: 0; }
.stepper-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.2;
}
.stepper-subtitle {
    font-size: 0.78rem;
    color: #384252;
    margin-top: 0.15rem;
}

.stepper {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px;
}

.stepper-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.stepper-btn:hover:not(:disabled) {
    background: #fef3c7;
    color: #f4b43a;
}

.stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
    box-shadow: none;
}

.stepper input {
    width: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Capacity bar ===== */
.capacity-card {
    margin: 1.25rem 0 0;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #475569;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.capacity-card.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.capacity-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.capacity-card-label { font-weight: 600; }
.capacity-card-value { font-weight: 700; color: #1e293b; }
.capacity-card.is-error .capacity-card-value { color: #b91c1c; }

.capacity-bar-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.capacity-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease, background 0.2s;
}
.capacity-bar-fill[data-level="ok"]    { background: linear-gradient(90deg, #10b981, #84cc16); }
.capacity-bar-fill[data-level="warn"]  { background: linear-gradient(90deg, #f59e0b, #f4b43a); }
.capacity-bar-fill[data-level="full"]  { background: linear-gradient(90deg, #ef4444, #b91c1c); }

/* ===== Recap card (step 4) ===== */
.recap-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.recap-section + .recap-section {
    border-top: 1px dashed #e5e7eb;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.recap-label {
    color: #1e293b;
    font-weight: 500;
}
.recap-value {
    color: #1e293b;
    font-weight: 600;
    text-align: end;
}

.recap-row.discount-row { color: #15803d; }
.recap-row.discount-row .recap-value { color: #15803d; }

.recap-row.total-row {
    margin-top: 0.45rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e5e7eb;
    align-items: center;
}
.recap-row.total-row .recap-label {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.recap-row.total-row .recap-value {
    color: #f4b43a;
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1;
}

/* ===== Promo card ===== */
.promo-card {
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px dashed #f4b43a;
    border-radius: 4px;
}
.promo-card .form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    min-height: auto;
}
.promo-card .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
}
.promo-card .form-check-input:checked {
    background-color: #f4b43a;
    border-color: #f4b43a;
}
.promo-card .form-check-label {
    color: #1e293b;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}
#code_promo_div { margin-top: 0.85rem; }
#code_promo_div .input-group .form-control {
    border-radius: 4px 0 0 4px;
    border-right: 0;
}
#code_promo_div .input-group .btn {
    border-radius: 0 4px 4px 0;
    background: #f4b43a;
    border-color: #f4b43a;
    color: #fff;
    font-weight: 600;
}
#code_promo_div .input-group .btn:hover { background: #e89a17; border-color: #e89a17; }

/* ===== Payment method ===== */
.payment-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    padding: 1rem 1.15rem;
    margin: 0 0 1rem;
}
.payment-card-title {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.65rem;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: #1e293b;
    font-weight: 500;
}
.payment-option .form-check-input { margin: 0; }
.payment-option .form-check-input:checked {
    background-color: #f4b43a;
    border-color: #f4b43a;
}
.payment-option label { margin: 0; cursor: pointer; }

/* ===== Wizard navigation ===== */
.wizard-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-wizard-back,
.btn-wizard-next,
.reserve-btn {
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s;
}

.btn-wizard-back {
    background: #fff;
    color: #64748b;
    border: 1px solid #e5e7eb;
}
.btn-wizard-back:hover:not(:disabled) {
    background: #f1f5f9;
    color: #1e293b;
}
.btn-wizard-back:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-wizard-next {
    background: linear-gradient(135deg, #fbcc35 0%, #f4b43a 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(244, 180, 58, 0.35);
    margin-left: auto;
}
.btn-wizard-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(244, 180, 58, 0.45);
}
.btn-wizard-next:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reserve-btn {
    background: linear-gradient(135deg, #fbcc35 0%, #f4b43a 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(244, 180, 58, 0.4);
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.reserve-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(244, 180, 58, 0.5);
}
.reserve-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Top user dropdown (auth) ===== */
.top-user-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.top-user-bar .dropdown-toggle {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    color: #1e293b;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.top-user-bar .dropdown-toggle:hover { background: #fff; }

/* See more link */
.see-more-row {
    text-align: end;
    margin: -0.25rem 0 1.25rem;
}
.see-more-row a {
    color: #f4b43a;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
}
.see-more-row a:hover { color: #e89a17; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .glass-card-body { padding: 1.25rem; }
    .glass-card-header { padding: 1.25rem; }
    .glass-card-header h2 { font-size: 1.05rem; }
    .tarif-grid { grid-template-columns: 1fr; }
    .step-label { display: none; }
    .recap-row.total-row .recap-value { font-size: 1.3rem; }
    .btn-wizard-next, .reserve-btn { padding: 0.75rem 1rem; font-size: 0.88rem; }
}
