@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap");


* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    direction: rtl;
    color: var(--text-color-dark);
    background-color: #f4f6f9;
    min-height: 100vh;
    overflow-y: auto;
}

/* شعار الموقع */
.header-img {
    filter: none !important;
    max-height: 80px;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2e6b73 50%, var(--primary-color) 100%);
    min-height: 100vh;
    padding-top: 30px;
    padding-bottom: 60px;
    position: relative;
    overflow: visible;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
                radial-gradient(circle at 75% 85%, rgba(255,255,255,0.03) 0%, transparent 40%);
    z-index: 1;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Form */
.registration-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.registration-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    color: #1a535c;
}
.registration-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    color: #1a505c;
}

/* Inputs */
.form-group, .question-block, .form-row {
    margin-bottom: 25px;
}
.form-label, .question-title {
    display: block;
    margin-bottom: 10px;
    color: #000;
    font-weight: 500;
    font-size: 1.1rem;
}
.required-star, .required {
    color: var(--danger-color);
    margin-right: 4px;
}
.form-input, .form-control, select.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-color-dark);
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.form-input:focus, .form-control:focus, select.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Form Rows */
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-group-half { flex: 1; min-width: 250px; }

/* Radio & Checkbox */
.options-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.radio-option:hover, .checkbox-option:hover {
    background-color: #f0f0f0;
    border-color: var(--secondary-color);
}
.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-left: 10px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}
.radio-option label, .checkbox-option label {
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
}

/* Rating as Stars */
.rating-group {
    direction: ltr;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}
.rating-group input {
    display: none;
}
.rating-group label {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}
.rating-group input:checked ~ label,
.rating-group label:hover,
.rating-group label:hover ~ label {
    color: var(--secondary-color);
}

/* Submit Button */
.submit-block { text-align: center; margin-top: 40px; }
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background-color: #154249;
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    font-size: 1rem;
    text-align: center;
    max-width: 720px;
    border: 1px solid transparent;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Select options */
select.form-control option {
    background-color: var(--primary-color);
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}
.star-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
}

.stars {
  display: flex;
  flex-direction: row-reverse;
}

.stars input[type="radio"] {
  display: none;
}

.stars label {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s;
  margin: 0 2px;
}

.stars input[type="radio"]:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: #f7b538;
}
