* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1f2e 50%, #0a0e1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.diagnostico-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

.diagnostico-card {
    background: rgba(26, 34, 50, 0.7);
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.btn-home {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(-3px);
}

.diagnostico-header {
    text-align: center;
    margin-bottom: 60px;
}

.diagnostico-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.text-red {
    color: #ef4444;
}

.diagnostico-subtitle {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 30px;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b5998 0%, #ef4444 100%);
    width: 8.33%;
    transition: width 0.4s ease;
}

/* Form Steps */
.step {
    display: none;
    min-height: 320px;
}

.step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Select Field */
.select-container {
    position: relative;
}

.select-field {
    width: 100%;
    padding: 18px 24px;
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.select-field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.select-field option {
    background: #1e293b;
    color: #ffffff;
}

.select-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Options Container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-text {
    color: #d1d5db;
    font-size: 1rem;
    padding-left: 36px;
    position: relative;
    width: 100%;
}

/* Radio Button Custom Style */
.option-item:not(.checkbox) .option-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.option-item input[type="radio"]:checked~.option-text::before {
    border-color: #ef4444;
    background: #ef4444;
    box-shadow: inset 0 0 0 4px rgba(26, 34, 50, 0.9);
}

.option-item input[type="radio"]:checked~.option-text {
    color: #ffffff;
    font-weight: 500;
}

/* Checkbox Custom Style */
.option-item.checkbox .option-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.option-item input[type="checkbox"]:checked~.option-text::before {
    border-color: #ef4444;
    background: #ef4444;
}

.option-item input[type="checkbox"]:checked~.option-text::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.option-item input[type="checkbox"]:checked~.option-text {
    color: #ffffff;
    font-weight: 500;
}

/* Navigation Buttons */
.diagnostico-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    gap: 16px;
}

.btn-anterior,
.btn-proxima {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-anterior {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.btn-anterior:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-anterior:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-proxima {
    background: #ef4444;
    color: #ffffff;
    margin-left: auto;
}

.btn-proxima:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-proxima:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Resultado */
.resultado {
    text-align: center;
    padding: 40px 0;
}

.resultado-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
}

.resultado-categoria {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.resultado-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.resultado-texto {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-agendar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-agendar:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .diagnostico-card {
        padding: 30px 24px;
    }

    .diagnostico-title {
        font-size: 1.8rem;
    }

    .question-label {
        font-size: 1.2rem;
    }

    .resultado-titulo {
        font-size: 1.4rem;
    }

    .diagnostico-nav {
        flex-direction: column;
        gap: 12px;
    }

    .btn-anterior,
    .btn-proxima {
        width: 100%;
        justify-content: center;
    }

    .btn-proxima {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .diagnostico-card {
        padding: 24px 16px;
    }

    .diagnostico-title {
        font-size: 1.5rem;
    }

    .question-label {
        font-size: 1.1rem;
    }
}