.questionnaire {
    padding: 140px 0 90px;
}

.contact-page .navbar {
    background-color: rgba(255, 255, 255, 0.92);
}

.questionnaire-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.questionnaire-header p {
    font-size: 1.05rem;
}

.questionnaire-card {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 50px;
    border: 1px solid rgba(14, 26, 43, 0.08);
}

.progress {
    margin-bottom: 40px;
}

.progress-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.progress-step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(14, 26, 43, 0.08);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.progress-step.active {
    background: var(--brand-gradient);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(242, 177, 91, 0.35);
}

.progress-bar {
    margin-top: 16px;
    height: 6px;
    background: rgba(14, 26, 43, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--brand-gradient);
    transition: width 0.3s ease;
}

.form-step {
    display: none;
    animation: fadeStep 0.3s ease;
}

.form-step.shake {
    animation: shake 0.3s ease;
}

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

.form-step h2 {
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}

.form-step h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 3px;
    border-radius: 999px;
    background: #000000;
    opacity: 0.9;
}

.intro-step {
    min-height: 320px;
}

.form-step.active.intro-step {
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.services-grid {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.option-card {
    appearance: none;
    border: 1px solid rgba(14, 26, 43, 0.14);
    border-radius: 14px;
    background: var(--white);
    color: var(--primary-color);
    font: inherit;
    font-weight: 500;
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 82px;
}

.option-emoji {
    font-size: 1.2rem;
    line-height: 1;
}

.option-card span:last-child {
    line-height: 1.3;
}

.option-card:hover {
    border-color: var(--secondary-color);
}

.option-card.selected {
    border-color: var(--secondary-color);
    background: rgba(242, 177, 91, 0.15);
}

.card-error-message {
    margin-top: 12px;
    color: #d93025;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-note {
    margin-top: 20px;
    background: rgba(242, 177, 91, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

#submit-form {
    display: none;
}

#submit-form.active {
    display: inline-flex;
}

#next-step.hidden,
#prev-step.hidden {
    display: none;
}

#prev-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeStep {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 900px) {
    .contact-page .hamburger {
        display: none;
    }

    .questionnaire {
        padding: 120px 0 70px;
    }

    .questionnaire-card {
        padding: 36px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .form-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .questionnaire-header {
        text-align: center;
    }

    .questionnaire-card {
        padding: 28px 22px;
    }

    .progress-track {
        gap: 8px;
    }

    .progress-step {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
