* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('https://silver-chinchilla-534616.hostingersite.com/uploads/GET-ADS/images/bg_qt.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 0;
    pointer-events: none;
}

.questionnaire-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 20px 20px 5px;
}

.logo {
    max-width: 130px;
    height: auto;
}

/* Progress Section */
.progress-section {
    text-align: center;
    padding: 10px;
}

.progress-bars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.progress-bar {
    width: 60px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.progress-bar.active {
    background-color: #ffffff;
}

.progress-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

/* Content Section - Two Column Layout */
.content-section {
    flex: 1;
    /* max-width: 1200px; */
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Form Section */
.form-section {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
}

.form-container {
    border: 2px solid #6A3BE8;
    border-radius: 20px;
    padding: 0;
    background: #e5dbf9;
    flex: 1;
}

/* Image Section */
.image-section {
    flex: 0 0 30%;
    display: flex;
    padding-top: 4%;
    align-items: flex-start;
    justify-content: center;
}

.questionnaire-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 20px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #6A3BE8;
    text-align: center;
    margin-bottom: 10px;
    padding: 35px 30px 0;
}

/* Step 0 - Welcome Screen */
.welcome-content {
    /* max-width: 600px; */
    margin: 0 auto;
    text-align: center;
    padding: 20px 80px 10px;
}

.welcome-text {
    font-size: 18px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 40px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #6A3BE8;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

/* Trust Section Styles */
.trust-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 15px 0 30px;
    padding: 0 80px;
}

.welcome-button-container {
    text-align: center;
    padding: 0 30px 40px;
}

.trust-item {
    background: linear-gradient(135deg, #532dbb 0%, #714bca 100%);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(106, 59, 232, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 59, 232, 0.4);
}

.trust-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg {
    width: 50px;
    height: 50px;
}

.trust-text {
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

.trust-text strong {
    font-weight: 700;
    color: #ffffff;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.btn-commence {
    background: linear-gradient(135deg, #6A3BE8 0%, #8B5CF6 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(106, 59, 232, 0.3);
    font-family: 'Outfit', sans-serif;
    animation: pulse 0.6s ease-in-out 1s infinite;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes pulse-repeat {
    0%, 12%, 100% {
        transform: scale(1);
    }
    6% {
        transform: scale(1.08);
    }
}

.btn-commence {
    background: linear-gradient(135deg, #6A3BE8 0%, #8B5CF6 100%);
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 1s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(106, 59, 232, 0.3);
    font-family: 'Outfit', sans-serif;
    animation: pulse-repeat 3s ease-in-out infinite;
}

.btn-commence:hover {
    /* transform: translateY(-2px) scale(1); */
    box-shadow: 0 6px 80px rgba(106, 59, 232, 0.4);
    animation: none;
}

.btn-commence:active {
    transform: translateY(0) scale(1);
    animation: none;
}

.questionnaire-form {
    width: 100%;
    padding: 20px 30px 25px;
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Step 7 specific padding */
.form-step[data-step="7"] {
    padding: 40px 50px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 0;
    order: 1;
}

.options-grid-4 {
    grid-template-columns: repeat(3, 1fr);
}

/* Slider Styles for Step 4 */
.slider-container {
    padding: 20px 15px;
    margin-bottom: 20px;
}

.budget-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #6A3BE8 0%, #6A3BE8 33.33%, #3a3a3a 33.33%, #3a3a3a 100%);
    outline: none;
    border-radius: 5px;
    margin-bottom: 20px;
}

.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #6A3BE8;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.budget-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #6A3BE8;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.slider-label {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.slider-label.active {
    color: #6A3BE8;
    font-weight: 600;
}

/* Contact Form Styles for Step 7 */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6A3BE8;
    margin-bottom: 6px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #333;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus {
    border-color: #6A3BE8;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Phone input with country code */
.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.country-code-select {
    padding: 12px 12px;
    border: 2px solid #333;
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease;
    outline: none;
    background-color: white;
    cursor: pointer;
    min-width: 110px;
}

.country-code-select:focus {
    border-color: #6A3BE8;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
}

/* Legacy phone-input class for compatibility */
.phone-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-code {
    padding: 12px 12px;
    border: 2px solid #333;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
    min-width: 110px;
}

.country-code:focus {
    border-color: #6A3BE8;
}

.phone-number {
    flex: 1;
}

.submit-final {
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
}

/* Styles from index for Step 7 contact form */
.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #632BC5;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.devis-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.devis-form .form-row {
    display: flex;
    gap: 16px;
}

.devis-form .form-row .form-group {
    flex: 1;
}

.devis-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.devis-form .form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.devis-form .form-group input,
.devis-form .form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.devis-form .form-group input:focus,
.devis-form .form-group textarea:focus {
    border-color: #632BC5;
    box-shadow: 0 0 0 3px rgba(99, 43, 197, 0.1);
}

.devis-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.devis-form .phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.devis-form .country-code-select {
    padding: 14px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    background-color: white;
    cursor: pointer;
    min-width: 110px;
}

.devis-form .country-code-select:focus {
    border-color: #632BC5;
    box-shadow: 0 0 0 3px rgba(99, 43, 197, 0.1);
}

.devis-form .phone-input-wrapper input[type="tel"] {
    flex: 1;
}

.form-submit-btn {
    background-color: #632BC5;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #4f22a0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 43, 197, 0.3);
}

.form-submit-btn:active {
    transform: translateY(0);
}

/* Navigation Arrows */
.navigation-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 15px;
    order: 2;
    gap: 15px;
}

.nav-button {
    background: #ffffff;
    border: 2px solid #6A3BE8;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #6A3BE8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.nav-button:hover {
    background: #6A3BE8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 59, 232, 0.3);
}

.nav-button:active {
    transform: translateY(0);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-button.nav-prev {
    margin-right: auto;
}

.nav-button.nav-next {
    margin-left: auto;
}

/* Error Message */
.error-message {
    text-align: center;
    color: #ffffffda;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    margin-top: 12px;
    margin-bottom: 0;
    background: #bdbdbd;
    border-radius: 8px;
    order: 3;
}

.option-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 85px;
    justify-content: center;
}

.option-card:hover {
    border-color: #6A3BE8;
    background: #6A3BE8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 59, 232, 0.15);
}

.option-card:hover .option-label {
    color: white;
}

.option-card:hover .option-icon svg {
    stroke: white;
}

.option-card.selected {
    border-color: #6A3BE8;
    background: #6A3BE8;
    color: white;
}

.option-card.selected .option-label {
    color: white;
}

.option-card.selected .option-icon svg {
    stroke: white;
}

.option-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.option-icon svg {
    width: 36px;
    height: 36px;
    stroke: #333;
    transition: stroke 0.3s ease;
}

.option-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Submit Button */
.submit-button {
    display: block;
    margin: 0 auto;
    background: #6A3BE8;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 35px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 160px;
}

.submit-button:hover {
    background: #5a2fc7;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(106, 59, 232, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Success Overlay */
.form-success-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #6A3BE8;
    min-height: 320px;
    padding: 20px;
    animation: fadeInScale 0.4s ease forwards;
}

.form-success-overlay.active {
    display: flex;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}

/* Footer Section - Matches index footer */
.footer{
    background: #000;
    padding: 30px 50px;
    color: #fff;
    margin-top: auto;
    width: 100%;
}

.footer-container{
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.footer-content{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-left{
    max-width: 700px;
}

.footer-logo{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-menu{
    display: flex;
    gap: 38px;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    opacity: 0.9;
    display: inline-block;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.footer-menu a:hover,
.footer-menu a:focus{
    color: #ffffff;
    background-color: rgba(255,255,255,0.06);
    transform: translateY(-4px);
    outline: none;
}

.footer-social{
    display: flex;
    gap: 39px;
    margin-bottom: 30px;
}

.footer-social a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    will-change: transform;
    text-decoration: none;
    color: inherit;
}

.footer-social a:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background-color: #000000;
}

.footer-social img {
    width: 20px;
    display: block;
}

.footer-copy{
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
    margin-top: 20px;
}

.footer-right{
    justify-content: end;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #6A3BE8;
    color: #fff;
    padding: 15px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
}

.footer-btn img {
    width: 16px;
}

.footer-text{
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}


/* Responsive Design */
@media (max-width: 992px) {
    /* Two-column layout becomes single column on tablets */
    .content-section {
        flex-direction: column;
    }

    .form-section {
        flex: 1 1 auto;
    }

    .image-section {
        flex: 1 1 auto;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .form-title {
        font-size: 22px;
        margin-bottom: 10px;
        padding: 35px 20px 0;
    }

    .questionnaire-form {
        padding: 20px 20px 25px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trust-section {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }

    .welcome-button-container {
        padding: 0 20px 30px;
    }

    .welcome-content {
    /* max-width: 600px; */
    margin: 0 auto;
    text-align: center;
    padding: 10px 10px 10px;
    }

    .option-card {
        padding: 25px 15px;
    }

    .submit-button {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .phone-input {
        flex-direction: column;
        align-items: stretch;
    }

    .country-code {
        width: 100%;
    }

    .navigation-arrows {
        padding: 0;
    }

    .error-message {
        margin-left: 0;
        margin-right: 0;
    }

    .footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-menu {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-menu a {
        font-size: 16px;
    }

    .footer-social {
        gap: 20px;
    }

    /* Step 7 padding for tablet/mobile */
    .form-step[data-step="7"] {
        padding: 30px 25px;
    }

    .devis-form .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 150px;
    }

    .form-title {
        font-size: 20px;
    }

    .logo-section {
        padding: 20px 20px 10px;
    }

    .image-section {
        display: none;
    }

    /* Step 7 padding for small mobile */
    .form-step[data-step="7"] {
        padding: 25px 15px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .form-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 50%, #4C1D95 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.loader, .loader:before, .loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    animation-fill-mode: both;
    animation: bblFadInOut 1.8s infinite ease-in-out;
}

.loader {
    color: #FFF;
    font-size: 7px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
}

.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}

.loader:before {
    left: -3.5em;
    animation-delay: -0.32s;
}

.loader:after {
    left: 3.5em;
}

@keyframes bblFadInOut {
    0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em }
    40% { box-shadow: 0 2.5em 0 0 }
}

.loading-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .loader {
        font-size: 6px;
    }
    
    .loading-text {
        font-size: 16px;
    }
}
