/* =========================================================
   PMB FAST USTEDI — Landing Page Styles
   Mobile-first, responsive
   ========================================================= */

:root {
  --primary: #0d3b8c;
  --primary-dark: #082a66;
  --primary-light: #e8effc;
  --accent: #f5b301;
  --accent-dark: #d99a00;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --text: #1f2937;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 59, 140, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 59, 140, 0.16);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-height: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 820px;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 46px;
  text-align: center;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid rgba(245, 179, 1, 0.5);
  outline-offset: 2px;
}

.btn-sm {
  padding: 8px 18px;
  min-height: 40px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ffc933);
  color: #3b2f00;
  box-shadow: 0 6px 18px rgba(245, 179, 1, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 59, 140, 0.3);
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 58px;
  width: auto;
  border-radius: 12px;
  background: #fff;
  padding: 5px;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(245, 179, 1, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.navbar:not(.scrolled) .nav-links a:not(.btn) {
  color: #fff;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-cta {
  color: #3b2f00 !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1001;
}

.navbar.scrolled .hamburger {
  background: var(--primary-light);
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.scrolled .hamburger span {
  background: var(--primary-dark);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("gedung ustedi.jpeg") center/cover no-repeat;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 42, 102, 0.82) 0%,
    rgba(13, 59, 140, 0.75) 45%,
    rgba(8, 42, 102, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(245, 179, 1, 0.18);
  border: 1px solid rgba(245, 179, 1, 0.55);
  color: #ffd866;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--accent);
}

.hero-university {
  margin: -10px auto 18px;
  max-width: 680px;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-badge {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 22px;
  min-width: 160px;
}

.badge-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffd866;
  letter-spacing: 0.5px;
}

.badge-item small {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- SECTION UMUM ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-form {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #eef3fb 100%);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- FITUR ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- PRODI ---------- */
.prodi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.prodi-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prodi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.prodi-icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 12px;
}

.prodi-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.prodi-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- ALUR ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 22px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1e5ac9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(13, 59, 140, 0.3);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FORMULIR ---------- */
.form-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 4vw, 44px);
}

.form-card fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

.form-card legend {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--primary-light);
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
  min-width: 0;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.req {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-group textarea {
  resize: vertical;
  min-height: 84px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 59, 140, 0.12);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
  background: #fef2f2;
}

.error-msg {
  display: block;
  min-height: 16px;
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 4px;
  font-weight: 500;
}

.error-msg:empty {
  min-height: 16px;
}

/* Radio pill */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-pill {
  flex: 1;
  min-width: 110px;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.radio-pill input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.radio-pill input:focus-visible + span {
  outline: 3px solid rgba(13, 59, 140, 0.3);
}

.form-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.form-note p {
  font-size: 0.85rem;
  color: #7c5c00;
}

/* Alert error global */
.form-alert {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Sukses */
.form-success {
  text-align: center;
  padding: 40px 16px;
}

.success-icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
  animation: pop 0.4s ease;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 22px;
  font-size: 0.95rem;
}

@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Loader pada tombol */
.btn-loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(59, 47, 0, 0.3);
  border-top-color: #3b2f00;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- KONTAK ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

a.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.contact-card small {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  color: #ffd866;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  /* Nav mobile */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: calc(var(--nav-height) + 16px) 26px 30px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a:not(.btn) {
    font-size: 1rem;
    padding: 10px 0;
    color: var(--text) !important;
    width: 100%;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 14px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-height) + 24px);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .badge-item {
    min-width: 46%;
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Kurangi ukuran tombol raksasa di layar sangat kecil */
@media (max-width: 380px) {
  .btn-lg {
    padding: 13px 18px;
  }
}
