:root{
  --main:#0d7276;        /* teal main */
  --accent:#d4af37;      /* gold accent */
  --bg-dark: rgba(4,28,28,0.64);
  --card-bg: rgba(255,255,255,0.98);
  --muted:#6b7280;
  --radius:16px;
}
html,body{
  height:100%;
  margin:0;
  font-family:"Open Sans",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: var(--main);
  color: #042028;
}

/* geometric pattern overlay using svg data-URI for subtle mosque-style geometry */
body::before{
  content:'';
  position:fixed;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 800 450'%3E%3Cdefs%3E%3Cpattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='%230a3b3b' fill-opacity='0.05'/%3E%3C/path%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:0.45;
  pointer-events:none;
  z-index:0;
}

/* color overlay */
.overlay {
  position:fixed;
  inset:0;
  background: linear-gradient(180deg, rgba(3,18,18,0.40) 0%, rgba(2,12,12,0.44) 100%), rgba(1,8,8,0.12);
  z-index:0;
}

.page {
  position:relative;
  z-index:1;
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}

header{
  width:100%;
  padding:28px 20px;
  display:flex;
  justify-content:center;
  align-items:center;
  box-sizing:border-box;
}

.brand {
  display:flex;
  align-items:center;
  gap:14px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}


.logo-circle{
  width:56px;height:56px;border-radius:12px;
  background: linear-gradient(135deg,var(--accent), #f2d47c);
  box-shadow:0 8px 24px rgba(13,114,118,0.14);
  display:flex;align-items:center;justify-content:center;
  color:var(--main); font-weight:700; font-family:'Poppins',sans-serif;
  font-size:18px;
}
.clinic-name{
  color: #fff;
  font-family: 'Poppins',sans-serif;
  font-weight:700;
  font-size:20px;
  letter-spacing:0.6px;
  line-height:1;
  text-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

main {
  width:100%;
  max-width:1100px;
  margin: 18px;
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items:start;
}

/* Hero / left column */
.hero {
  padding:36px;
  color: white;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 10px 40px rgba(2,12,12,0.28);
}

.hero h1{
  margin:0;
  font-family:'Poppins',sans-serif;
  font-size:42px;
  line-height:1.02;
  color:#fff;
  text-shadow:0 8px 30px rgba(2,9,9,0.48);
}
.hero .subtitle{
  margin-top:12px;
  color: #eaf6f5;
  font-size:16px;
  max-width:760px;
}

/* Taglines: Arabic calligraphy + English script */
.taggroup {
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
.arabic {
  font-family: 'Noto Naskh Arabic', serif;
  color: #fff7ec;
  font-size:20px;
  opacity:0.95;
  transform: translateX(-2px);
  /* subtle glow */
  text-shadow: 0 6px 22px rgba(0,0,0,0.45);
}
.eng {
  font-family: 'Great Vibes', cursive;
  color: var(--accent);
  font-size:42px;
  letter-spacing:1px;
  margin-top:6px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.52);
}

.hero p.lead {
  margin-top:18px;
  color: #e9f7f6;
  font-size:15px;
  max-width:640px;
  line-height:1.6;
}

/* Right column: booking card */
.card {
  background: var(--card-bg);
  border-radius:14px;
  padding:18px;
  box-shadow: 0 20px 40px rgba(2,12,12,0.12);
  position:sticky;
  top:28px;
}

.card h3{
  margin:0 0 8px 0;
  font-family:'Poppins',sans-serif;
  color:var(--main);
  font-size:20px;
}
.muted { color:var(--muted); font-size:13px; margin-bottom:12px; }

label { display:block; font-size:13px; color:#234; margin-top:10px; margin-bottom:6px; font-weight:600; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea, input[type="date"] {
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e6eef0;
  font-size:14px;
  box-sizing:border-box;
  outline:none;
}
textarea { min-height:92px; resize:vertical; }

.slots-grid {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:8px;
  margin-top:8px;
}

.slot {
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(13,114,118,0.08);
  background: linear-gradient(180deg,#e9fffd,#f8fffe);
  color: var(--main);
  font-weight:700;
  cursor:pointer;
  text-align:center;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform .12s ease;
}
.slot:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(13,114,118,0.08); }
.slot.disabled {
  background: #e0e0e0;
  color:#7a7a7a;
  cursor:not-allowed;
  opacity: 0.6;
  box-shadow:none;
  pointer-events: none;
}
.slot.selected {
  box-shadow: 0 10px 28px rgba(13,114,118,0.12);
  border:1px solid rgba(13,114,118,0.22);
  background: linear-gradient(180deg,#e2fff9,#dcfffb);
}

.row { display:flex; gap:10px; }
.actions { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top:14px; }
.btn {
  padding:10px 14px;
  border-radius:10px;
  background: var(--main);
  color:#fff; font-weight:700;
  border:none; cursor:pointer;
  box-shadow: 0 8px 18px rgba(13,114,118,0.18);
}
.btn.secondary {
  background: transparent;
  color: var(--main);
  border: 1px solid rgba(13,114,118,0.12);
}

.note { font-size:12px; color:var(--muted); margin-top:10px; }

/* confirmation modal */
.modal {
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(2,8,8,0.45); z-index:60; opacity:0; pointer-events:none; transition:opacity .18s;
}
.modal.show { opacity:1; pointer-events:all; }
.modal-card {
  background:white; color:#042028; padding:18px; border-radius:14px; max-width:520px; width:92%;
  box-shadow: 0 30px 80px rgba(2,12,12,0.3);
}
.modal h4 { margin:0 0 6px 0; font-family:'Poppins',sans-serif; color:var(--main); }
.modal p { color: #334; margin:6px 0 0 0; }

footer {
  margin: 40px 0 80px 0;
  text-align:center;
  color:#e6f6f6;
  opacity:0.9;
}

/* Responsive */
@media (max-width: 980px){
  main { grid-template-columns: 1fr; padding: 18px; }
  .hero { order:2; margin-top:12px; }
  .card { order:1; width:100%; position:relative; top:auto; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:520px){
  .eng { font-size: 28px; }
  .hero h1 { font-size: 28px; }
  .slots-grid { grid-template-columns: repeat(1, 1fr); }
}
