/* Public Inscription Form Styles */
/* Global box-sizing for AAP elements */
.aap-inscription-container, 
.aap-inscription-container *,
.aap-inscription-container *::before,
.aap-inscription-container *::after {
    box-sizing: border-box !important;
}

.aap-inscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

.aap-inscription-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 40px;
}

.aap-inscription-sidebar {
    border-right: 1px solid #e5e5e5;
    padding-right: 20px;
}

.aap-stage-main-title {
    font-size: 20px;
    margin: 0 0 5px;
    color: #333;
}

.aap-stage-subtitle {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.aap-stage-summary-card {
    margin-top: 20px;
    padding: 24px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.aap-stage-summary-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.aap-stage-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #850101;
}

.aap-stage-price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
}

.aap-stage-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.aap-stage-summary-label {
    color: #64748b;
    font-weight: 400;
    flex-shrink: 0;
    margin-top: 2px; /* Slight adjustment to align with bold value */
}

.aap-stage-summary-value {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    margin-left: 20px;
    word-break: break-word;
}

.aap-stage-summary-schedule {
    margin-top: 20px;
    padding-top: 10px;
}

.aap-inscription-main {
    padding-left: 10px;
}

.aap-inscription-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.aap-inscription-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #777;
    font-size: 13px;
}

.aap-inscription-step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d0d7e2;
    color: #555;
    font-weight: 600;
    font-size: 13px;
}

.aap-inscription-step-label {
    white-space: nowrap;
}

.aap-inscription-step.is-active {
    background: #e3f2fd;
    color: #2271b1;
}

.aap-inscription-step.is-active .aap-inscription-step-number {
    background: #2271b1;
    color: #fff;
}

.aap-inscription-steps-content {
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    padding: 25px 25px 20px;
    background: #fafbfc;
}

.aap-inscription-step-content {
    display: none;
}

.aap-inscription-step-content.is-active {
    display: block;
}

.aap-inscription-title {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
}

.aap-inscription-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.aap-stage-selected {
    background: #f5f9fc;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin-bottom: 20px;
}

.aap-stage-selected h3 {
    margin-top: 0;
    color: #2271b1;
}

.aap-button-secondary {
    background: #fff;
    color: #2271b1 !important;
    border: 1px solid #2271b1;
}

.aap-button-secondary:hover {
    background: #f0f6fb;
}

.aap-inscription-form {
    margin-top: 20px;
}

.aap-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.aap-form-group {
    flex: 1;
    min-width: 200px;
}

.aap-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.aap-stages-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px 20px;
}

.aap-stages-left,
.aap-stages-right {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
}

.aap-stages-center {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
}

.aap-search-box h3,
.aap-filters-box h4 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.aap-filters-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.aap-search-box {
    background: #222;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
}

.aap-search-box h3 {
    color: #fff;
}

.aap-search-box label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #f5f5f5;
}

.aap-search-box input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 10px;
}

.aap-search-box .aap-button-primary {
    width: 100%;
}

