
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #303a25;
  --primary-light: #485638;
  --primary-dark: #20291b;
  --gold: #b49a55;
  --gold-light: #e5d8ae;
  --background: #f5f5ef;
  --white: #ffffff;
  --text: #292d22;
  --muted: #858878;
  --border: #e9eadf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 35px 16px;
  min-height: 100vh;
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(180,154,85,0.08), transparent 25%),
    radial-gradient(circle at 90% 30%, rgba(48,58,37,0.06), transparent 28%),
    var(--background);
}

.page-container {
  width: 100%;
  max-width: 850px;
  margin: auto;
}

/* رأس الصفحة */

.header {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 30px 35px;
  margin-bottom: 25px;
  box-shadow: 0 10px 35px rgba(35, 45, 25, 0.055);
}

.header::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px solid rgba(180,154,85,0.17);
  box-shadow:
    0 0 0 18px rgba(180,154,85,0.035),
    0 0 0 38px rgba(180,154,85,0.025);
  pointer-events: none;
}

.header-top {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 120px;
  z-index: 1;
}

.university-logo {
  display: block;
  width: 150px;
  height: 115px;
  object-fit: contain;
  object-position: right top;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.university-logo:hover {
  transform: scale(1.04);
}

.header-label {
  position: absolute;
  left: 0;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  background: #f7f8f3;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 15px;
}

.label-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.header-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 5px 0 0;
}

.eyebrow {
  display: inline-block;
  color: #927a3d;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
}

.header h1 {
  color: var(--primary);
  font-size: 29px;
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.6;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  margin: 0;
}

.header-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 20px auto 0;
}

.header-decoration span {
  height: 4px;
  border-radius: 10px;
  background: var(--gold);
}

.header-decoration span:nth-child(1),
.header-decoration span:nth-child(3) {
  width: 17px;
  opacity: 0.45;
}

.header-decoration span:nth-child(2) {
  width: 45px;
}

/* بطاقة الاستبيان */

.survey-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 35px rgba(35, 45, 25, 0.055);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 27px;
}

.section-label {
  color: #a18a4e;
  font-size: 11px;
  font-weight: 800;
}

.card-heading h2 {
  color: var(--primary);
  font-size: 21px;
  font-weight: 900;
  margin: 3px 0;
}

.card-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold);
  background: #f7f5ed;
  border: 1px solid #eee8d7;
  border-radius: 14px;
  font-size: 25px;
}

/* الأسئلة */

.question {
  margin-bottom: 27px;
}

.question-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.9;
  margin-bottom: 13px;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option,
.question label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #fafbf7;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: 0.2s ease;
  line-height: 1.8;
}

.option:hover,
.question label:hover {
  background: #f2f4ec;
  border-color: #aab194;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fcfcf9;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(72,86,56,0.08);
}

/* زر الإرسال */

.submit-button {
  width: 100%;
  min-height: 55px;
  padding: 13px 20px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #3e4a2e, #26311f);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(48,58,37,0.15);
  transition: 0.25s ease;
}

.submit-button:hover {
  background: linear-gradient(135deg, #536442, #303a25);
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(48,58,37,0.2);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-arrow {
  color: var(--gold-light);
  font-size: 19px;
}

/* رسالة النجاح */

.success-message {
  text-align: center;
  padding: 35px 15px;
}

.success-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf3e7;
  color: #4b7136;
  border-radius: 50%;
  font-size: 35px;
  font-weight: 800;
}

.success-message h2 {
  color: var(--primary);
  font-size: 21px;
}

.success-message p {
  color: var(--muted);
  font-size: 14px;
}

/* التذييل */

.footer {
  text-align: center;
  padding: 28px 10px 15px;
  color: var(--muted);
  font-size: 13px;
}

.footer-line {
  width: 55px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 15px;
  border-radius: 10px;
}

.footer p {
  color: var(--primary);
  font-weight: 900;
  margin: 0 0 3px;
}

.footer span {
  font-size: 12px;
}

/* الجوال */

@media (max-width: 600px) {
  body {
    padding: 13px 10px;
  }

  .header {
    padding: 15px 16px 25px;
    border-radius: 17px;
    margin-bottom: 15px;
  }

  .header-top {
    min-height: 95px;
  }

  .university-logo {
    width: 112px;
    height: 88px;
  }

  .header-label {
    top: 5px;
    left: 0;
    font-size: 10px;
    padding: 6px 9px;
  }

  .header-content {
    padding-top: 0;
  }

  .eyebrow {
    font-size: 11px;
  }

  .header h1 {
    font-size: 23px;
  }

  .subtitle {
    font-size: 12px;
  }

  .survey-card {
    padding: 20px 15px;
    border-radius: 16px;
  }

  .card-heading h2 {
    font-size: 19px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .question-title {
    font-size: 15px;
  }

  .option,
  .question label {
    padding: 11px 12px;
    font-size: 13px;
  }

  .submit-button {
    font-size: 15px;
  }
}
