:root {
  /* Palette dari logo Nizamia Andalusia */
  --brand: #0071bc;
  --brand-mid: #0086d6;
  --brand-bright: #2a9fe0;
  --brand-deep: #00558f;
  --brand-soft: #d9eef9;
  --accent: #e1972f;
  --accent-bright: #f0b24a;
  --accent-ink: #7a4a0f;
  --ink: #0a0a0a;
  --ink-soft: #4a5560;
  --paper: #f5f7f9;
  --line: rgba(0, 113, 188, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 50px rgba(0, 40, 80, 0.14);
  --radius: 1.35rem;
  --radius-sm: 0.9rem;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Logo proporsional — ikuti rasio asli file, jangan distorsi */
.brand__logo,
.landing__mark {
  width: var(--logo-size, 2.75rem);
  height: auto;
  max-width: 100%;
  aspect-ratio: 512 / 462;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(242, 246, 245, 0.78);
  border-bottom: 1px solid var(--line);
}

.page-home .site-header {
  position: absolute;
  inset-inline: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.page-home .brand__app,
.page-home .brand__org {
  color: #f4fbfb;
}

.page-home .brand__org {
  color: rgba(244, 251, 251, 0.72);
}

.site-header__inner,
.site-footer__inner,
.form-page__inner {
  width: min(100% - (var(--space) * 2), var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__logo {
  --logo-size: 2.75rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand__app {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--brand);
}

.brand__org {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ========== Modern landing (home) ========== */
.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  color: #f4fbfb;
}

.landing__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(145deg, #050505 0%, #0a1620 38%, #0071bc 100%);
}

.landing__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 20%, rgba(0, 113, 188, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 40% at 88% 12%, rgba(225, 151, 47, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 45% at 70% 88%, rgba(0, 0, 0, 0.55), transparent 60%);
}

.landing__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}

.landing__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.landing__orb--a {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(0, 113, 188, 0.55), transparent 68%);
  animation: drift 14s ease-in-out infinite alternate;
}

.landing__orb--b {
  width: 22rem;
  height: 22rem;
  top: 18%;
  right: -5rem;
  background: radial-gradient(circle, rgba(225, 151, 47, 0.32), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.landing__orb--c {
  width: 18rem;
  height: 18rem;
  bottom: 8%;
  left: 35%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2.5%, 4%, 0) scale(1.08); }
}

.landing__inner {
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 7.5rem) 0 clamp(1.75rem, 4vh, 2.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vh, 3.5rem);
  align-content: start;
  justify-items: stretch;
}

.landing__intro {
  width: min(100%, 40rem);
  margin-inline: auto;
  text-align: center;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing__mark {
  --logo-size: clamp(5.75rem, 16vw, 8rem);
  margin: 0 auto 1.35rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

.landing__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

.landing__title {
  margin: 0 auto 0.85rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: rgba(244, 251, 251, 0.88);
}

.landing__lead {
  margin: 0 auto;
  max-width: 28rem;
  color: rgba(244, 251, 251, 0.68);
}

.landing__categories {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.category-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 56rem;
}

.category-rail > li {
  flex: 0 1 13.5rem;
  width: 13.5rem;
  max-width: 100%;
}

/* Mobile: horizontal touch rail */
@media (max-width: 719px) {
  .landing__inner {
    padding-bottom: 1.25rem;
  }

  .category-rail {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--space) * -1);
    padding: 0.15rem var(--space) 0.85rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-rail::-webkit-scrollbar {
    display: none;
  }

  .category-rail > li {
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
  }

  .category-tile {
    width: 9.5rem;
    min-height: 9.75rem;
    padding: 1.15rem 0.9rem 1rem;
  }

  .category-tile__name {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .category-tile__action {
    top: 0.55rem;
    right: 0.55rem;
    min-height: 1.75rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
    gap: 0.25rem;
  }
}

@media (min-width: 720px) and (max-width: 1039px) {
  .category-rail > li {
    flex-basis: 14rem;
    width: 14rem;
  }
}

.category-tile {
  --i: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 10.5rem;
  padding: 1.35rem 1.15rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
  animation: rise 750ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 70ms + 80ms);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 151, 47, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  outline: none;
}

.category-tile:hover::before,
.category-tile:focus-visible::before {
  opacity: 1;
}

.category-tile__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  color: var(--brand-deep);
  background: linear-gradient(145deg, #ffffff, var(--brand-soft));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.category-tile__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.category-tile__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #f4fbfb;
}

.category-tile__action {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.category-tile__action-arrow {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-tile:hover .category-tile__action,
.category-tile:focus-visible .category-tile__action {
  background: var(--accent-bright);
  box-shadow: 0 8px 18px rgba(225, 151, 47, 0.35);
}

.category-tile:hover .category-tile__action-arrow,
.category-tile:focus-visible .category-tile__action-arrow {
  /* Panah kanan → diagonal kanan atas */
  transform: rotate(-45deg);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form page */
.form-page {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(3rem, 7vw, 4.5rem);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(0, 113, 188, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(225, 151, 47, 0.12), transparent 50%),
    var(--paper);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--brand-mid);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.form-page__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.form-page__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  color: #f4fbfb;
  background: var(--brand);
  flex: 0 0 auto;
}

.form-page__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.form-page__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--brand);
}

.form-page__lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.guest-form {
  display: grid;
  gap: 1.25rem;
}

.form-section {
  margin: 0;
  padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.form-section legend {
  display: inline-block;
  width: auto;
  max-width: calc(100% - 0.5rem);
  margin-left: 0.15rem;
  padding: 0.45rem 1.1rem 0.45rem 0.95rem;
  border: 1px solid rgba(0, 113, 188, 0.18);
  /* Sudut kiri lancip, kanan oval */
  border-radius: 0.35rem 999px 999px 0.35rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  box-shadow: 0 8px 18px rgba(0, 113, 188, 0.22);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #fff;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > label,
.field__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.req {
  color: #a33b2d;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.18);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.radio-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.radio-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.radio-option__text {
  line-height: 1.2;
}

.radio-option:hover {
  border-color: var(--brand-mid);
  color: var(--brand);
  background: var(--brand-soft);
}

.radio-option:has(input:focus-visible) {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.18);
}

.radio-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: 0 0 0 1px rgba(0, 113, 188, 0.12);
}

.radio-option:has(input:checked) input {
  accent-color: var(--brand);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn--primary {
  background: var(--brand);
  color: #f4fbfb;
}

.btn--primary:hover {
  background: var(--brand-mid);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--brand);
}

.btn--ghost:hover {
  border-color: var(--brand-mid);
  background: rgba(255, 255, 255, 0.7);
}

.btn--sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.btn--danger {
  color: #a33b2d;
  border-color: rgba(163, 59, 45, 0.35);
}

.btn--danger:hover {
  border-color: #a33b2d;
  background: rgba(163, 59, 45, 0.08);
  color: #8a2f24;
}

.repeater {
  display: grid;
  gap: 1rem;
}

.repeater__list {
  display: grid;
  gap: 0.85rem;
}

.repeater__list:empty {
  display: none;
}

.repeater__item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.repeater__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.repeater__item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.page-home .site-footer {
  position: relative;
  margin-top: -1px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
}

.page-home .site-footer p {
  color: rgba(244, 251, 251, 0.55);
}

.site-footer__inner {
  padding: 1.1rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
