/* Diagnostico Page Styles */

.diagnostico-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #121212; /* Fallback */
}

.form-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: radial-gradient(100% 100% at 50% 0%, #2A2A2A 0%, #151515 69.94%);
    border: 2px solid #393939;
    box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 1;
}

/* Header */
.form-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.form-title {
    font-family: 'Ubuntu Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(40px, 5vw, 80px);
    line-height: 1.1;
    text-align: center;
    color: #FAFAFA;
    text-shadow: 0px 4px 4px #000000;
    margin: 0;
}

.form-subtitle {
    font-family: 'Ubuntu Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.form-meta {
    font-family: 'Ubuntu Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Form Elements */
.diagnostico-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.form-group label {
    font-family: 'Ubuntu Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.pill-input {
    display: block; /* Override global flex */
    width: 100%;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 16px;
    font-family: 'Ubuntu Sans', sans-serif;
    font-size: 16px;
    color: #FAFAFA;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: auto; /* Override fixed height */
}

.pill-input:focus {
    outline: none;
    border-color: #21BDEF;
    background: rgba(42, 42, 42, 1);
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
}

.pill-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Radio & Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Ubuntu Sans', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

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

/* Custom Radio */
.radio-custom {
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #D2D2D2;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option:hover input ~ .radio-custom {
    border-color: #21BDEF;
}

.radio-option input:checked ~ .radio-custom {
    border-color: #21BDEF;
    background-color: transparent;
}

.radio-option input:checked ~ .radio-custom:after {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #21BDEF;
    box-shadow: 0 0 8px #21BDEF;
}

/* Custom Checkbox */
.checkbox-custom {
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #D2D2D2;
    border-radius: 50%; /* Using circle style as per Figma design */
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-option:hover input ~ .checkbox-custom {
    border-color: #21BDEF;
}

.checkbox-option input:checked ~ .checkbox-custom {
    border-color: #21BDEF;
}

.checkbox-option input:checked ~ .checkbox-custom:after {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #21BDEF;
    box-shadow: 0 0 8px #21BDEF;
}

/* Sub Questions (AI Details) */
.sub-questions {
    margin-left: 32px;
    margin-top: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 2px solid rgba(33, 189, 239, 0.3);
}

.sub-questions.hidden {
    display: none;
}

.sub-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sub-group label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    min-width: 80px;
}

.small-input {
    padding: 8px 12px;
    font-size: 14px;
    height: 36px;
}

/* Other Option */
.other-option {
    flex-wrap: wrap;
}

.inline-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    height: 36px;
    margin-left: 8px;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.form-actions .btn-prim {
    width: 100%;
    max-width: 300px;
    height: 56px;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .diagnostico-section {
        padding: 100px 16px 60px;
    }
    
    .form-container {
        padding: 32px 20px;
    }

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

    .sub-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sub-group label {
        min-width: auto;
    }
    
    .inline-input {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
}
