/* ============================================
   FORMULAIRE WIZARD PAINTBALL
   Navigation par étapes avec disparition
   ============================================ */

.abs-booking-wizard {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* En-tête */
.abs-wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.abs-wizard-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: white !important;
}

/* Barre de progression */
.abs-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.abs-progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

/* Container wizard */
.abs-wizard-form {
    padding: 40px;
}

.abs-wizard-container {
    position: relative;
    min-height: 400px;
}

/* Étapes */
.abs-wizard-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.abs-wizard-step.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.abs-wizard-step h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

/* Calendrier */
#abs-wizard-calendar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ui-datepicker {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    border: none;
    font-family: inherit;
    box-sizing: border-box;
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.ui-datepicker-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    top: 10px;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ui-datepicker-calendar {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
    box-sizing: border-box;
}

.ui-datepicker-calendar th {
    font-size: 11px;
    padding: 6px 0;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.ui-datepicker-calendar td {
    padding: 2px;
    text-align: center;
    box-sizing: border-box;
}

.ui-datepicker-calendar td a {
    display: block;
    padding: 8px 4px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ui-datepicker-calendar td a:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.ui-datepicker-calendar td.ui-state-disabled a {
    color: #ccc;
    opacity: 0.3;
    cursor: not-allowed;
}

.ui-datepicker-calendar td a.ui-state-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
}

/* Mobile - calendrier plus compact */
@media (max-width: 768px) {
    #abs-wizard-calendar {
        padding: 10px;
    }

    .ui-datepicker-header {
        padding: 10px;
    }

    .ui-datepicker-title {
        font-size: 14px;
    }

    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: 28px;
        height: 28px;
        top: 8px;
    }

    .ui-datepicker-calendar th {
        font-size: 10px;
        padding: 4px 0;
    }

    .ui-datepicker-calendar td {
        padding: 1px;
    }

    .ui-datepicker-calendar td a {
        padding: 6px 2px;
        font-size: 12px;
    }
}

/* Très petits écrans */
@media (max-width: 400px) {
    #abs-wizard-calendar {
        padding: 8px;
    }

    .ui-datepicker-header {
        padding: 8px;
    }

    .ui-datepicker-title {
        font-size: 13px;
    }

    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: 24px;
        height: 24px;
    }

    .ui-datepicker-calendar th {
        font-size: 9px;
        padding: 3px 0;
    }

    .ui-datepicker-calendar td {
        padding: 1px;
    }

    .ui-datepicker-calendar td a {
        padding: 5px 1px;
        font-size: 11px;
    }
}

/* Select */
.abs-wizard-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.abs-wizard-select:hover {
    border-color: #667eea;
}

.abs-wizard-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#abs-availability-info {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

#abs-availability-info.available {
    background: #d1fae5;
    color: #065f46;
}

#abs-availability-info.limited {
    background: #fef3c7;
    color: #78350f;
}

#abs-availability-info.full {
    background: #fee2e2;
    color: #991b1b;
}

/* Cartes */
.abs-wizard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.abs-wizard-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.abs-wizard-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.abs-wizard-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.abs-card-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.abs-wizard-card.selected .abs-card-content strong {
    color: white;
}

.abs-card-content small {
    display: block;
    font-size: 14px;
    color: #6c757d;
}

.abs-wizard-card.selected .abs-card-content small {
    color: rgba(255, 255, 255, 0.9);
}

.abs-card-price {
    display: block;
    margin-top: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
}

.abs-wizard-card.selected .abs-card-price {
    color: white;
}

/* Participants */
.abs-wizard-participants {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
}

.abs-wizard-btn-pm {
    width: 60px;
    height: 60px;
    border: 3px solid #667eea;
    background: white;
    border-radius: 12px;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    color: #667eea;
}

.abs-wizard-btn-pm:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.abs-wizard-btn-pm:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.abs-wizard-count {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
    text-align: center;
}

/* Suppléments */
.abs-wizard-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.abs-wizard-extra {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
}

.abs-wizard-extra:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.abs-wizard-extra input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
}

.abs-extra-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.abs-extra-info strong {
    font-size: 15px;
    color: #333;
}

.abs-extra-info small {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
}

