@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;700;800;900&display=swap');

:root{
  --red:#C8102E;
  --redDark:#8E0B22;

  --ink:#0f172a;
  --muted:#64748b;

  --bg:#f6f7f9;
  --card:#ffffff;

  --line:#e5e7eb;
  --lineStrong:#cbd5e1;

  --radius:18px;
  --shadow:0 14px 30px rgba(0,0,0,.08);
  --focus: rgba(200,16,46,.18);

  --fieldInset: inset 0 0 0 1px rgba(15,23,42,.10);
}

/* =========================
   Base (لا يخص الهيدر/الفوتر)
   ========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:"Tajawal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
}

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
}

/* =========================
   Layout (المحتوى فقط)
   ========================= */
main.wrap{
  padding-top:22px;
  padding-bottom:26px;
}

/* صفحات form */
.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
.hero--single{ grid-template-columns:1fr; }

.hero.hero--center{
  display:flex;
  justify-content:center;
}

@media (max-width:900px){
  .hero{ grid-template-columns:1fr; }
}

/* success.php أو أي صفحة تستخدم container */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:22px 18px 26px;
}

/* =========================
   Cards (المحتوى فقط)
   ========================= */
.hero__card,
.side__card,
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

.hero__card.hero__card--half{
  width:50%;
  max-width:560px;
}
@media (max-width:900px){
  .hero__card.hero__card--half{
    width:100%;
    max-width:100%;
  }
}

/* =========================
   Steps
   ========================= */
.steps{
  display:flex;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.step{
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:900;
  background:#fff;
}

/* الدوائر (في صفحات النموذج) */
.hero .step{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* النصية (إن وُجدت) */
.card .step{
  width:auto;
  height:auto;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
}

.step--active,
.step.active{
  border-color:var(--red);
  color:var(--red);
  box-shadow:0 0 0 6px rgba(200,16,46,.10);
}

/* =========================
   Typography
   ========================= */
.h1{
  margin:0 0 6px;
  font-size:22px;
  font-weight:900;
}
.p{
  margin:0 0 14px;
  color:var(--muted);
  font-weight:700;
  line-height:1.8;
}

/* =========================
   Grid helpers
   ========================= */
.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width:900px){
  .grid{ grid-template-columns:1fr; }
}
.col{ min-width:0; }

.hr{ height:1px; background:var(--line); margin:14px 0; }
.hidden{ display:none !important; }

/* =========================
   Forms (مُعزول — لا يؤثر على الهيدر/الفوتر)
   ========================= */

/* استخدم هذا الكلاس على الفورم: class="travel-form" */
.travel-form{
  margin-top:8px;
}

/* label/input المعزولة */
.travel-form .form-label{
  display:block;
  margin:0 0 8px;
  font-weight:900;
}

.travel-form .form-input{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid var(--lineStrong);
  outline:none;
  font-size:15px;
  font-weight:700;
  font-family:inherit;
  background:#fff;
  box-shadow: var(--fieldInset);
  background-clip: padding-box;
}

.travel-form .form-input:hover{
  border-color:#94a3b8;
}

.travel-form .form-input:focus{
  border-color:var(--red);
  box-shadow: 0 0 0 5px var(--focus), var(--fieldInset);
}

/* textarea */
.travel-form textarea.form-input{
  resize:vertical;
}

/* hint */
.travel-form .form-hint{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}

.dot{ margin:0 6px; opacity:.7; }

/* select arrow RTL */
.travel-form select.form-input{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-left:44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    18px calc(1em + 2px),
    23px calc(1em + 2px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}

/* دعم سريع لو بعض الصفحات ما زالت تستخدم .label/.input:
   لن يعمل إلا داخل travel-form (يعني ما يأثر على الهيدر/الفوتر) */
.travel-form .label{ display:block; margin:0 0 8px; font-weight:900; }
.travel-form .input{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid var(--lineStrong);
  outline:none;
  font-size:15px;
  font-weight:700;
  font-family:inherit;
  background:#fff;
  box-shadow: var(--fieldInset);
  background-clip: padding-box;
}
.travel-form .input:hover{ border-color:#94a3b8; }
.travel-form .input:focus{ border-color:var(--red); box-shadow:0 0 0 5px var(--focus), var(--fieldInset); }
.travel-form textarea.input{ resize:vertical; }
.travel-form select.input{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  padding-left:44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    18px calc(1em + 2px),
    23px calc(1em + 2px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}

/* actions */
.actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}

/* =========================
   Buttons (محتوى فقط)
   ========================= */
.btn{
  border:none;
  cursor:pointer;
  font-family:inherit;
  font-weight:900;
  padding:11px 14px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .06s ease, opacity .2s ease;
}
.btn:active{ transform:translateY(1px); }

.btn--primary{
  color:#fff;
  background:linear-gradient(135deg, var(--red), var(--redDark));
}

.btn--outline{
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
}

/* =========================
   Alerts (محتوى فقط)
   ========================= */
.alert{
  border-radius:14px;
  padding:10px 12px;
  margin:0 0 12px;
  font-weight:900;
  font-size:13px;
}
.alert--danger{
  background:#fff5f5;
  border:1px solid #fecaca;
  color:#991b1b;
}

/* success box (محتوى فقط) */
.success{
  background:#ecfdf5;
  border:1px solid #bbf7d0;
  color:#065f46;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  margin:10px 0 14px;
}
.note{ color:var(--muted); font-weight:700; line-height:1.8; }
