@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================
   RESET & ROOT
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f4f8f5;
  --bg-soft: #eef5f0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #f8fbf9;

  --primary: #17823c;
  --primary-dark: #126730;
  --primary-light: #24a84e;
  --primary-soft: #e9f7ee;

  --accent: #f3b21b;
  --accent-dark: #df9d05;

  --text: #17212b;
  --text-soft: #64748b;
  --text-muted: #475569;

  --border: rgba(23, 130, 60, 0.12);
  --border-strong: rgba(23, 130, 60, 0.18);

  --danger: #c62828;
  --danger-soft: #fdecec;

  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(23,130,60,0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(243,178,27,0.08), transparent 22%),
    linear-gradient(180deg, #f8fbf8 0%, #eef5f0 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

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

/* =========================
   NAVBAR
========================= */
.navbar {
  width: min(var(--container), calc(100% - 28px));
  margin: 18px auto 0;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  position: sticky;
  top: 14px;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(23, 130, 60, 0.12);
}

.logo-text h3,
.logo h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.logo-text small,
.logo small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
}

.nav-right,
.nav-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #35524a;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-item:hover {
  background: rgba(23, 130, 60, 0.09);
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-cta,
.nav-action .btn,
.btn-green,
.small-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border: none;
  box-shadow: 0 12px 24px rgba(23, 130, 60, 0.18);
}

.nav-cta:hover,
.nav-action .btn:hover,
.btn-green:hover,
.small-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
}

.icon {
  font-size: 15px;
}

.nav-text {
  font-size: 14px;
}

/* =========================
   GENERIC SECTION WRAP
========================= */
.dashboard-header,
.form-section,
.preview,
.list-section,
.surat-wrap,
.dashboard-cards {
  width: min(var(--container), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   DASHBOARD HEADER
========================= */
.dashboard-header {
  margin-top: 18px;
  margin-bottom: 14px;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(241,248,244,0.95));
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.section-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.dashboard-header h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.dashboard-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* =========================
   DASHBOARD CARDS
========================= */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 0 auto 24px;
}

.big-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 30px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.big-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: -40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.big-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  top: -20px;
  right: 80px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.dark-green {
  background: linear-gradient(135deg, #127132 0%, #199243 100%);
}

.light-green {
  background: linear-gradient(135deg, #1b9d46 0%, #23b555 100%);
}

.card-feature-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.feature-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 12px;
  font-weight: 700;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  font-size: 22px;
}

.big-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.big-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 500px;
}

.big-card button {
  position: relative;
  z-index: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  transition: 0.25s ease;
}

.big-card button:hover {
  transform: translateY(-2px);
  background: #f8fbf9;
}

/* =========================
   LIST SECTION
========================= */
.list-section {
  margin-bottom: 22px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.list-header h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.list-header a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.list-header a:hover {
  color: var(--primary-dark);
}

.list-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
  width: 100%;
}

.list-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.list-card th,
.list-card td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 130, 60, 0.08);
  font-size: 14px;
}

.list-card th {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 2px solid rgba(23, 130, 60, 0.15);
}

.list-card tbody tr:hover {
  background: rgba(23, 130, 60, 0.02);
}

.list-card a {
  color: var(--primary);
  font-weight: 700;
  transition: color 0.2s;
}

.list-card a:hover {
  color: var(--primary-dark);
}

.list-item {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.75);
  padding: 18px 20px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: 0.25s ease;
}

.list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.list-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.item-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(23,130,60,0.10), rgba(243,178,27,0.14));
  font-size: 21px;
  flex-shrink: 0;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.list-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.small-btn {
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.25s ease;
}

.small-btn:disabled {
  background: #d7dde1;
  color: #64707c;
  cursor: not-allowed;
  box-shadow: none;
}

.doc-icon {
  font-size: 20px;
  color: var(--primary);
}

.empty-state {
  justify-content: flex-start;
}

