* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Header Section */
.header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-left,
.logo-right {
    flex: 0 0 150px;
}

.logo-image,
.logo-university {
    max-width: 150px;
    height: auto;
    display: block;
}

.logo-university {
    margin-right: auto;
}

.university-info-center {
    flex: 1;
    text-align: center;
}

.university-info-center h1 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.university-info-center h2 {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 8px;
}

.university-info-center h3 {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 8px;
}

.university-info-center h4 {
    font-size: 14px;
    color: #7f8c8d;
}

/* Old styles for backward compatibility */
.logo-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.university-info h1 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.university-info h2 {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 8px;
}

.university-info h3 {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 8px;
}

.university-info h4 {
    font-size: 14px;
    color: #7f8c8d;
}

/* Title Section */
.title-section {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

.main-title {
    font-size: 32px;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 20px;
}

.title-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.study-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.study-subtitle {
    font-size: 18px;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.study-sample {
    font-size: 16px;
    color: #7f8c8d;
    font-style: italic;
}

/* Notice */
.notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.notice p {
    color: #856404;
    line-height: 1.8;
    font-size: 15px;
}

/* Team Info */
.team-info {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.students, .supervisor {
    flex: 1;
}

.team-info h4 {
    font-size: 16px;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: bold;
}

.team-info p {
    color: #34495e;
    margin: 5px 0;
    font-size: 14px;
}

.year {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
}

/* Form Sections */
.section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.section-title {
    font-size: 22px;
    color: #667eea;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    font-weight: bold;
}

.dimension-title {
    font-size: 18px;
    color: #764ba2;
    margin: 25px 0 20px;
    padding: 10px;
    background: white;
    border-right: 4px solid #764ba2;
    font-weight: bold;
}

/* Question Groups */
.question-group {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.question-label {
    display: block;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.radio-option:hover {
    background: #f0f0f0;
}

.radio-option input[type="radio"] {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-option span {
    font-size: 15px;
    color: #34495e;
}

/* Question Items */
.question-item {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.question-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.question-text {
    display: block;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Submit Button */
.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

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

    .header-logos {
        flex-direction: column;
        gap: 15px;
    }

    .logo-left,
    .logo-right {
        flex: 0 0 auto;
    }

    .logo-image,
    .logo-university {
        max-width: 120px;
        margin: 0 auto;
    }

    .university-info-center h1 {
        font-size: 18px;
    }

    .university-info-center h2,
    .university-info-center h3 {
        font-size: 14px;
    }

    .university-info-center h4 {
        font-size: 12px;
    }

    .team-info {
        flex-direction: column;
        gap: 20px;
    }

    .radio-group.horizontal {
        flex-direction: column;
    }

    .university-info h1 {
        font-size: 18px;
    }

    .main-title {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        box-shadow: none;
    }

    .submit-btn {
        display: none;
    }
}