/* ==================== FONTS PREMIUM ====================*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ==================== TUNNEL FUNNEL STYLES ====================*/
.funnel-wrapper {
    background: var(--primary);
    min-height: calc(100vh - 100px);
    padding: 40px 0;
}

.navbar-simple {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border);
}

.navbar-simple .logo {
    color: var(--text-dark);
}

.navbar-simple .logo h2 {
    margin: 0;
    font-family: var(--font-premium);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 50px;
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--accent-lighter);
    color: var(--accent);
    border-color: var(--accent);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
}

.progress-bar {
    max-width: 800px;
    margin: -35px auto 0;
    padding: 0 20px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.5s ease;
}

/* Funnel Container */
.funnel-container {
    max-width: 600px;
    margin: 0 auto;
}

.funnel-step {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    display: none;
    border: 1px solid var(--border);
}

.funnel-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: var(--font-premium);
    font-weight: 700;
}

.step-content > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* SERVICES SELECTION */
.services-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-option {
    padding: 1.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-gray);
}

.service-option:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
    transform: translateY(-4px);
}

.service-option.selected {
    border-color: var(--accent);
    background: var(--accent-lighter);
    border-width: 2px;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.service-option h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.service-option p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.service-price {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.service-detail {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* FORMS */
.funnel-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.1);
}

.error-message {
    color: #ff5757;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff5757;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-dark);
}

.radio-group input,
.checkbox-group input {
    width: auto;
    cursor: pointer;
    accent-color: var(--accent);
}

/* PAYMENT */
.payment-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.payment-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

#card-element {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 1rem;
    background: white;
}

.payment-methods {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.payment-method {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.payment-method:last-child {
    margin-bottom: 0;
}

.payment-method input {
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--accent);
}

.payment-method label {
    cursor: pointer;
    flex: 1;
}

/* SUCCESS */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.success-content h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ==================== RESPONSIVE ====================*/

/* Tablet - 768px et moins */
@media (max-width: 768px) {
    .funnel-wrapper {
        padding: 20px 0;
        min-height: auto;
    }

    .progress-container {
        margin-bottom: 30px;
        padding: 20px 0;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .progress-bar {
        margin: -25px auto 0;
        height: 2px;
    }

    .funnel-container {
        max-width: 100%;
        margin: 0 20px;
    }

    .funnel-step {
        padding: 25px 20px;
        border-radius: 6px;
    }

    .step-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .step-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.65rem;
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .services-selection {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .service-option {
        padding: 1rem 0.75rem;
    }

    .service-option h3 {
        font-size: 0.9rem;
    }

    .service-option p {
        font-size: 0.75rem;
    }

    .service-price {
        font-size: 0.85rem;
    }

    .payment-summary {
        padding: 1.2rem;
    }

    .payment-summary h3 {
        font-size: 1rem;
    }

    .summary-item {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Mobile - 480px et moins */
@media (max-width: 480px) {
    .funnel-wrapper {
        padding: 10px 0;
    }

    .progress-container {
        margin-bottom: 20px;
        padding: 15px 0;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 10px;
    }

    .step {
        flex: 0 1 calc(50% - 0.25rem);
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .step-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .progress-bar {
        margin: -20px auto 0;
        padding: 0 10px;
    }

    .funnel-container {
        margin: 0 10px;
    }

    .funnel-step {
        padding: 20px 15px;
        border-radius: 4px;
    }

    .step-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
        letter-spacing: -0.5px;
    }

    .step-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .funnel-form {
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 16px; /* Prevent auto-zoom on iOS */
        border-radius: 4px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .services-selection {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.2rem;
    }

    .service-option {
        padding: 1rem;
        border-radius: 4px;
    }

    .service-option:hover {
        transform: translateY(-2px);
    }

    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .service-option h3 {
        font-size: 0.85rem;
    }

    .service-option p {
        font-size: 0.7rem;
    }

    .service-price {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .service-detail {
        font-size: 0.65rem;
    }

    .error-message {
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }

    .radio-group,
    .checkbox-group {
        gap: 0.5rem;
    }

    .radio-group label,
    .checkbox-group label {
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    .payment-summary {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .payment-summary h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .summary-item {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .summary-divider {
        margin: 0.75rem 0;
    }

    .summary-total {
        font-size: 1.1rem;
    }

    #card-element {
        padding: 0.75rem;
        border-radius: 4px;
        margin-bottom: 0.75rem;
    }

    .payment-methods {
        margin: 1rem 0;
        padding: 0.75rem;
    }

    .payment-method {
        margin-bottom: 0.75rem;
    }

    .payment-method input {
        margin-right: 0.5rem;
    }

    .success-icon {
        font-size: 60px;
        margin-bottom: 0.75rem;
    }

    .success-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .success-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Extra small - 360px et moins */
@media (max-width: 360px) {
    .step {
        flex: 0 1 calc(33% - 0.3rem);
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-content h2 {
        font-size: 1.2rem;
    }

    .funnel-step {
        padding: 15px 12px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 0.5rem;
    }
}
