:root {
  --bg-1: #fff7f3;
  --bg-2: #fde6dc;
  --card-bg: #ffffff;
  --ink: #3d2a24;
  --ink-soft: #6b5249;
  --accent: #c9a36a;
  --accent-deep: #a07f4a;
  --rose: #e7b8aa;
  --rose-deep: #d29585;
  --border: #f0d9cc;
  --error: #b04a4a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(99, 60, 40, 0.08), 0 2px 6px rgba(99, 60, 40, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--bg-2) 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 110%, #f5e0d2 0%, transparent 60%),
    var(--bg-1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 64px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 24px;
  border: 1px solid var(--border);
}

.card--center {
  text-align: center;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hadith {
  position: relative;
  margin: 0 0 24px;
  padding: 20px 22px 18px;
  text-align: center;
  background: linear-gradient(180deg, #fffaf5 0%, #fff5ec 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(201, 163, 106, 0.10);
}

.hadith--top {
  margin-top: 4px;
}

.hadith::before,
.hadith::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
}

.hadith::before { margin-bottom: 12px; }
.hadith::after  { margin-top: 14px; }

.hadith-ar {
  font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  font-size: 1.35rem;
  line-height: 2.05;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.hadith-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.hadith-cite {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0;
  font-weight: 500;
}

.hadith-cite .saw {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
  font-size: 1.05rem;
  vertical-align: -2px;
  margin: 0 2px;
  letter-spacing: 0;
}

.graphic-wrap {
  margin: 0 auto 8px;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdeee4, #f6d8c7);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(99, 60, 40, 0.10);
}

.graphic-wrap--small {
  max-width: 220px;
}

.graphic-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.details {
  margin: 24px 0 28px;
  padding: 18px 18px 6px;
  background: #fffaf6;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #fbe9dd;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  font-weight: 600;
}

.detail-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
}

.map-link {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.map-link:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.rsvp h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 16px;
  color: var(--ink);
  position: relative;
}

.rsvp h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin: 10px auto 0;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.field-label em {
  color: var(--rose-deep);
  font-style: normal;
  margin-left: 2px;
}

.field-help {
  font-size: 0.72rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fffcfa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 163, 106, 0.18);
  background: #fff;
}

.form-error {
  color: var(--error);
  background: #fdecec;
  border: 1px solid #f4cfcf;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin: 0;
}

.submit-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  border: none;
  padding: 13px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(160, 127, 74, 0.25);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.submit-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(160, 127, 74, 0.32);
}

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

.submit-btn--link {
  display: inline-block;
  text-decoration: none;
  margin-top: 18px;
}

.footer {
  margin-top: 24px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

.thanks {
  padding: 12px 0 24px;
}

@media (max-width: 480px) {
  .card { padding: 22px 18px 18px; }
  .details { padding: 14px 14px 4px; }
  .hadith { padding: 16px 14px 14px; }
  .hadith-ar { font-size: 1.18rem; line-height: 1.95; }
  .hadith-en { font-size: 0.96rem; }
}