/* Bouton suivant */
.abs-wizard-next {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.abs-wizard-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Bouton retour */
.abs-wizard-back {
    padding: 12px 24px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.abs-wizard-back:hover {
    background: #667eea;
    color: white;
}

/* Navigation (retour + suivant) */
.abs-wizard-nav {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.abs-wizard-nav .abs-wizard-back {
    flex: 0 0 auto;
    margin: 0;
}

.abs-wizard-nav .abs-wizard-next {
    flex: 1;
    margin: 0;
}

.abs-wizard-nav .abs-wizard-submit {
    flex: 1;
    margin: 0;
}

/* Contact */
.abs-wizard-contact {
    display: grid;
    gap: 15px;
}

.abs-wizard-contact input,
.abs-wizard-contact textarea {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.abs-wizard-contact input:focus,
.abs-wizard-contact textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Layout final 2 colonnes */
.abs-wizard-final-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.abs-wizard-final-left h4,
.abs-wizard-final-right h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.abs-wizard-final-left {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.abs-wizard-final-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Paiement */
.abs-wizard-payment {
    display: grid;
    gap: 12px;
}

.abs-wizard-payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.abs-wizard-payment-option:hover {
    border-color: #667eea;
}

.abs-wizard-payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.abs-wizard-payment-option input:checked + span {
    color: #667eea;
}

.abs-wizard-payment-option span {
    flex: 1;
}

.abs-wizard-payment-option strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.abs-wizard-payment-option small {
    display: block;
    font-size: 13px;
    color: #6c757d;
}

/* Récapitulatif */
.abs-wizard-summary {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.abs-wizard-summary h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

#abs-wizard-recap {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.8;
}

.abs-wizard-recap-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.abs-wizard-recap-item:last-child {
    border-bottom: none;
}

.abs-wizard-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#abs-total-label {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

#abs-total-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

/* Bouton submit */
.abs-wizard-submit {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.abs-wizard-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.abs-wizard-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .abs-booking-wizard {
        margin: 20px 10px;
    }

    .abs-wizard-form {
        padding: 30px 20px;
    }

    .abs-wizard-header {
        padding: 20px;
    }

    .abs-wizard-header h2 {
        font-size: 22px;
    }

    .abs-wizard-step h3 {
        font-size: 18px;
    }

    .abs-wizard-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .abs-wizard-card {
        padding: 16px;
    }

    .abs-card-content strong {
        font-size: 16px;
    }

    .abs-card-price {
        font-size: 18px;
    }

    .abs-wizard-count {
        font-size: 36px;
    }

    .abs-wizard-btn-pm {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .abs-wizard-participants {
        gap: 20px;
    }

    /* Layout final en 1 colonne sur mobile */
    .abs-wizard-final-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .abs-wizard-final-left,
    .abs-wizard-final-right h4 {
        font-size: 16px;
    }

    .abs-wizard-final-left {
        padding: 20px;
    }

    /* Boutons navigation mobile */
    .abs-wizard-nav {
        flex-direction: column;
        gap: 10px;
    }

    .abs-wizard-back {
        width: 100%;
        order: 2;
    }

    .abs-wizard-next,
    .abs-wizard-submit {
        width: 100%;
        order: 1;
    }

    /* Textes des boutons plus courts sur mobile */
    .abs-wizard-back[data-goto="1"]::before {
        content: "← Date";
    }

    .abs-wizard-back[data-goto="2"]::before {
        content: "← Activité";
    }

    .abs-wizard-back[data-goto="3"]::before {
        content: "← Forfait";
    }

    .abs-wizard-back[data-goto="4"]::before {
        content: "← Participants";
    }

    .abs-wizard-back[data-goto="5"]::before {
        content: "← Suppléments";
    }

    .abs-wizard-back[data-goto="6"]::before {
        content: "← Contact";
    }

    /* Masquer le texte original sur mobile */
    @supports selector(:has(*)) {
        .abs-wizard-back {
            font-size: 0;
            padding: 14px 24px;
        }

        .abs-wizard-back::before {
            font-size: 15px;
        }
    }

    /* Paiement */
    .abs-wizard-payment-option {
        padding: 12px 16px;
    }

    .abs-wizard-payment-option strong {
        font-size: 14px;
    }

    .abs-wizard-payment-option small {
        font-size: 12px;
    }

    /* Summary */
    .abs-wizard-summary {
        padding: 20px;
    }

    #abs-total-label {
        font-size: 18px;
    }

    #abs-total-value {
        font-size: 28px;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.abs-wizard-step.active {
    animation: slideInRight 0.4s ease;
}

/**
 * CSS Responsive pour grille restauration
 * À ajouter dans le fichier CSS principal du plugin
 */

/* Grille restauration responsive */
.abs-catering-options {
    display: grid;
    gap: 16px;
    /* Desktop : 3 colonnes à partir de 900px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .abs-catering-options {
        /* Tablette : 2 colonnes */
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 540px) {
    .abs-catering-options {
        /* Mobile : 1 colonne */
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Carte option restauration */
.abs-catering-option {
    padding: 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px; /* Hauteur minimale pour alignement */
}

.abs-catering-option:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Compteurs restauration */
.abs-catering-option .abs-catering-count {
    min-width: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.abs-catering-option button {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.abs-catering-option button.abs-catering-minus:hover {
    border-color: #f59e0b;
    background: #fef3c7;
}

.abs-catering-option button.abs-catering-plus:hover {
    border-color: #059669;
    background: #dcfce7;
}

.abs-catering-option button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile : réduire taille boutons */
@media (max-width: 540px) {
    .abs-catering-option {
        padding: 12px;
        min-height: auto;
    }

    .abs-catering-option button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .abs-catering-option .abs-catering-count {
        font-size: 20px;
        min-width: 40px;
    }
}

/* Total restauration hint */
#abs-catering-total-hint {
    margin-top: 16px;
    text-align: center;
    color: #059669;
    font-weight: 600;
    font-size: 15px;
    padding: 12px;
    background: #dcfce7;
    border-radius: 6px;
}

@media (max-width: 540px) {
    #abs-catering-total-hint {
        font-size: 14px;
        padding: 10px;
    }
}

.ui-datepicker th {
    background-color: transparent !important;
}

.ui-datepicker tbody td span {
    border-radius: 6px;
}

input[type="text"].abs-input, input[type="tel"].abs-input, input[type="email"].abs-input, textarea.abs-input{
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background-color: white;
}

.abs-admin-wrap .ui-datepicker table.ui-datepicker-calendar {
    table-layout: fixed;        /* colonnes de largeur égale, indépendantes du contenu */
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;        /* l'espacement entre cases que tu vois sur l'image */
    margin: 0;
}
.abs-admin-wrap .ui-datepicker th,
.abs-admin-wrap .ui-datepicker td {
    box-sizing: border-box;
    width: 14.2857%;            /* 100% / 7 jours */
    padding: 0;
    border: 0;
    text-align: center;
    vertical-align: middle;
}
.abs-admin-wrap .ui-datepicker td a,
.abs-admin-wrap .ui-datepicker td span {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 14px 0;            /* hauteur des cases */
    border-radius: 6px;
    text-align: center;
}