/* Modal Overlay and Container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Modal Header */
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

/* Progress Bar */
.progress-bar-container {
    height: 4px;
    background: #f0f0f0;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color, #007bff);
    /* Fallback color if var not defined */
    width: 0%;
    transition: width 0.3s ease;
}

/* Modal Body */
.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
    background-color: aliceblue;
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    text-align: center;
}

.step-subtitle {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

/* Selection Cards (Grid) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.option-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-height: 80px;
}

.option-card:hover {
    border-color: var(--primary-color, #007bff);
    /*background: #f9fbff;/**/
}

.option-card.selected {
    border-color: var(--primary-color, #007bff);
    /*background: #f0f7ff;/**/
    box-shadow: 0 0 0 1px var(--primary-color, #007bff);
}

.option-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #555;
    transition: color 0.2s;
}

.option-card.selected i {
    color: var(--primary-color, #007bff);
}

.option-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

/* Input Fields */
.form-group {
    margin-bottom: 20px;
}

.form-row-responsive {
    display: block;
}

@media (min-width: 768px) {
    .form-row-responsive {
        display: flex;
        gap: 20px;
    }

    .form-row-responsive .form-group {
        flex: 1;
        width: 100%;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color, #007bff);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    background: #fff;
}

.btn-nav {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    border: none;
}

.btn-prev {
    background: #f1f3f5;
    color: #555;
}

.btn-prev:hover {
    background: #e9ecef;
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: var(--primary-color, #007bff);
    color: white;
}

.btn-next:hover {
    background: var(--primary-hover, #0056b3);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Checkbox Style for Multi-select */
.option-card input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #007bff);
}

/* Consent Checkbox Style */
.consent-label {
    display: flex!important;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: normal;
    color: #444;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #007bff);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Specific Styles (Moved from PHP) */
/* Hero Section (Reused & Adapted) */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/salle-de-bains-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Intro Section */
.intro-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-container h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.intro-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Generic Section Styles */
.section-std {
    padding: 60px 20px;
}

.bg-light {
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 2.2rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
}

.card-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-item p {
    color: #666;
    line-height: 1.6;
}

/* Process Steps */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Price Section */
.price-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.price-list li {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA */
.cta-box {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: 20px;
    margin: 40px auto 0;
    max-width: 900px;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Credibility */
.credibility-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    list-style: none;
}

.credibility-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: white;
}

.credibility-list i {
    color: var(--primary-color);
}

/* Refactored Inline Styles */
.about-hero .cta-btn {
    background: white;
    color: var(--primary-color);
}

.price-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.price-note {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: center;
}

/* Captcha */
.captcha-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

@keyframes pulse-halo {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.cta-btn.btn-halo {
    animation: pulse-halo 2s infinite;
}