/* =========================
   FORM
========================= */
.form-section {
  margin-bottom: 30px;
}

.form-card {
  background: rgba(255,255,255,0.84);
  max-width: 760px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
}

.form-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 24px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.form-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.form-section input,
.form-section select,
.form-section textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.96);
  font-size: 14px;
  color: var(--text);
  transition: 0.25s ease;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
  outline: none;
  border-color: rgba(23,130,60,0.34);
  box-shadow: 0 0 0 5px rgba(23,130,60,0.10);
}

.form-section input::placeholder,
.form-section textarea::placeholder {
  color: #94a3b8;
}

.row {
  display: flex;
  gap: 12px;
}

.row input,
.input-group {
  flex: 1;
}

.extra-input {
  display: none;
  margin-top: -8px;
  margin-bottom: 14px;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: 0.25s ease;
}

.kirim-admin-wrap {
  text-align: center;
  margin-top: 20px;
}

/* =========================
   UPLOAD BOX
========================= */
.upload-box {
  border: 1.5px dashed rgba(23,130,60,0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(233,247,238,0.98));
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 18px;
}

.upload-icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.upload-box p {
  margin-bottom: 6px;
  color: var(--text-soft);
}

.upload-box strong {
  color: var(--text);
}

.upload-box input[type="file"] {
  margin-top: 12px;
  margin-bottom: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.hidden {
  display: none;
}

/* =========================
   PREVIEW / RESULT
========================= */
.preview {
  margin-bottom: 34px;
}

.preview-card {
  max-width: 760px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.preview-header {
  margin-bottom: 14px;
}

.preview-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.preview-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.template-box {
  background: rgba(255,255,255,0.88);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.80);
  box-shadow: var(--shadow-sm);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text);
  backdrop-filter: blur(14px);
}

.template-box pre {
  white-space: pre-wrap;
  margin: 0;
}

/* =========================
   AUTH
========================= */
.auth-container {
  width: min(420px, calc(100% - 32px));
  margin: 90px auto;
  background: rgba(255,255,255,0.84);
  padding: 34px 28px;
  border-radius: 28px;
  text-align: center;
  box-sizing: border-box;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
}

.auth-container h2 {
  margin-bottom: 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-container p {
  color: var(--text-soft);
  font-size: 14px;
}

.auth-container input {
  width: 100%;
  padding: 14px 16px;
  margin-top: 15px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-sizing: border-box;
  transition: 0.25s ease;
}

.auth-container input:focus {
  outline: none;
  border-color: rgba(23,130,60,0.34);
  box-shadow: 0 0 0 5px rgba(23,130,60,0.10);
}

.auth-container button {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease;
  box-shadow: 0 12px 24px rgba(23,130,60,0.16);
}

.auth-container button:hover {
  transform: translateY(-2px);
}

.switch {
  margin-top: 15px;
  font-size: 14px;
}

.switch a {
  color: var(--primary);
  font-weight: 700;
}

/* =========================
   FEATURES
========================= */
.features {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 20px 24px;
  flex-wrap: wrap;
}

.card {
  background: rgba(255,255,255,0.88);
  padding: 24px;
  width: 260px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.78);
}

.feature-card {
  text-align: center;
  transition: 0.25s ease;
}

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

.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(23,130,60,0.10), rgba(243,178,27,0.12));
  font-size: 28px;
}

/* =========================
   SURAT / PREVIEW UNDANGAN
========================= */
.surat-wrap {
  margin-top: 20px;
  margin-bottom: 28px;
  max-width: 760px;
  width: min(100%, 760px);
}

.lembar-surat {
  background: #ffffff;
  color: #000000;
  width: 100%;
  min-height: auto;
  margin: 0 auto;
  padding: 24px 26px 30px 26px;
  box-sizing: border-box;
  font-family: "Times New Roman", serif;
  font-size: 14pt;
  line-height: 1.5;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  border-radius: 18px;
}

.kop-surat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.kop-logo {
  width: 150px;
  flex-shrink: 0;
}

