/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* Basic styles for assessment form */
.hsa-assessment {
    background: #fff;
    padding: 24px;
    border: 1px solid #e6eef6;
    border-radius: 8px;
    max-width: 1000px;
    margin: 20px auto;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

/* Title */
.hsa-title {
    color: #0b3b5a;
    margin-bottom: 20px;
    font-size: 24px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* User Details - 3 Column Grid */
.hsa-user-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 24px;
}

.hsa-field {
    display: flex;
    flex-direction: column;
}

.hsa-field label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.hsa-field .required {
    color: #dc3545;
}

.hsa-field input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.hsa-field input:focus {
    outline: none;
    border-color: #006FA7;
    box-shadow: 0 0 0 3px rgba(0, 111, 167, 0.1);
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
    .hsa-user-details {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.hsa-section {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #f0f6fb;
    background: #fbfeff;
}

.hsa-section h4 {
    color: #006FA7;
    margin: 0 0 16px 0;
    font-size: 16px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
}

/* Questions */
.hsa-question {
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
}

.hsa-qtext {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    display: block;
}

.hsa-qtext .required {
    color: #dc3545;
}

/* Dropdown Select */
.hsa-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}

.hsa-select:focus {
    outline: none;
    border-color: #006FA7;
    box-shadow: 0 0 0 3px rgba(0, 111, 167, 0.1);
}

.hsa-select option {
    padding: 10px;
}

/* Actions */
.hsa-actions {
    margin-top: 24px;
    text-align: right;
}

.hsa-btn {
    background: #006FA7;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.hsa-btn:hover {
    background: #005580;
}

/* Result Section */
.hsa-result {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e6eef6;
    border-radius: 8px;
    background: #f9feff;
}

.hsa-result h3 {
    color: #0b3b5a;
    margin: 0 0 16px 0;
    font-size: 20px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
}

/* Score Box - Like PDF */
.hsa-score-box {
    background: #fff;
    border: 2px solid #006FA7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    max-width: 300px;
}

.hsa-score-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.hsa-score-value {
    font-size: 24px;
    font-weight: 700;
    color: #006FA7;
    margin-bottom: 12px;
}

/* Risk Category Bar */
.hsa-risk-category {
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 14px;
}

/* Interpretation Text */
.hsa-interpretation {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 16px 0;
}

/* Loading State */
.hsa-loading {
    margin-top: 15px;
    color: #006FA7;
    font-style: italic;
}