.aap-button-primary {
    background: #850101;
    border: 1px solid #e6004c;
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.aap-button {
    background: #fff;
    border: 1px solid #dcdcde;
    color: #333;
    padding-top: 0px;
    padding-bottom: 13px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.aap-button-primary:hover {
    background: #850101;
    border-color: #c40041;
}

.aap-button:hover {
    background: #f6f8fa;
    color:#000 !important;
}

.aap-filter-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.aap-filter-header {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aap-filter-header .dashicons {
    font-size: 16px;
}

.aap-filter-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.aap-count {
    color: #999;
    font-size: 12px;
    margin-left: auto;
}

.aap-filter-actions {
    margin-top: 12px;
}

.aap-filter-actions .aap-button-primary {
    width: 100%;
    text-align: center;
}

.aap-stages-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
}

.aap-stages-header p {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.aap-sort {
    margin: 10px 0;
    font-size: 14px;
    text-align: right;
}

.aap-sort-link {
    padding: 4px 8px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    margin-right: 6px;
    color: #444;
}

.aap-sort-link.is-active {
    background: #f0f6fb;
    color: #2271b1;
    border-color: #2271b1;
}

.aap-info-banner {
    margin: 10px 0 15px;
    padding: 10px;
    background: #eef2ff;
    border: 1px solid #d6defa;
    border-radius: 6px;
    color: #334;
}

.aap-stages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aap-stage-card {
    display: grid;
    grid-template-columns: 120px 1fr 260px 160px;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.aap-stage-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.aap-stage-card.is-full {
    opacity: 0.5;
}

.aap-stage-card.is-full .aap-stage-price {
    color: #9aa0a6;
}

.aap-stage-price {
    font-size: 24px;
    font-weight: 700;
    color: #850101;
}

.aap-stage-city {
    font-size: 18px;
    font-weight: 600;
}

.aap-stage-street {
    color: #777;
    font-size: 13px;
}

.aap-date-pill {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: white;
    border: none;
    margin-right: 0;
}

.aap-places {
    color: white;
    font-weight: 600;
}

.aap-stage-dates {
    background: gray;
    border-radius: 18px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aap-stage-libelle {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 14px;
    background: #ffe6ef;
    color: #850101;
    font-size: 12px;
    font-weight: 600;
}

.aap-help-box h3 {
    margin: 0 0 6px;
}

.aap-help-phone {
    font-size: 20px;
    font-weight: 700;
    color: #850101;
}

.aap-payment-box h4 {
    margin: 15px 0 8px;
}

.aap-payment-brand {
    font-size: 22px;
    font-weight: 700;
    color: #e97127;
    margin: 6px 0;
}

.aap-payment-secure {
    margin-top: 10px;
    font-weight: 600;
}

.aap-payment-logos {
    display: flex;
    gap: 6px;
    margin: 6px 0 10px;
    
}

.aap-payment-logo {
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    height: 30px;
    width: 40px;
}

.aap-stages-left,
.aap-stages-right {
    position: sticky;
    top: 20px;
}

@media (max-width: 1100px) {
    .aap-stages-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .aap-stages-left,
    .aap-stages-right,
    .aap-stages-center {
        position: static;
        width: 100%;
    }

    .aap-stages-left {
        order: 1;
    }

    .aap-stages-center {
        order: 2;
    }

    .aap-stages-right {
        order: 3;
    }

    .aap-stage-card {
        grid-template-columns: 100px 1fr 140px;
        grid-template-rows: auto auto;
        gap: 15px;
    }

    .aap-stage-price {
        grid-column: 1;
        grid-row: 1 / 3;
        font-size: 20px;
    }

    .aap-stage-info {
        grid-column: 2;
        grid-row: 1;
    }

    .aap-stage-dates {
        grid-column: 2;
        grid-row: 2;
        width: fit-content;
    }

    .aap-stage-action {
        grid-column: 3;
        grid-row: 1 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .aap-stage-city {
        font-size: 16px;
    }

    .aap-filter-list {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .aap-stage-card {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
    }

    .aap-stage-price {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 5px;
    }

    .aap-stage-info {
        grid-column: 1;
        grid-row: 2;
    }

    .aap-stage-dates {
        grid-column: 1 / 3;
        grid-row: 3;
        margin-top: 10px;
    }

    .aap-stage-action {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}

.aap-form-group input[type="text"],
.aap-form-group input[type="email"],
.aap-form-group input[type="tel"],
.aap-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.aap-form-group input[type="checkbox"] {
    margin-right: 10px;
}

.aap-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
}

.aap-form-row-checkbox {
    margin-top: 5px;
}

.aap-checkbox-inline {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #444;
}

.aap-filters-box .aap-checkbox-inline {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 2px 0;
    width: 100%;
}

.aap-filters-box input[type="checkbox"] {
    accent-color: #850101;
}

.aap-birthdate-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.aap-birthdate-row select {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

.aap-billing-block {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    background: #fdfdfd;
    display: none;
}

.aap-billing-block.is-visible {
    display: block;
}

.aap-billing-note {
    margin-top: 10px;
    padding: 10px;
    font-size: 13px;
    color: #856404;
    background: #fff3cd;
    border-radius: 4px;
    border: 1px solid #ffeeba;
}

.aap-section-block {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.aap-section-title {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}

.aap-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aap-radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
}

.aap-payment-section {
    margin-bottom: 20px;
}

.aap-payment-option {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.aap-payment-logos {
    display: flex;
    gap: 6px;
    font-size: 12px;
}

.aap-payment-logo {
    padding: 4px 8px;
    border-radius: 4px;
}

.aap-recap-block {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    background: #fff;
}

.aap-recap-block h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.aap-recap-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 4px 0;
}

.aap-recap-line span:first-child {
    color: #777;
}

.aap-recap-line span:last-child {
    font-weight: 600;
    margin-left: 10px;
}

.aap-field-error input,
.aap-field-error select {
    border-color: #dc3545;
}

.aap-field-error label {
    color: #dc3545;
}

.aap-form-submit {
    margin-top: 25px;
    text-align: center;
}

.aap-submit-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.aap-submit-button:hover {
    background: #135e96;
}

.aap-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.aap-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Public Page Styles */
.aap-public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.aap-page-title {
    text-align: center;
    color: #2271b1;
    margin-bottom: 30px;
}

.aap-stage-filters {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.aap-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.aap-filter-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.aap-filter-button:hover {
    background: #135e96;
}

.aap-stage-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* .aap-stage-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.aap-stage-card:hover {
    transform: translateY(-5px);
} */

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.stage-title {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.stage-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

.stage-status.available {
    background: #d4edda;
    color: #155724;
}

.stage-status.full {
    background: #f8d7da;
    color: #721c24;
}

.stage-details p {
    margin: 5px 0;
    color: #555;
}

.stage-actions {
    margin-top: 15px;
    text-align: center;
}

.aap-register-button,
.aap-waitlist-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.aap-register-button {
    background: #28a745;
    color: white;
}

.aap-register-button:hover {
    background: #218838;
}

.aap-waitlist-button {
    background: #ffc107;
    color: #212529;
}

.aap-waitlist-button:hover {
    background: #e0a800;
}

.aap-no-results {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #6c757d;
}

/* Modal Styles */
.aap-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.aap-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.aap-close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.aap-close-modal:hover {
    color: #333;
}

#aap-registration-form .form-group {
    margin-bottom: 15px;
}

#aap-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#aap-registration-form input,
#aap-registration-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit {
    margin-top: 20px;
    text-align: center;
}

.aap-submit-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.aap-submit-button:hover {
    background: #135e96;
}

#aap-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#aap-form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

#aap-form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Main Container */
.aap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Stages Grid */
.aap-stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.aap-stage-card {
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.aap-stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form Styles */
.aap-registration-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.aap-form-row {
  
}

.aap-button {
    display: inline-block;
    background: #850101;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    
}
.aap-button.aap-button-primary{
    padding-top:12px;
}

/* Notices */
.aap-notice {
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #850101;
    margin: 1rem 0;
}
.aap-search-submit {
    background-color: #850101 !important;
    border: none;
    color: white;
    width: 60px;
    height: 50px;
    cursor: pointer;
    display: block !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
/*add style */
/* ===== AAP SEARCH FORM ===== */
.aap-search-form {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Input ville / code postal */
.aap-search-input-container {
    flex: 1;
    min-width: 220px;
}

.aap-search-input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}

.aap-search-input:focus {
    border-color: #1e73be;
}

/* Options (tri + bouton) */
.aap-search-options-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Select tri */
.aap-sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 0 10px;
    height: 48px;
}

.aap-calendar-icon {
    font-size: 16px;
}

.aap-sort-select {
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Bouton recherche */
.aap-search-submit {
    height: 48px;
    width: 48px;
    border-radius: 8px;
    border: none;
    background: #1e73be;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.aap-search-submit:hover {
    background: #155a96;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .aap-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .aap-search-options-container {
        width: 100%;
        justify-content: space-between;
    }

    .aap-search-submit {
        width: 56px;
    }
}

/* Responsive Inscription Form */
@media (max-width: 1024px) {
    .aap-inscription-layout {
        display: block !important;
    }

    .aap-inscription-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e5e5;
        padding-right: 0 !important;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .aap-inscription-main {
        width: 100% !important;
        padding-left: 0 !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .aap-inscription-container {
        padding: 15px;
    }

    .aap-inscription-steps-content {
        padding: 15px;
    }

    .aap-stage-summary-card {
        padding: 15px;
    }

    .aap-inscription-steps {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .aap-inscription-step {
        flex: 1 1 calc(50% - 10px) !important;
        min-width: 120px !important;
        padding: 8px !important;
        justify-content: center !important;
    }

    .aap-inscription-step-label {
        font-size: 11px;
        white-space: nowrap !important;
    }

    .aap-form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .aap-form-group {
        width: 100% !important;
        min-width: 100% !important;
    }

    .aap-birthdate-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    @media (max-width: 480px) {
        .aap-birthdate-row {
            flex-direction: column !important;
        }
    }

    .aap-inscription-title {
        font-size: 16px;
    }

    .aap-inscription-actions {
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }

    .aap-inscription-actions .aap-button {
        width: 100% !important;
        text-align: center;
        padding: 12px;
    }

    .aap-payment-option {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .aap-recap-line {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .aap-recap-line span:last-child {
        margin-left: 0 !important;
        margin-top: 2px;
    }

    .aap-stage-main-title {
        font-size: 18px;
    }

    .aap-stage-subtitle {
        font-size: 13px;
    }

    .aap-radio-inline, .aap-checkbox-inline {
        padding: 10px 0;
        width: 100% !important;
    }

    .aap-form-group label {
        font-size: 14px;
    }

    .aap-inscription-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .aap-stage-summary-card {
        display: block !important;
    }

    .aap-stage-summary-price {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .aap-stage-summary-location, .aap-stage-summary-schedule {
        margin-top: 10px !important;
    }

    .aap-stage-summary-line {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-bottom: 12px !important;
    }

    .aap-stage-summary-value {
        text-align: right !important;
        margin-left: 10px !important;
    }
}

.aap-section-block {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.aap-section-title {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}

.aap-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aap-radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
}

.aap-payment-section {
    margin-bottom: 20px;
}

.aap-payment-option {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.aap-payment-logos {
    display: flex;
    gap: 6px;
    font-size: 12px;
}

.aap-payment-logo {
    padding: 4px 8px;
    border-radius: 4px;
}

.aap-recap-block {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    background: #fff;
}

.aap-recap-block h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.aap-recap-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 4px 0;
}

.aap-recap-line span:first-child {
    color: #777;
}

.aap-recap-line span:last-child {
    font-weight: 600;
    margin-left: 10px;
}

.aap-field-error input,
.aap-field-error select {
    border-color: #dc3545;
}

.aap-field-error label {
    color: #dc3545;
}

.aap-form-submit {
    margin-top: 25px;
    text-align: center;
}

.aap-submit-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.aap-submit-button:hover {
    background: #135e96;
}

.aap-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.aap-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Public Page Styles */
.aap-public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.aap-page-title {
    text-align: center;
    color: #2271b1;
    margin-bottom: 30px;
}

.aap-stage-filters {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.aap-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.aap-filter-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.aap-filter-button:hover {
    background: #135e96;
}

.aap-stage-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* .aap-stage-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.aap-stage-card:hover {
    transform: translateY(-5px);
} */

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.stage-title {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.stage-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

.stage-status.available {
    background: #d4edda;
    color: #155724;
}

.stage-status.full {
    background: #f8d7da;
    color: #721c24;
}

.stage-details p {
    margin: 5px 0;
    color: #555;
}

.stage-actions {
    margin-top: 15px;
    text-align: center;
}

.aap-register-button,
.aap-waitlist-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.aap-register-button {
    background: #28a745;
    color: white;
}

.aap-register-button:hover {
    background: #218838;
}

.aap-waitlist-button {
    background: #ffc107;
    color: #212529;
}

.aap-waitlist-button:hover {
    background: #e0a800;
}

.aap-no-results {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #6c757d;
}

/* Modal Styles */
.aap-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.aap-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.aap-close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.aap-close-modal:hover {
    color: #333;
}

#aap-registration-form .form-group {
    margin-bottom: 15px;
}

#aap-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#aap-registration-form input,
#aap-registration-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit {
    margin-top: 20px;
    text-align: center;
}

.aap-submit-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.aap-submit-button:hover {
    background: #135e96;
}

#aap-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#aap-form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

#aap-form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Main Container */
.aap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Stages Grid */
.aap-stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.aap-stage-card {
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.aap-stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form Styles */
.aap-registration-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.aap-form-row {
  
}

.aap-button {
    display: inline-block;
    background: #850101;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    
}
.aap-button.aap-button-primary{
    padding-top:12px;
}

/* Notices */
.aap-notice {
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #850101;
    margin: 1rem 0;
}
.aap-search-submit {
    background-color: #850101 !important;
    border: none;
    color: white;
    width: 60px;
    height: 50px;
    cursor: pointer;
    display: block !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
/*add style */
/* ===== AAP SEARCH FORM ===== */
.aap-search-form {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Input ville / code postal */
.aap-search-input-container {
    flex: 1;
    min-width: 220px;
}

.aap-search-input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}

.aap-search-input:focus {
    border-color: #1e73be;
}

/* Options (tri + bouton) */
.aap-search-options-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Select tri */
.aap-sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 0 10px;
    height: 48px;
}

.aap-calendar-icon {
    font-size: 16px;
}

.aap-sort-select {
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Bouton recherche */
.aap-search-submit {
    height: 48px;
    width: 48px;
    border-radius: 8px;
    border: none;
    background: #1e73be;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.aap-search-submit:hover {
    background: #155a96;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .aap-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .aap-search-options-container {
        width: 100%;
        justify-content: space-between;
    }

    .aap-search-submit {
        width: 56px;
    }
}