.kop-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.kop-text {
  flex: 1;
  text-align: center;
}

.kop-text .baris-1 {
  font-size: 15pt;
  font-weight: bold;
  margin: 0;
}

.kop-text .baris-2 {
  font-size: 14pt;
  font-weight: bold;
  margin: 0;
}

.kop-text .baris-3,
.kop-text .baris-4,
.kop-text .baris-5 {
  font-size: 11pt;
  margin: 1px 0;
}

.garis-tebal {
  border-top: 2px solid #000000;
  margin-top: 8px;
}

.garis-tipis {
  border-top: 1px solid #000000;
  margin-top: 2px;
  margin-bottom: 24px;
}

.meta-surat {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.meta-surat td {
  vertical-align: top;
  padding: 2px 0;
  font-size: 13pt;
  border: none;
}

.meta-label {
  width: 90px;
}

.meta-sep {
  width: 14px;
  text-align: center;
}

.meta-tanggal {
  text-align: right;
  white-space: nowrap;
  padding-left: 20px;
}

.tujuan {
  margin-bottom: 22px;
  font-size: 13pt;
}

.tujuan div {
  margin: 0;
}

.paragraf {
  text-align: justify;
  text-indent: 40px;
  margin-bottom: 16px;
  font-size: 13pt;
}

.detail-rapat {
  border-collapse: collapse;
  margin-left: 55px;
  margin-top: 8px;
  margin-bottom: 22px;
  font-size: 13pt;
}

.detail-rapat td {
  padding: 3px 0;
  vertical-align: top;
  border: none;
}

.detail-label {
  width: 130px;
}

.detail-sep {
  width: 16px;
  text-align: center;
}

.ttd {
  width: 280px;
  margin-left: auto;
  margin-top: 40px;
  text-align: center;
  font-size: 13pt;
}

.ttd .jabatan {
  text-align: left;
  margin: 0;
}

.ruang-ttd {
  height: 80px;
}

/* =========================
   MISC
========================= */
.surat {
  background: #ffffff;
  color: #000000;
  padding: 36px 42px;
  font-family: "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
}

.card-summary {
  background: rgba(255,255,255,0.86);
  border-radius: 24px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.76);
  backdrop-filter: blur(14px);
}

.card-summary h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.summary-box {
  background: linear-gradient(135deg, #f8fbf9, #f1f8f3);
  padding: 16px;
  border-radius: 18px;
  border-left: 5px solid var(--primary);
}

.summary-box pre {
  white-space: pre-wrap;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-muted);
}

/* =========================
   OFFICIAL GOVERNMENT STYLE
========================= */
body.official-page {
  background:
    linear-gradient(180deg, #f7faf8 0%, #edf3ef 100%);
}

.official-navbar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 88, 44, 0.10);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.official-navbar .nav-item {
  color: #2d4738;
  font-weight: 600;
}

.official-navbar .nav-item:hover {
  background: rgba(20, 88, 44, 0.06);
  color: #14582c;
}

.official-navbar .nav-cta {
  background: #1f8f43;
  color: #ffffff;
  box-shadow: none;
}

.official-navbar .nav-cta:hover {
  background: #176b31;
}

.hero.official-hero {
  min-height: 88vh;
  margin-top: -92px;
  padding: 150px 20px 90px;
  background:
    linear-gradient(rgba(13, 73, 35, 0.82), rgba(13, 73, 35, 0.82)),
    url("../images/Masjid-Agung.jpg") center/cover no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.18)
  );
}

.official-hero .overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.18)
  );
}

.official-shell {
  width: min(1180px, 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100%);
}

.official-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.official-content h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #dcebdd;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.03rem;
  line-height: 1.8;
}

.official-content .hero-desc {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
}

.official-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.official-buttons .hero-btn.primary {
  background: #f0b323;
  color: #1e293b;
  box-shadow: none;
}

