:root{
  --teal-1:#12a894;
  --teal-2:#1ec2a6;
  --accent:#845EC2;      /* pengganti warna merah */
  --accent-light:#a389d4;
  --dark:#20303c;
  --muted:#7b8a97;
  --bg:#eef1f4;
  --card-bg:#f6f8fa;
  --success:#22c55e;
  --warning:#f59e0b;
  --danger:#ef4444;
  --info:#3b82f6;
  --radius-lg:22px;
  --radius-md:16px;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:'Poppins','Segoe UI',Arial,sans-serif;
  background:var(--bg);
  color:var(--dark);
}
a{text-decoration:none;color:inherit;}
.app-frame{
  max-width:480px;
  margin:0 auto;
  min-height:100vh;
  background:var(--bg);
  position:relative;
  padding-bottom:90px;
}
.app-header{
  background:linear-gradient(135deg,var(--teal-1),var(--teal-2));
  padding:22px 20px 70px;
  color:#fff;
  position:relative;
  border-bottom-left-radius:0;
}
.app-header .brand{
  display:flex;align-items:center;justify-content:space-between;
}
.app-header .brand-left{display:flex;align-items:center;gap:12px;}
.app-header .brand-left .logo-badge{
  width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.92);
  display:flex;align-items:center;justify-content:center;font-size:20px;padding:4px;flex-shrink:0;
}
.app-header .brand-left .logo-badge .logo-img{
  width:100%;height:100%;object-fit:contain;display:block;
}
.app-header .brand-left h1{font-size:17px;margin:0;letter-spacing:.4px;font-weight:800;line-height:1.15;}
.app-header .login-btn{
  width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;border:none;cursor:pointer;
}

.access-card{
  background:var(--card-bg);
  border-radius:var(--radius-lg);
  box-shadow:0 18px 34px -12px rgba(20,60,60,.28);
  padding:22px;
  margin:-56px 18px 0;
  position:relative;
  display:flex;justify-content:space-between;align-items:center;
}
.access-card .label{color:var(--teal-1);font-weight:800;font-size:12px;letter-spacing:1px;text-transform:uppercase;}
.access-card h2{margin:6px 0 4px;font-size:24px;color:var(--dark);}
.access-card .sub{color:var(--muted);font-size:13px;}
.access-card .avatar{
  width:64px;height:64px;border-radius:50%;background:#e7ecef;
  display:flex;align-items:center;justify-content:center;color:var(--teal-1);font-size:26px;
}

