@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
    background-color: #2a3f54; /* Darker blue from new screenshot */
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px 40px;
    background-color: white;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-height: 50px; /* Adjust as needed */
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center form vertically */
    text-align: center;
    padding: 40px;
}

.main-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.main-subtitle {
    color: #e2e8f0;
    font-size: 1rem;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

#hero .form-container {
    background-color: white;
    padding: 40px 50px;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.form-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

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

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select {
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input::placeholder, .form-group select {
    color: #94a3b8;
}

#start-evaluation-btn {
    background-color: #22c55e;
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

#start-evaluation-btn:hover {
    background-color: #16a34a;
}

.form-footer-info, .form-contact-info {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.form-footer-info span, .form-contact-info span {
    margin: 0 10px;
}

.form-contact-info {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* For screen-reader accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

footer {
    text-align: center;
    padding: 20px 40px;
    color: #cbd5e1;
    font-size: 0.875rem;
    background-color: transparent;
}

#survey-container {
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    text-align: left;
    margin: 2rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: white; /* Changed */
}

.progress-bar-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #22c55e; /* Green from screenshot */
    border-radius: 999px;
    transition: width 0.3s ease;
}

.section-header {
    background-color: #22c55e; /* Green from screenshot */
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.section-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

.question h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: left;
    color: #1e293b;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

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

.option-label input[type="radio"] {
    display: none; /* Ocultamos el radio button por defecto */
}

.option-label:has(input[type="radio"]:checked) {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.option-label input[type="radio"]:checked + .option-content strong {
    color: #22c55e; /* Green from screenshot */
}

.option-label .option-content {
    margin-left: 15px;
}

.option-content p {
    margin: 5px 0;
    color: #475569;
    font-size: 0.9rem;
}

.option-content span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

#prev-btn {
    background-color: white;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#prev-btn:disabled {
    background-color: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

#prev-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
}

.next-text {
    color: #64748b;
    font-size: 0.9rem;
    align-self: center;
}

/* Report Styles */
#report-container h1, #report-container h2, #report-container h3 {
    color: #1e293b;
}

#report-container hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.category-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-score-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.category-score-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.action-plan {
    margin-top: 2rem;
}

.action-plan-item {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.action-plan-item .item-number {
    background-color: #4f46e5;
    color: white;
    font-weight: 700;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-plan-item .item-content h4 {
    margin: 0 0 0.5rem 0;
}

.action-plan-item .item-content p {
    margin: 0;
}

.report-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

#restart-btn, #request-detailed-btn {
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#restart-btn {
    background-color: #4f46e5;
    color: white;
}

#restart-btn:hover {
    background-color: #4338ca;
}

#request-detailed-btn {
    background-color: white;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

#request-detailed-btn:hover {
    background-color: #f1f5f9;
}

.reminder-box strong {
    color: #c2185b;
}

#reminder-container {
    width: 100%;
    max-width: 700px;
    margin-top: 2rem;
}

.reminder-box {
    background-color: #fff1f2;
    border: 1px solid #ffcdd2;
    border-left: 4px solid #ef4444;
    color: #9f1239;
    padding: 15px 20px;
    border-radius: 8px;
}

.reminder-box p {
    margin: 0;
}

.reminder-box strong {
    color: #c2185b;
}

#create-report-btn {
    background-color: #16a34a;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    cursor: not-allowed;
}

.final-score {
    font-size: 4rem;
    font-weight: 700;
    color: #4ade80;
    margin: 2rem 0;
}

#restart-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

#restart-btn:hover {
    background-color: #4338ca;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    main {
        padding: 20px;
    }

    .main-title {
        font-size: 1.8rem; /* Reducido para móviles */
        line-height: 1.2;
    }

    .main-subtitle {
        font-size: 0.9rem;
    }

    #hero .form-container {
        padding: 25px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        gap: 1rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    #survey-container {
        padding: 25px 20px;
    }

    .section-header h3 {
        font-size: 1.25rem;
    }

    .question h2 {
        font-size: 1.5rem;
    }

    .navigation-buttons {
        flex-direction: column-reverse; /* Pone el botón 'siguiente' arriba */
        gap: 1rem;
    }
}