.official-buttons .hero-btn.primary:hover {
  background: #d99c0f;
}

.official-buttons .hero-btn.secondary {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: none;
}

.official-buttons .hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.25s ease;
}

.official-visual {
  display: flex;
  justify-content: center;
}

.official-preview-frame {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.10);
  padding: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.official-preview-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.intro-section {
  padding: 54px 20px 30px;
  background: #f5f8f6;
}

.intro-container {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.intro-card {
  background: #ffffff;
  border: 1px solid #e3ece5;
  border-radius: 24px;
  padding: 34px 36px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.intro-card h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
  color: #183225;
  letter-spacing: -0.03em;
}

.intro-card p {
  font-size: 15px;
  color: #526270;
  line-height: 1.8;
  margin-bottom: 12px;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.official-footer {
  background: linear-gradient(135deg, #0f2a1d, #123826);
  color: #e8f1eb;
  margin-top: 40px;
  border-top: 4px solid #d4af37;
}

.footer-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 18px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand-head img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
}

.footer-brand-head h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: #ffffff;
}

.footer-brand-head p {
  margin: 0;
  color: #c7d5cb;
  font-size: 14px;
}

.footer-desc {
  color: #c9d7cd;
  line-height: 1.8;
  font-size: 14px;
  max-width: 420px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #c9d7cd;
  line-height: 1.7;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 18px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #b8c8bd;
  margin: 0;
}

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

  .official-content {
    text-align: center;
  }

  .official-content .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .official-buttons {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .navbar {
    width: calc(100% - 20px);
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: 24px;
    top: 10px;
  }

  .dashboard-header,
  .form-section,
  .preview,
  .list-section,
  .surat-wrap,
  .dashboard-cards {
    width: calc(100% - 20px);
  }

  .dashboard-header {
    padding: 24px 20px;
  }

  .big-card {
    padding: 26px 22px;
  }

  .form-card,
  .template-box {
    padding: 24px;
  }

  .row {
    flex-direction: column;
    gap: 12px;
  }

  .lembar-surat {
    width: 100%;
    min-height: auto;
    padding: 24px;
  }

  .kop-surat {
    flex-direction: column;
  }

  .kop-logo {
    width: 80px;
  }

  .meta-tanggal {
    text-align: left;
    padding-left: 0;
  }

  .detail-rapat {
    margin-left: 0;
  }

  .ttd {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero.official-hero {
    min-height: auto;
    margin-top: -86px;
    padding: 120px 16px 60px;
  }

  .official-preview-frame img {
    height: 260px;
  }

  .intro-card {
    padding: 26px 20px;
  }

  .intro-card h2,
  .dashboard-header h2,
  .form-card h3,
  .preview-header h3 {
    font-size: 22px;
  }

  .list-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .small-btn {
    width: 100%;
  }

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

  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .logo img {
    width: 40px;
    height: 40px;
  }

  .logo-text h3,
  .logo h3 {
    font-size: 15px;
  }

  .logo-text small,
  .logo small {
    font-size: 11px;
  }

  .big-card h3 {
    font-size: 22px;
  }

  .list-item-left {
    align-items: flex-start;
  }

  .item-icon-circle {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
}

/* =========================
   FIX RADIO NOTULENSI (FINAL)
========================= */

.opsi-generate-box {
  margin-top: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.opsi-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.opsi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.opsi-item:last-child {
  margin-bottom: 0;
}

/* 🔥 INI YANG PALING PENTING (FIX BUG KAMU) */
.opsi-item input[type="radio"] {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
  transform: scale(1.2);
  cursor: pointer;
}

/* teks */
.opsi-item span {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}

/* =========================
   LOADING & PROGRESS
========================= */
.loading-text {
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.loading-spinner {
  font-size: 24px;
  margin-bottom: 10px;
  animation: spin 1s linear infinite;
}

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

.loading-content strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 16px;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#progressText {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

#currentStep {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 8px;
  font-style: italic;
}