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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 5px;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.stepper-item.active .stepper-circle {
    background-color: var(--primary-color);
    color: white;
}

.stepper-item.completed .stepper-circle {
    background-color: var(--success-color);
    color: white;
}

.stepper-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
}

.stepper-item.active .stepper-label {
    color: var(--primary-color);
    font-weight: 600;
}

.stepper-line {
    width: 40px;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 5px;
    margin-bottom: 20px;
}

.step-indicator {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.step-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.hidden {
    display: none !important;
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

.form-group {
    margin-bottom: 25px;
}

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

.required {
    color: var(--danger-color);
}

.slider-container {
    padding: 10px 0;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.slider-value {
    text-align: center;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:hover, .checkbox-label:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.radio-label input, .checkbox-label input {
    display: none;
}

.radio-custom, .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-label input:checked + .radio-custom,
.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.input-field, .textarea-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus, .textarea-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.textarea-field {
    resize: vertical;
    min-height: 100px;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next, .btn-submit {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
}

.btn-next:hover, .btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-next:disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-prev {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-prev:hover {
    background-color: var(--bg-light);
}

.copayment-details {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.results-banner {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 8px;
    margin-bottom: 25px;
}

.results-banner h2 {
    font-size: 1.4rem;
}

.results-banner.warning {
    background: linear-gradient(135deg, var(--warning-color), #b45309);
}

.results-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.result-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.result-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.result-card.highlight {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.result-value.large {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.result-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

.guidance-section {
    margin-bottom: 25px;
}

.guidance-card {
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.guidance-card.warning {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
}

.guidance-card.info {
    background-color: #e0f2fe;
    border: 1px solid #0ea5e9;
}

.guidance-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.guidance-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.disclaimer {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.rating-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.rating-label {
    cursor: pointer;
}

.rating-label input {
    display: none;
}

.rating-circle {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s;
}

.rating-label:hover .rating-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.rating-label input:checked + .rating-circle {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.thank-you {
    text-align: center;
    padding: 40px 20px;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
}

.thank-you h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.thank-you p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.footer {
    text-align: center;
    padding: 25px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .step-card {
        padding: 20px;
    }

    .stepper {
        gap: 3px;
    }

    .stepper-line {
        width: 20px;
    }

    .stepper-label {
        font-size: 0.65rem;
        max-width: 60px;
    }

    .stepper-circle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn-next, .btn-submit {
        margin-left: 0;
        order: -1;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-circle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .radio-group, .checkbox-group {
        gap: 8px;
    }

    .radio-label, .checkbox-label {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
