:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #34a853;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --border-color: #dadce0;
    --error-color: #ea4335;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-nceee {
    height: 70px;
}

.logo-wezara {
    height: 80px;
}

.logo-unicef {
    height: 60px;
}

.program-title {
    text-align: center;
    width: 100%;
}

.program-title h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.program-title h2 {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 5px;
}

.program-title .date {
    color: #5f6368;
    font-size: 16px;
}

.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-field {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.stats-table th, .stats-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: center;
}

.stats-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.question-group {
    margin-bottom: 25px;
}

.question {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.question-text {
    margin-bottom: 10px;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit {
    background-color: var(--accent-color);
    color: white;
}

.btn-reset {
    background-color: #f1f3f4;
    color: var(--dark-color);
}

.btn-submit:hover {
    background-color: #2e8b57;
}

.btn-reset:hover {
    background-color: #e8eaed;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #5f6368;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}

.message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #34a853;
}

.error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid var(--error-color);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Inline Question & Option Layout === */
.question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.question-text {
    margin-bottom: 0;
    flex: 1;
    font-weight: 500;
    padding-left: 10px;
}

.radio-group {
    display: flex;
    gap: 25px;
    flex-shrink: 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === Responsive Adjustment for Mobile === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logos {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .logo {
        height: 60px;
    }
    
    .logo-nceee {
        height: 50px;
    }
    
    .logo-wezara {
        height: 60px;
    }
    
    .logo-unicef {
        height: 45px;
    }
    
    .program-title h1 {
        font-size: 20px;
    }
    
    .program-title h2 {
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-field {
        min-width: 100%;
    }

    /* Stack questions on mobile for readability */
    .question {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-group {
        margin-top: 8px;
    }
}
