.msa-survey-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    padding: 0 15px;
}

.msa-survey-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.msa-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.msa-table th,
.msa-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.msa-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.msa-table .center {
    text-align: center;
    width: 80px;
}

.question-row.odd {
    background-color: #f9f9f9;
}

.question-row.even {
    background-color: #ffffff;
}

.question-row:hover {
    background-color: #e8f4f8;
}

.female-only {
    background-color: #ffe6f2 !important;
    border-left: 4px solid #e91e63;
}

.female-only:hover {
    background-color: #ffd1e7 !important;
}

.msa-gender-selection {
    margin-bottom: 30px;
}

.msa-gender-selection .msa-table {
    max-width: 400px;
    margin: 0 auto;
}

.msa-questions-section {
    margin: 30px 0;
}

.msa-submit-section {
    text-align: center;
    margin: 40px 0;
}

.msa-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.msa-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.msa-result-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.msa-result-container h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.msa-result-message {
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.msa-result-message.result-1 {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.msa-result-message.result-2 {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    color: #856404;
}

.msa-result-message.result-3 {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.msa-restart-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.msa-restart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    color: white;
}

.msa-table input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .msa-survey-container {
        padding: 0 10px;
    }
    
    .msa-table {
        font-size: 14px;
    }
    
    .msa-table th,
    .msa-table td {
        padding: 8px;
    }
    
    .msa-table .center {
        width: 60px;
    }
    
    .msa-submit-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .msa-result-message {
        padding: 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .msa-table {
        font-size: 12px;
    }
    
    .msa-table th,
    .msa-table td {
        padding: 6px;
    }
    
    .msa-submit-btn {
        width: 100%;
        max-width: 300px;
    }
}

.msa-table input[type="radio"]:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.msa-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}
