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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.progress-container {
    background-color: #f9f9f9;
    padding: 20px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.progress-bar {
    position: relative;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D50A3A 0%, #ff1744 100%);
    transition: width 0.4s ease;
    width: 0%;
    border-radius: 6px;
}

.progress-label {
    display: flex;
    justify-content: end;
    align-items: center;
}

.progress-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.progress-percent {
    font-size: 14px;
    color: #D50A3A;
    font-weight: 700;
}

.intro-container {
    padding: 60px 40px;
}

.intro-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.intro-slide.active {
    display: block;
}

.intro-icon {
    text-align: center;
    margin-bottom: 30px;
}

.intro-container h1 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
}

.intro-container h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.intro-subtitle {
    text-align: center;
    font-size: 18px;
    font-style: italic;
    color: #D50A3A;
    margin-bottom: 30px;
    font-weight: 500;
}

.intro-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 20px;

    border: 2px solid #e0e0e0;
}

.feature-item strong {
    display: block;
    color: #1a1a1a;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.benefits-title {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefit-item {
    background-color: #f9f9f9;
    padding: 16px 20px;

    margin-bottom: 12px;
    font-size: 15px;
}

.benefit-item strong {
    color: #D50A3A;
    font-weight: 600;
}

.intro-container .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    width: fit-content;
}

.form-container {
    padding: 40px;
}

#questionContainer {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.question {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.question.active {
    display: block;
}

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

.question-number {
    color: #D50A3A;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.question h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 600;
}

.required-star {
    color: #D50A3A;
    margin-left: 4px;
    font-weight: 700;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.options-smoking {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.smoking-row-2 {
    display: grid;
    grid-template-columns: 1fr;
}

.option {
    position: relative;
}

.option input[type="radio"],
.option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option label {
    display: block;
    padding: 18px 24px;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    text-align: center;
}

.options-row .option label {
    text-align: center;
}

.option input[type="radio"]:checked + label,
.option input[type="checkbox"]:checked + label {
    background-color: #f9f9f9;
    border-color: #D50A3A;
    color: #D50A3A;
    font-weight: 500;
}

.option label:hover {
    border-color: #c8c8c8;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group label .required-star {
    color: #D50A3A;
    margin-left: 4px;
    font-weight: 700;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;

    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #D50A3A;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 12px;
}

.btn {
    padding: 14px 32px;
    border: none;

    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

.btn svg {
    transition: transform 0.2s ease;
}

.btn-primary {
    background-color: #D50A3A;
    color: #fff;
}

.btn-primary:hover {
    background-color: #b00831;
}

.btn-primary:hover svg {
    transform: translateX(2px);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-secondary:hover svg {
    transform: translateX(-2px);
}

.error-message {
    background-color: #ffebee;
    color: #D50A3A;
    padding: 12px 16px;

    margin-top: 20px;
    font-size: 14px;
}

.summary-container {
    padding: 40px;
}

.summary-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.summary-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item h4 {
    color: #D50A3A;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.edit-link:hover {
    color: #D50A3A;
}

.summary-item p {
    font-size: 16px;
    color: #333;
}

.success-container {
    padding: 60px 40px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #4caf50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
}

.success-container h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.success-container p {
    font-size: 16px;
    color: #666;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #666;
}

.footer a {
    color: #D50A3A;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .progress-container {
        padding: 16px 20px;
    }

    .intro-container,
    .form-container,
    .summary-container {
        padding: 40px 24px;
    }

    .intro-container h1 {
        font-size: 26px;
    }

    .intro-container h2 {
        font-size: 24px;
    }

    .question h3 {
        font-size: 20px;
    }

    .option label {
        padding: 14px 18px;
        font-size: 15px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .navigation {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .smoking-row-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .intro-container,
    .form-container,
    .summary-container {
        padding: 30px 16px;
    }

    .intro-container h1 {
        font-size: 22px;
    }

    .question h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .progress-text {
        font-size: 11px;
    }
}