.emergency-box{
  margin:22px 18px 0;
  background:linear-gradient(135deg,var(--accent),#6a3fae);
  border-radius:var(--radius-lg);
  padding:22px;
  color:#fff;
  display:flex;align-items:center;gap:18px;
  box-shadow:0 16px 30px -10px rgba(132,94,194,.55);
}
.emergency-box .icon{
  width:64px;height:64px;border-radius:18px;background:rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;font-size:26px;flex-shrink:0;
}
.emergency-box .num{font-size:26px;font-weight:800;margin:0;}
.emergency-box .desc{font-size:13px;opacity:.92;margin:2px 0 6px;}
.emergency-box .phone{font-size:22px;font-weight:800;letter-spacing:1px;}

/* Carousel info (Kontak Admin / Layanan / TikTok / Testimoni) - menggantikan emergency-box statis */
.carousel-wrap{
  margin:22px 18px 0;border-radius:var(--radius-lg);overflow:hidden;position:relative;
  box-shadow:0 16px 30px -10px rgba(132,94,194,.55);
}
.carousel-track{display:flex;transition:transform .5s ease;width:100%;}
.carousel-slide{
  flex:0 0 100%;
  width:100%;
  box-sizing:border-box;
  background:linear-gradient(135deg,var(--accent),#6a3fae);
  padding:22px 22px 30px;color:#fff;display:flex;align-items:center;gap:16px;min-height:104px;
}
.carousel-slide .icon{
  width:58px;height:58px;border-radius:16px;background:rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0;
}
.carousel-slide .title{font-size:16px;font-weight:800;margin:0 0 4px;}
.carousel-slide .desc{font-size:12.5px;opacity:.92;margin:0 0 8px;line-height:1.4;}
.carousel-slide .cta{font-size:13.5px;font-weight:800;letter-spacing:.2px;color:#fff;text-decoration:underline;}
.carousel-slide .jadwal-tanggal{font-size:15px;font-weight:700;margin:2px 0 3px;opacity:.96;}
.carousel-slide .jadwal-lokasi{font-size:26px;font-weight:800;margin:0 0 10px;letter-spacing:.3px;line-height:1.15;}
.carousel-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:6px;}
.carousel-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer;transition:all .2s;}
.carousel-dot.active{background:#fff;width:18px;border-radius:4px;}

/* Hero foto profil (halaman Info) - foto proporsional dengan caption di strip solid terpisah */
.info-hero{
  margin:22px 18px 20px;border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:0 12px 26px -10px rgba(20,60,60,.3);background:var(--card-bg);
}
.info-hero-img{
  display:block;width:100%;height:auto;max-height:360px;
  object-fit:cover;object-position:center 15%;
}
.info-hero-caption{
  padding:16px 18px;background:linear-gradient(135deg,var(--teal-1),var(--teal-2));color:#fff;
}
.info-hero-caption h2{margin:0 0 4px;font-size:19px;font-weight:800;}
.info-hero-caption p{margin:0;font-size:12.5px;opacity:.95;}

.section-title{
  display:flex;align-items:center;gap:10px;
  margin:28px 18px 14px;
  font-size:20px;font-weight:800;color:var(--dark);
}
.section-title .bar{width:5px;height:22px;background:var(--teal-1);border-radius:4px;display:inline-block;}

.menu-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
  margin:0 18px;
}
.menu-item{
  background:var(--card-bg);border-radius:18px;padding:16px 8px;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  box-shadow:0 8px 18px -10px rgba(20,60,60,.18);
  font-size:12px;font-weight:700;color:var(--dark);text-align:center;
}
.menu-item .ic{
  width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;
}
.ic-teal{background:#e3f6f1;color:var(--teal-1);}
.ic-purple{background:#efe7fb;color:var(--accent);}
.ic-orange{background:#fdeee0;color:#e8792f;}
.ic-blue{background:#e4eefd;color:#2f6fe8;}

.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;
  max-width:480px;margin:0 auto;
  background:var(--card-bg);
  border-top-left-radius:24px;border-top-right-radius:24px;
  box-shadow:0 -10px 30px -14px rgba(20,60,60,.3);
  display:flex;justify-content:space-around;padding:10px 8px 18px;
}
.bottom-nav a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  font-size:11px;font-weight:700;color:var(--muted);padding:8px 14px;border-radius:16px;
  min-height:44px; /* Item #6: area sentuh nyaman untuk navigasi bawah di layar kecil */
}
.bottom-nav a.active{background:var(--dark);color:#fff;}
.bottom-nav a .nav-ic{font-size:18px;}

.card-simple{
  background:var(--card-bg);border-radius:var(--radius-md);padding:18px;margin:0 18px 18px;
  box-shadow:0 8px 18px -10px rgba(20,60,60,.15);
}
.btn{
  display:inline-block;border:none;border-radius:14px;padding:13px 20px;font-weight:700;
  cursor:pointer;font-size:14px;text-align:center;
  /* Item #6 (optimasi): tinggi minimum 44px mengikuti standar area sentuh (touch target)
     yang nyaman ditekan jari di layar kecil, tanpa mengubah tampilan pada layar besar. */
  min-height:44px;
}
.btn-primary{background:var(--teal-1);color:#fff;}
.btn-accent{background:var(--accent);color:#fff;}
.btn-block{width:100%;}
.btn-outline{background:transparent;border:2px solid var(--teal-1);color:var(--teal-1);}
.btn:disabled,.btn[disabled]{opacity:.7;cursor:not-allowed;}

/* Item #4 (optimasi): spinner kecil di dalam tombol saat status loading (lihat form.php) */
.spinner-inline{
  display:inline-block;width:14px;height:14px;border-radius:50%;
  border:2px solid rgba(255,255,255,.55);border-top-color:#fff;
  vertical-align:-2px;margin-right:6px;animation:spin-inline .7s linear infinite;
}
@keyframes spin-inline{to{transform:rotate(360deg);}}

.form-group{margin-bottom:16px;}
.form-group label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--dark);}
.form-control{
  width:100%;padding:12px 14px;border-radius:12px;border:1px solid #dbe2e6;background:#fff;
  /* Item #6: font-size dipertahankan >=16px supaya Safari/iOS tidak otomatis zoom-in saat
     kolom ini difokus (perilaku bawaan browser mobile untuk input bertulisan <16px), dan
     tinggi minimum 44px supaya mudah disentuh jari di layar kecil. */
  font-size:16px;font-family:inherit;min-height:44px;
}
.form-control:focus{outline:2px solid var(--teal-2);}
textarea.form-control{min-height:unset;}
.radio-card{
  display:flex;align-items:flex-start;gap:10px;border:2px solid #dbe2e6;border-radius:14px;
  padding:12px;margin-bottom:10px;cursor:pointer;
  min-height:44px;
}
.radio-card.selected{border-color:var(--accent);background:#f7f3fd;}
.note-box{
  background:#fff7e6;border:1px solid #ffe1a8;border-radius:12px;padding:12px 14px;font-size:12.5px;color:#7a5a00;margin-top:8px;
}
.qris-box{
  background:#fff;border:1px solid #e4e9ec;border-radius:14px;padding:14px;margin:4px 0 8px;
  display:flex;justify-content:center;
}
.qris-box img{
  width:100%;max-width:280px;height:auto;display:block;border-radius:8px;
}
.autocomplete-dropdown{
  display:none;position:absolute;top:100%;left:0;right:0;z-index:30;
  background:#fff;border:1px solid #dbe2e6;border-radius:12px;margin-top:4px;
  max-height:230px;overflow-y:auto;box-shadow:0 10px 24px -8px rgba(20,60,60,.25);
}
.autocomplete-item{padding:10px 14px;cursor:pointer;border-bottom:1px solid #f1f3f5;min-height:44px;display:flex;flex-direction:column;justify-content:center;}
.autocomplete-item:last-child{border-bottom:none;}
.autocomplete-item:hover{background:#f3fbf9;}
.badge{padding:4px 10px;border-radius:20px;font-size:11px;font-weight:700;color:#fff;}
.badge-warning{background:var(--warning);}
.badge-info{background:var(--info);}
.badge-success{background:var(--success);}
.badge-danger{background:var(--danger);}
.badge-default{background:var(--muted);}
.alert{padding:12px 16px;border-radius:12px;margin:0 18px 14px;font-size:13px;}
.alert-success{background:#e3f9ea;color:#15803d;}
.alert-error{background:#fdeaea;color:#b91c1c;}
.text-muted{color:var(--muted);}
.flex-between{display:flex;justify-content:space-between;align-items:center;}
.app-copyright{
  text-align:center;font-size:11px;color:var(--muted);padding:18px 20px 8px;letter-spacing:.2px;
}

/* Popup notifikasi (toast) sukses/error */
.app-toast{
  position:fixed;top:16px;left:50%;transform:translateX(-50%) translateY(-20px);
  max-width:92vw;width:420px;background:#20303c;color:#fff;border-radius:14px;padding:14px 18px;
  display:flex;align-items:flex-start;gap:10px;box-shadow:0 14px 30px -8px rgba(0,0,0,.35);
  z-index:9999;opacity:0;transition:all .3s ease;font-size:13.5px;line-height:1.4;
}
.app-toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.app-toast.toast-success{background:#15803d;}
.app-toast.toast-error{background:#b91c1c;}
.app-toast .toast-icon{font-size:16px;flex-shrink:0;}
.app-toast .toast-msg p{margin:0 0 4px;}
.app-toast .toast-msg p:last-child{margin-bottom:0;}

/* Banner slot iklan (item #3) */
.ads-banner{
  width:calc(100% - 36px);max-width:480px;aspect-ratio:480/80;margin:16px auto 0;box-sizing:border-box;
  background:#eef1f4;border:2px solid #c7cfd4;border-radius:12px;
  display:flex;align-items:center;justify-content:center;text-align:center;
  color:var(--muted);font-size:13.5px;font-weight:700;padding:0 16px;
}
