/* ============================================
   Boxis Internet Fiber Pro - Styles
   Design moderne inspiré d'OVHcloud
   ============================================ */

/* Reset box-sizing pour éviter les dépassements */
.fiber-packages-grid-wrapper,
.fiber-packages-grid,
.fiber-package-card {
    box-sizing: border-box;
}

.fiber-config-section.config-hidden,
#orderform.config-hidden {
    display: none !important;
}

.fiber-info-cards {
    margin: 40px 0;
}

.fiber-info-card {
    border: none;
    border-radius: 12px;
}

.fiber-info-card .card-body {
    padding: 20px;
}

.fiber-info-card .info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(72, 136, 239, 0.12);
    color: #3b6cbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Hero Header */
.fiber-hero-header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.fiber-hero-left {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #4888ef 0%, #3b6cbb 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fiber-hero-left::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.fiber-brand-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.fiber-brand-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.fiber-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: white;
    z-index: 1;
    position: relative;
}

.fiber-hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    z-index: 1;
    position: relative;
    max-width: 600px;
}

.fiber-hero-right {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #667eea 0%, #f5576c 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fiber-hero-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.fiber-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.fiber-icon-laptop {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.fiber-icon-wifi {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.fiber-icon-globe {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

.fiber-icon-speed {
    top: 50%;
    right: 10%;
    animation-delay: 1.5s;
}

.fiber-icon-network {
    bottom: 10%;
    right: 30%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Section de test d'éligibilité */
.fiber-eligibility-section {
    width: 100%;
    background: white;
    padding: 40px 20px;
    margin: 40px 0;
    position: relative;
    z-index: 10;
}

.eligibility-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
}

.eligibility-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #e2e6ef;
    margin-bottom: 20px;
}

.eligibility-tab-button {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-weight: 600;
    color: #6b7c93;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eligibility-tab-button.active {
    background: #f4f7ff;
    color: #3058d6;
    box-shadow: inset 0 -2px 0 #4888ef;
}

.eligibility-tab-panels {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 12px 35px rgba(17, 38, 146, 0.08);
}

.eligibility-tab-panel {
    display: none;
}

.eligibility-tab-panel.active {
    display: block;
}

.eligibility-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f9fc;
    border: 1px solid #e2e8f5;
    border-radius: 14px;
    padding: 12px 16px;
}

.eligibility-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.eligibility-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
    background: transparent;
    color: #333;
}

.eligibility-input::placeholder {
    color: #999;
}

.eligibility-input:focus {
    outline: none;
}

.eligibility-geolocate-btn {
    border: 1px solid #ced7ec;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    color: #3b6cbb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eligibility-geolocate-btn:hover {
    background: #eaf0ff;
    border-color: #b7c4e6;
}

.eligibility-geolocate-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.geolocate-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #3b6cbb;
    border-top-color: transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.9s linear infinite;
}

.eligibility-geolocate-btn.loading .geolocate-spinner {
    display: inline-block;
}

.eligibility-search-btn {
    width: 100%;
    margin-top: 16px;
    background: #4888ef;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.eligibility-search-btn:hover {
    background: #3b6cbb;
}

.eligibility-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6f7fa4;
}

/* Autocomplete - Inspiré de eligibility.tpl */
.eligibility-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.5rem;
    display: none;
}

.autocomplete-option {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 0.95rem;
    margin: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.autocomplete-option:hover,
.autocomplete-option:focus {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    outline: none;
}

.autocomplete-label {
    flex: 1;
    text-align: left;
    color: #333;
    font-size: 0.95rem;
}

.autocomplete-option:hover .autocomplete-label,
.autocomplete-option:focus .autocomplete-label {
    color: #0d6efd;
}

.badge.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.autocomplete-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}

