/* ============================================
   SPONSOR PAGE - HERO SECTION PREMIUM
   ============================================ */
.min-vh-75 {
    min-height: 75vh;
}

/* Service Categories - Glassmorphic */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Tab alignment improvements */




.tab-btn {

    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #c82333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-color: #dc3545 !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3) !important;
    transform: translateY(-2px) !important;
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.9);
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.15);
}

.tab-icon {
    font-size: 1.1rem !important;
    min-width: 24px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.tab-text {
    white-space: normal !important;
    text-align: left !important;
    flex-grow: 1 !important;
}


/* Service Grid */
.service-grid {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Category Containers */
.category-row {
    display: none;
    animation: fadeIn 0.5s ease;
}

.category-row:not(.d-none) {
    display: flex;
    flex-wrap: wrap;
}

.category-row[data-category="sponsor"]:not(.d-none) {
    display: flex;
    flex-wrap: wrap;
}

/* Ensure proper Bootstrap grid behavior */
.category-row.row {
    margin-left: 0;
    margin-right: 0;
}

.category-row [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(32, 201, 151, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 16px;
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays for card entrance */
.card-animate-delay-0 .service-card {
    transition-delay: 0ms;
}

.card-animate-delay-1 .service-card {
    transition-delay: 50ms;
}

.card-animate-delay-2 .service-card {
    transition-delay: 100ms;
}

.card-animate-delay-3 .service-card {
    transition-delay: 150ms;
}

.card-animate-delay-4 .service-card {
    transition-delay: 200ms;
}

.card-animate-delay-5 .service-card {
    transition-delay: 250ms;
}

.card-animate-delay-6 .service-card {
    transition-delay: 300ms;
}

.card-animate-delay-7 .service-card {
    transition-delay: 350ms;
}

.card-animate-delay-8 .service-card {
    transition-delay: 400ms;
}

.card-animate-delay-9 .service-card {
    transition-delay: 450ms;
}

.service-card:hover {
    border-color: #2E7D32;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.2);
    transform: translateY(0);
    z-index: 10;
}

.service-card:hover::before {
    opacity: 1;
}

.service-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(46, 125, 50, 0.02) 100%);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.25);
}

.service-icon i {
    font-size: 1.3rem;
    color: white;
}

.service-title {
    text-align: left;
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1B5E20;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
}

.service-body {
    padding: 15px 20px;
    flex-grow: 1;
}

.service-description {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.85rem;
}

.service-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(46, 125, 50, 0.1);
    background: rgba(46, 125, 50, 0.03);
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-top: auto;
}

/* Price Tag in Footer - Style identique à .alert-info-custom */
.price-tag-footer {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2E7D32;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.price-tag-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-tag-footer .price-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1B5E20;
}

.service-btn {
    width: 100% !important;
    padding: 10px 14px !important;
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25) !important;
    box-sizing: border-box !important;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.service-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.service-btn:hover::before {
    left: 100%;
}

.service-btn-secondary {
    width: 100% !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2E7D32 !important;
    border: 1.5px solid #2E7D32 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.service-btn-secondary:hover {
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
    color: white !important;
    border-color: #2E7D32 !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Alert boxes - Glassmorphic */
.alert-info-custom {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #2E7D32;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-info-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-warning-custom {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #F5D021;
    padding: 15px;
    margin-top: 15px;
}

.alert-warning-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .service-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .service-footer {
        gap: 15px;
        padding: 15px 20px;
    }

    .service-footer form {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .service-btn,
    .service-btn-secondary {
        width: 100% !important;
        max-width: 300px;
    }
}

@media (max-width: 480px) {

    .service-footer form {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .service-btn,
    .service-btn-secondary {
        width: 100% !important;
        max-width: 280px;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }

    .service-footer {
        gap: 10px;
        padding: 15px 20px;
        flex-direction: column;
        align-items: center;
    }
}

/* Consolidated button styling */
.service-btn {
    width: 100% !important;
    padding: 10px 14px !important;
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25) !important;
    box-sizing: border-box !important;
}

.service-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35) !important;
}

/* Service card overall styling */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: #2E7D32 !important;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.2) !important;
    transform: translateY(0);
}