/* Feedback */
.eligibility-feedback {
    max-width: 800px;
    margin: 15px auto 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.eligibility-loading {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.eligibility-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.eligibility-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.eligibility-result h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.eligibility-result p {
    margin: 5px 0;
}

.eligibility-results {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.eligibility-results .eligibility-loading {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.eligibility-results .eligibility-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    padding: 15px;
    border-radius: 8px;
}

.eligibility-results .eligibility-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
    padding: 15px;
    border-radius: 8px;
}

.eligibility-results i {
    margin-right: 8px;
}

.d-none {
    display: none !important;
}

/* Sélecteur Mensuel/Annuel */
.fiber-billing-selector-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.fiber-billing-selector {
    display: inline-flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.billing-option,
.fiber-billing-option {
    position: relative;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-option.active,
.fiber-billing-option.active {
    background: #4888ef;
    color: white;
    box-shadow: 0 2px 4px rgba(72, 136, 239, 0.3);
}

.billing-option:not(.active):hover,
.fiber-billing-option:not(.active):hover {
    background: #f8f9fa;
}

.billing-badge {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 4px;
}

/* Responsive Grille */
@media (max-width: 768px) {
    .fiber-packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fiber-packages-grid-wrapper {
        padding: 0 15px;
    }
}

/* Responsive Hero Header */
@media (max-width: 768px) {
    .fiber-hero-header {
        flex-direction: column;
    }
    
    .fiber-hero-left {
        padding: 40px 30px;
    }
    
    .fiber-hero-title {
        font-size: 1.75rem;
    }
    
    .fiber-hero-description {
        font-size: 1rem;
    }
    
    .fiber-hero-right {
        min-height: 150px;
    }
    
    .fiber-eligibility-section {
        padding: 20px 20px;
    }
    
    .eligibility-form-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .eligibility-search-wrapper {
        width: 100%;
    }
    
    .fiber-billing-selector {
        width: 100%;
        max-width: 400px;
    }
    
    .billing-option {
        flex: 1;
        justify-content: center;
    }
}

/* Introduction */
.fiber-intro {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.fiber-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    line-height: 1.2;
}

.fiber-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Formulaire de devise */
.currency-form {
    margin: 20px 0;
    text-align: right;
}

/* Grille des packages */
.fiber-packages-grid-wrapper {
    margin: 40px 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.fiber-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.fiber-package-card {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .fiber-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fiber-packages-grid {
        grid-template-columns: 1fr;
    }
}


/* Carte de package */
.fiber-package-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.fiber-package-card.active {
    border: 2px solid #28a745;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
    background: linear-gradient(to bottom, #ffffff 0%, #f8fff9 100%);
}

.fiber-package-card.active::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    opacity: 1;
    height: 5px;
}

.fiber-package-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.fiber-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #4888ef 0%, #3b6cbb 100%);
    opacity: 0;
    transition: opacity 0.4s ease, height 0.4s ease;
    z-index: 1;
}

.fiber-package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(72, 136, 239, 0.02) 0%, rgba(59, 108, 187, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.fiber-package-card:hover {
    box-shadow: 0 8px 24px rgba(72, 136, 239, 0.15), 0 16px 48px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    border-color: #4888ef;
}

.fiber-package-card:hover::before {
    opacity: 1;
    height: 5px;
}

.fiber-package-card:hover::after {
    opacity: 1;
}

.fiber-package-card.featured {
    border: 2px solid #f5576c;
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.2), 0 16px 48px rgba(245, 87, 108, 0.1);
    transform: scale(1.03);
    background: linear-gradient(to bottom, #ffffff 0%, #fff5f7 100%);
}

.fiber-package-card.featured::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    opacity: 1;
    height: 6px;
}

.fiber-package-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 12px 32px rgba(245, 87, 108, 0.25), 0 20px 60px rgba(245, 87, 108, 0.15);
}

.fiber-package-card.hover {
    transform: translateY(-8px);
}

/* Badge Promotion */
.package-promotion-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #f5576c;
    color: white;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border-bottom-right-radius: 4px;
}

/* En-tête de la carte */
.package-header {
    background: transparent;
    color: #212529;
    padding: 40px 20px 20px 20px;
    text-align: left;
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.package-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.fiber-package-card.featured .package-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    color: #212529;
}

.package-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
    font-style: italic;
}

/* Section prix */
.package-price-section {
    padding: 20px;
    text-align: left;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.price-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.2;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.price-ttc {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

.price-annual-info {
    margin-top: 8px;
    padding-top: 8px;
}

.price-annual-text {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

.price-main {
    font-size: 3rem;
    font-weight: 800;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #212529;
    line-height: 1;
    letter-spacing: -1px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-left: 2px;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 4px;
}

.price-annual-info {
    margin-top: 8px;
}

.price-annual-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.4;
}

.price-setup {
    display: none !important;
}

/* Caractéristiques */
.package-features {
    padding: 20px;
    flex-grow: 1;
    background: #ffffff;
}

.features-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-options-title {
    margin-top: 24px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.features-list li {
    padding: 10px 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #495057;
    display: flex;
    align-items: flex-start;
}

.features-list li strong {
    color: #212529;
    font-weight: 600;
}

.features-included li {
    color: #495057;
}

.features-excluded {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.features-excluded li {
    color: #868e96;
    text-decoration: line-through;
}

.features-options {
    margin-top: 0;
}

.icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 2px;
    vertical-align: middle;
    background: #28a745;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.icon-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.icon-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    margin-top: 2px;
    vertical-align: middle;
    background: #868e96;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.icon-cross::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Sélecteur de cycle */
.package-cycle-selector {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cycle-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cycle-select:hover {
    border-color: #4888ef;
}

.cycle-select:focus {
    outline: none;
    border-color: #4888ef;
    box-shadow: 0 0 0 3px rgba(72, 136, 239, 0.1);
}

/* Footer de la carte */
.package-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #ffffff;
}

.btn-order {
    width: 100%;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    background: #dc3545;
    border: none;
    color: white;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart-icon {
    font-size: 1.1rem;
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-order:hover:not(.disabled) {
    background: #c82333;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    transform: translateY(-1px);
}

.btn-order:active:not(.disabled) {
    transform: translateY(0);
}

.btn-order.disabled,
.btn-order.waiting-eligibility {
    background: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.fiber-package-card.waiting-eligibility {
    opacity: 0.6;
    pointer-events: none;
}

.fiber-package-card.waiting-eligibility .btn-order {
    cursor: not-allowed;
}

.btn-order.selected {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-order.selected:hover:not(.disabled) {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.fiber-package-card.featured .btn-order {
    background: #dc3545;
}

.fiber-package-card.featured .btn-order:hover:not(.disabled) {
    background: #c82333;
}

/* Section d'informations */
.fiber-info-section {
    margin: 60px 0;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Message pas de produits */
.fiber-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #6c757d;
}

/* Notes de bas de page pour les packages */
.fiber-packages-notes {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.package-note {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
    text-align: left;
}

.package-note sup {
    font-size: 0.75rem;
    color: #4888ef;
    font-weight: 600;
    vertical-align: super;
}

/* Footer personnalisé */
.custom-footer {
    margin: 40px 0;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.custom-footer .product-actions {
    text-align: right;
    margin-bottom: 15px;
}

.custom-footer a.go-to-ticket {
    display: inline-block;
    padding: 12px 24px;
    background: #706f6f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-footer a.go-to-ticket:hover {
    background: #54545a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .fiber-packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fiber-intro h1 {
        font-size: 1.75rem;
    }
    
    .fiber-subtitle {
        font-size: 1rem;
    }
    
    .price-main {
        font-size: 2.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .price-currency {
        font-size: 1.25rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fiber-intro {
        padding: 30px 15px;
    }
    
    .package-header {
        padding: 20px 15px;
    }
    
    .package-price-section {
        padding: 25px 15px;
    }
    
    .package-features {
        padding: 20px 15px;
    }
    
    .package-footer {
        padding: 15px;
    }
}

/* Style pour les champs OTO, NSN/DN, locationId et adresse en lecture seule */
input.custom_field.readonly,
input[type="text"].readonly,
input[type="number"].readonly,
/* OTO-ID */
input[name="custom[2615][18362]"].readonly,
#custom_field_2024.readonly,
/* NSN/DN */
input[name="custom[65083][92473]"].readonly,
#custom_field_2026.readonly,
/* locationId */
input[name="custom[64840][92011]"].readonly,
#custom_field_37909.readonly,
input[type="number"][name="custom[64840][92011]"].readonly,
input[name="custom[65143][92554]"].readonly,
#custom_field_65143.readonly,
input[name="custom[65068][92419]"].readonly,
#custom_field_65068.readonly,
/* address codepostal */
input[name="custom[2630][18377]"].readonly,
#custom_field_2030.readonly,
input[name="custom[65104][92497]"].readonly,
#field_postcode.readonly,
/* address city */
input[name="custom[2627][18374]"].readonly,
#custom_field_2029.readonly,
input[name="custom[65107][92500]"].readonly,
#field_city.readonly,
/* address rue */
input[name="custom[2621][18368]"].readonly,
#custom_field_2027.readonly,
input[name="custom[65098][92491]"].readonly,
#field_address1.readonly,
/* address nr */
input[name="custom[2624][18371]"].readonly,
#custom_field_2028.readonly,
input[name="custom[65101][92494]"].readonly,
#addressnr.readonly {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ============================================
   Styles modernes pour le formulaire de commande
   ============================================ */

/* Conteneur principal du formulaire */
#orderform {
    margin: 40px 0;
    padding: 0;
    background: transparent;
}

#orderform.form-visible {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Configuration Box - Style moderne avec cartes */
.configuration-box {
    background: #ffffff;
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(17, 38, 146, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.configuration-box:hover {
    box-shadow: 0 8px 24px rgba(17, 38, 146, 0.12);
    transform: translateY(-2px);
}

.configuration-header {
    background: linear-gradient(135deg, #4888ef 0%, #3b6cbb 100%);
    color: #ffffff;
    padding: 20px 24px;
    border-bottom: none;
    margin: 0;
}

.configuration-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.configuration-header h4::before {
    content: '';
    width: 4px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.configuration-body {
    padding: 24px;
    background: #ffffff;
}

/* Méthodes de paiement */
.payment-methods {
    margin: 0;
}

.payment-methods .radio-fields {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.payment-methods .radio-fields li {
    margin: 0;
    padding: 0;
}

.payment-methods .radio-fields li {
    position: relative;
}

.payment-methods .radio-fields li input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-methods .radio-fields li label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f7f9fc;
    border: 2px solid #e2e8f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 40px;
}

.payment-methods .radio-fields li label::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #b7c4e6;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s ease;
}

.payment-methods .radio-fields li label::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4888ef;
    transition: all 0.2s ease;
}

.payment-methods .radio-fields li input[type="radio"]:checked + label {
    background: #eaf0ff;
    border-color: #4888ef;
    color: #4888ef;
    box-shadow: 0 2px 8px rgba(72, 136, 239, 0.2);
}

.payment-methods .radio-fields li input[type="radio"]:checked + label::before {
    border-color: #4888ef;
}

.payment-methods .radio-fields li input[type="radio"]:checked + label::after {
    transform: translateY(-50%) scale(1);
}

.payment-methods .radio-fields li:hover label {
    border-color: #b7c4e6;
    background: #f0f4ff;
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.payment-methods .radio-fields li:has(input[type="radio"]:checked) label {
    background: #eaf0ff;
    border-color: #4888ef;
    color: #4888ef;
    box-shadow: 0 2px 8px rgba(72, 136, 239, 0.2);
}

/* Informations client */
.client-details {
    margin-top: 0;
}

.client-toggle {
    margin-bottom: 20px;
}

.client-toggle select {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e2e8f5;
    border-radius: 8px;
    background: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-toggle select:hover {
    border-color: #b7c4e6;
}

.client-toggle select:focus {
    outline: none;
    border-color: #4888ef;
    box-shadow: 0 0 0 3px rgba(72, 136, 239, 0.1);
}

/* Champs de formulaire */
#orderform input[type="text"],
#orderform input[type="email"],
#orderform input[type="tel"],
#orderform input[type="password"],
#orderform input[type="number"],
#orderform select,
#orderform textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f5;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

#orderform input[type="text"]:focus,
#orderform input[type="email"]:focus,
#orderform input[type="tel"]:focus,
#orderform input[type="password"]:focus,
#orderform input[type="number"]:focus,
#orderform select:focus,
#orderform textarea:focus {
    outline: none;
    border-color: #4888ef;
    box-shadow: 0 0 0 3px rgba(72, 136, 239, 0.1);
}

#orderform input[type="text"]:hover,
#orderform input[type="email"]:hover,
#orderform input[type="tel"]:hover,
#orderform input[type="password"]:hover,
#orderform input[type="number"]:hover,
#orderform select:hover,
#orderform textarea:hover {
    border-color: #b7c4e6;
}

/* Labels */
#orderform label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Textarea pour notes supplémentaires */
.additional-information textarea.additional-notes {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Section TOS et bouton de checkout */
.tos {
    background: #ffffff;
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(17, 38, 146, 0.08);
}

.tos .padding {
    margin-bottom: 20px;
}

.tos input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #4888ef;
}

.tos p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tos a {
    color: #4888ef;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.tos a:hover {
    text-decoration: underline;
}

/* Bouton de checkout */
.checkout-button-fix {
    margin-top: 24px;
}

.checkout-button {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4888ef 0%, #3b6cbb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(72, 136, 239, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-button:hover:not(.disabled) {
    background: linear-gradient(135deg, #3b6cbb 0%, #2d5499 100%);
    box-shadow: 0 6px 20px rgba(72, 136, 239, 0.4);
    transform: translateY(-2px);
}

.checkout-button:active:not(.disabled) {
    transform: translateY(0);
}

.checkout-button.disabled {
    background: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* Gateway form */
#gatewayform {
    background: #ffffff;
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(17, 38, 146, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .configuration-body {
        padding: 20px;
    }
    
    .payment-methods .radio-fields {
        grid-template-columns: 1fr;
    }
    
    .checkout-button {
        max-width: 100%;
    }
    
    .configuration-header {
        padding: 16px 20px;
    }
    
    .configuration-header h4 {
        font-size: 1.1rem;
    }
}