/* ============================================
   MODAL STYLES - DESIGN MODERNE
   ============================================ */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border-bottom: none;
    padding: 20px 25px;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.modal-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.modal-title i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    border-radius: 8px;
    padding: 8px;
    position: relative;
    z-index: 1;
}

.modal-header .btn-close:hover {
    background-color: white;
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

.modal-body {
    padding: 25px;
    background: #fafafa;
}

/* Benefits list in modal */
.modal-body .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.modal-body .benefits-list li {
    padding: 14px 16px;
    background: white;
    border-radius: 10px;
    color: #2d3436;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(46, 125, 50, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modal-body .benefits-list li:hover {
    border-color: #2E7D32;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
}

.modal-body .benefits-list li i {
    color: white;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-top: 2px;
}

.modal-footer {
    border-top: 1px solid rgba(46, 125, 50, 0.1);
    padding: 20px 25px;
    background: white;
    gap: 10px;
}

.modal-footer .btn-secondary {
    background: #f1f3f4;
    border: none;
    color: #5f6368;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-footer .btn-secondary:hover {
    background: #e8eaed;
    color: #2d3436;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #2E7D32, #4CAF50) !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25) !important;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35) !important;
}

/*
            CUSTOM PREMIUM STYLES FOR FLEXIBLE MODAL
            Scoped to avoid modifying global app.form.css
        */

.flexible-offer-container {
    padding: 1.5rem;
    background: #fff;
}

/* Typography */
.text-primary-custom {
    color: #2E7D32;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
}

.text-success-custom {
    color: #2E7D32;
}

.font-small {
    font-size: 0.8rem;
}

/* Form Controls */
.form-group-custom {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label-custom {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.form-label-custom.required::after {
    content: "*";
    color: #e53935;
    margin-left: 4px;
}

/* Input Wrappers */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-wrapper:hover {
    border-color: #a0a0a0;
}

.input-wrapper:focus-within {
    background: #fff;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
    transform: none;
}

/* Error State */
.input-wrapper.is-invalid-custom {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

/* Icons */
.input-icon-custom {
    position: absolute;
    left: 14px;
    color: #6c757d;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper:focus-within .input-icon-custom {
    color: #2E7D32;
}

.textarea-icon {
    top: 15px;
}

/* Inputs & Textareas */
.form-control-custom {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #212529;
    font-weight: 400;
    outline: none;
    border-radius: 8px;
}

.form-control-custom::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.textarea-custom {
    min-height: 160px;
    line-height: 1.5;
    resize: vertical;
}

/* Currency Suffix */
.currency-suffix {
    padding-right: 14px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
    user-select: none;
}

/* Standard Error Message (matching form.css) */
.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 5px;
    padding: 8px 12px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ef4444;
    font-weight: 500;
}

.error-message.d-none {
    display: none;
}

/* Toolbar & Counters */
.formatting-toolbar-container .btn-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 2px;
}

.btn-tool-custom {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 4px 8px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-tool-custom:hover {
    background: #e9ecef;
    color: #2E7D32;
}

.counter-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Buttons Custom */
.btn-primary-custom {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: normal;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:active,
.btn-primary-custom:active:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #1b5e20;
    color: white !important;
}

.btn-secondary-custom {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid transparent;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #dee2e6;
}

/* Button Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    vertical-align: middle;
}

.service-btn.loading .btn-text,
.service-btn-secondary.loading .btn-text,
.btn-primary-custom.loading .btn-text {
    opacity: 0.5;
}

.service-btn.loading .spinner-border,
.service-btn-secondary.loading .spinner-border,
.btn-primary-custom.loading .spinner-border {
    display: inline-block !important;
}

/* Counter Badge States (CSP Compliant) */
.counter-badge.state-danger {
    background: #ffebee !important;
    color: #c62828 !important;
    border-color: #ffcdd2 !important;
}

.counter-badge.state-warning {
    background: #fff8e1 !important;
    color: #f57f17 !important;
    border-color: #ffecb3 !important;
}

.counter-badge.state-success {
    background: #f1f8e9 !important;
    color: #33691e !important;
    border-color: #dcedc8 !important;
}