/* ==========================================================
   RuangBisik - Stylesheet
   Tema: ruang tenang, bisikan hangat. Palet laut-dalam + emas + krem.
   ========================================================== */
:root {
  --ink: #0e2a36;
  --deep: #062f43;
  --p: #0a6a8f;
  --pd: #074c68;
  --pl: #e7f3f7;
  --cream: #fbf8f1;
  --g: #c9a227;
  --gs: #f4e8b9;
  --t: #17323d;
  --m: #5f7682;
  --l: #dce7ec;
  --ok: #1f7a55;
  --err: #a8322a;
  --r: 18px;
  --sh: 0 10px 30px rgba(6, 47, 67, 0.09);
  --sh2: 0 18px 48px rgba(6, 47, 67, 0.16);
  --serif: "Fraunces", "Georgia", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 "Plus Jakarta Sans", "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--t);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--p); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h4 { margin: 0; }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
main { min-height: 60vh; padding-bottom: 64px; }
.sec { padding: 56px 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g); margin-bottom: 10px; }

/* ---------- Navigasi ---------- */
.nav { background: rgba(6, 47, 67, .94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(201, 162, 39, .55); position: sticky; top: 0; z-index: 30; }
.navin { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; }
.brand .logos { display: flex; align-items: center; gap: 8px; }
.brand .logos img { height: 42px; width: auto; object-fit: contain; }
.brand .bt { display: block; line-height: 1.15; }
.brand b { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: #fff; letter-spacing: .01em; }
.brand b span { color: var(--g); }
.brand i { font-style: normal; font-size: .72rem; color: rgba(255, 255, 255, .72); letter-spacing: .04em; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a, .dd > a { color: rgba(255, 255, 255, .88); text-decoration: none; padding: 8px 16px; border-radius: 999px; display: block; font-size: .94rem; transition: .2s; }
.menu > a:hover, .menu a.on { background: rgba(255, 255, 255, .12); color: var(--gs); }
.menu > a.btn { color: var(--deep); background: var(--g); font-weight: 700; margin-left: 6px; }
.menu > a.btn:hover { background: #dcb73a; }
.dd { position: relative; }
.ddm { display: none; position: absolute; right: 0; top: 100%; background: #fff; border-radius: 14px; box-shadow: var(--sh2); min-width: 160px; overflow: hidden; padding: 6px; }
.dd:hover .ddm, .dd:focus-within .ddm { display: block; }
.ddm a { display: block; padding: 10px 14px; text-decoration: none; color: var(--t); border-radius: 10px; font-size: .92rem; }
.ddm a:hover { background: var(--pl); }
.burger { display: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Tombol ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; background: var(--p); color: #fff; padding: 12px 26px; border-radius: 999px; font: 600 .95rem/1.2 inherit; font-family: inherit; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; box-shadow: 0 6px 16px rgba(10, 106, 143, .28); }
.btn:hover { background: var(--pd); transform: translateY(-1px); }
.btn.gold { background: var(--g); color: var(--deep); box-shadow: 0 6px 16px rgba(201, 162, 39, .35); }
.btn.gold:hover { background: #dcb73a; }
.btn.out { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; }
.btn.out:hover { background: rgba(255, 255, 255, .12); }
.btn.sm { padding: 8px 18px; font-size: .85rem; }
.btn.red { background: var(--err); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 92px 0 120px; background: radial-gradient(900px 480px at 85% -10%, rgba(201, 162, 39, .22), transparent 60%), radial-gradient(700px 420px at -5% 110%, rgba(10, 106, 143, .55), transparent 60%), linear-gradient(160deg, #062f43 0%, #08435d 55%, #0a5a7a 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero .ripples { position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); z-index: 1; pointer-events: none; }
.hero .ripples i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(244, 232, 185, .35); animation: rip 7s ease-out infinite; }
.hero .ripples i:nth-child(2) { animation-delay: 2.3s; }
.hero .ripples i:nth-child(3) { animation-delay: 4.6s; }
@keyframes rip { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 760px; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gs); }
.hero p { max-width: 600px; font-size: 1.08rem; color: rgba(255, 255, 255, .86); }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 2; display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.stats div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(6px); }
.stats b { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--gs); line-height: 1.1; }
.stats span { font-size: .82rem; color: rgba(255, 255, 255, .78); }
.live { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 5px 14px; border-radius: 999px; font-size: .78rem; margin-bottom: 20px; letter-spacing: .03em; }
.live:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5ee0a0; animation: pl 1.8s infinite; }
@keyframes pl { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 160, .7); } 100% { box-shadow: 0 0 0 10px rgba(94, 224, 160, 0); } }

/* ---------- Filosofi ---------- */
.philo { background: #fff; border-radius: 28px; box-shadow: var(--sh); padding: 48px; position: relative; overflow: hidden; border: 1px solid var(--l); }
.philo:before { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--gs), transparent 68%); opacity: .7; }
.philo .lead { max-width: 760px; font-size: 1.08rem; color: var(--m); position: relative; }
.philo .lead strong { color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; position: relative; }
.pillar { background: var(--cream); border-radius: var(--r); padding: 24px; border: 1px solid #efe7d2; }
.pillar .n { font-family: var(--serif); font-size: 2rem; color: var(--g); line-height: 1; }
.pillar h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.pillar p { margin: 0; color: var(--m); font-size: .95rem; }
.motto { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--p); position: relative; }
.mark { display: inline-block; vertical-align: middle; }

/* ---------- Sambutan ---------- */
.welcome { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.kepsek { text-align: center; background: #fff; padding: 16px 16px 22px; border-radius: 24px; box-shadow: var(--sh); border: 1px solid var(--l); }
.kepsek img { border-radius: 16px; }
.kepsek h3 { font-size: 1.02rem; margin: 16px 0 4px; }
.kepsek small { color: var(--m); }
blockquote { margin: 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--g); color: #34505c; }
blockquote p { margin: 0 0 14px; }

/* ---------- Kartu & grid ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--l); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.grid3 > .card:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
.card h2, .card h3 { margin-bottom: .45em; }
.card p { color: #3f5a66; }
.card > a { font-weight: 600; text-decoration: none; }
.card > a:after { content: " \2192"; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--pl); color: var(--p); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px; }
.stack { display: grid; gap: 22px; padding-top: 30px; }
.stack .card { margin: 0; }

/* ---------- Header halaman ---------- */
.ph { background: radial-gradient(520px 260px at 90% 0, rgba(201, 162, 39, .22), transparent 70%), linear-gradient(150deg, #062f43, #0a5a7a); color: #fff; padding: 52px 0 56px; margin-bottom: 36px; border-radius: 0 0 36px 36px; }
.ph h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.ph p { margin: 0; color: rgba(255, 255, 255, .84); max-width: 640px; }
.ph .tag { background: rgba(255, 255, 255, .16); color: var(--gs); }

/* ---------- Form ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin: 14px 0 6px; color: var(--ink); }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--l); border-radius: 12px; font: inherit; color: var(--t); background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgba(10, 106, 143, .14); }
textarea { min-height: 130px; resize: vertical; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.chk input { width: auto; accent-color: var(--p); }
.alert { max-width: 1140px; margin: 22px auto 0; width: calc(100% - 44px); padding: 14px 18px; border-radius: 14px; font-weight: 500; }
.alert.ok { background: #e4f5ec; color: #14573c; border: 1px solid #b6e0c9; }
.alert.err { background: #fdecea; color: #8a251e; border: 1px solid #f3c1bc; }

/* ---------- Tag, status ---------- */
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--pl); color: var(--pd); text-transform: capitalize; letter-spacing: .02em; }
.tag.baru, .tag.menunggu { background: #fff3cf; color: #7d5f00; }
.tag.diproses, .tag.berjalan { background: #dcecff; color: #134e8f; }
.tag.selesai { background: #dff3e8; color: #14573c; }
.tag.ditolak { background: #fde4e1; color: #8a251e; }
.steps { display: flex; gap: 8px; margin: 16px 0; }
.steps span { flex: 1; text-align: center; padding: 9px 6px; border-radius: 12px; background: #eef3f5; color: var(--m); font-size: .85rem; font-weight: 600; }
.steps span.on { background: var(--p); color: #fff; }

/* ---------- Edukasi ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 26px; }
.chips a { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--l); text-decoration: none; color: var(--t); font-weight: 600; font-size: .9rem; transition: .2s; }
.chips a:hover { border-color: var(--p); color: var(--p); }
.chips a.on { background: var(--p); border-color: var(--p); color: #fff; }
.art { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.art .top { height: 92px; display: grid; place-items: center; font-size: 2.2rem; background: var(--pl); }
.art .bd { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.art .bd h3 { margin: 0; font-size: 1.12rem; }
.art .bd p { margin: 0; }
.k-Belajar .top { background: linear-gradient(135deg, #dcecff, #eef6ff); }
.k-Karier .top { background: linear-gradient(135deg, #fbefc4, #fff8df); }
.k-Pribadi .top { background: linear-gradient(135deg, #fbe1ea, #fff1f5); }
.k-Sosial .top { background: linear-gradient(135deg, #d8f2e5, #eefaf3); }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.tips div { background: #fff; border: 1px solid var(--l); border-left: 4px solid var(--g); border-radius: 14px; padding: 14px 16px; font-size: .9rem; color: var(--m); }
.tips b { color: var(--ink); }

/* ---------- Konseling ---------- */
.two { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--l); }
.row:last-child { border-bottom: 0; }
.row a { text-decoration: none; color: var(--t); }
.chat { background: linear-gradient(180deg, #f1f8fb, #f8fbfc); border: 1px solid var(--l); border-radius: 16px; padding: 16px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 80%; align-self: flex-start; background: #fff; border: 1px solid var(--l); border-radius: 16px 16px 16px 4px; padding: 10px 14px; box-shadow: 0 2px 6px rgba(6, 47, 67, .05); }
.bub small { display: block; color: var(--m); font-size: .72rem; margin-bottom: 2px; }
.bub.me { align-self: flex-end; background: var(--p); color: #fff; border-color: var(--p); border-radius: 16px 16px 4px 16px; }
.bub.me small { color: rgba(255, 255, 255, .78); }

/* ---------- Masuk / Daftar / Lupa Password (gaya Google) ---------- */
.gauth { display: flex; justify-content: center; padding: 56px 20px; background: radial-gradient(520px 320px at 12% 0, rgba(201, 162, 39, .18), transparent 70%), radial-gradient(520px 320px at 100% 100%, rgba(10, 106, 143, .16), transparent 70%); }
.gbox { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--l); border-radius: 28px; padding: 40px 36px 32px; box-shadow: var(--sh2); }
.gbox .gl { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gbox .gl img { height: 44px; width: auto; object-fit: contain; }
.gbox h1 { font-size: 1.7rem; margin: 6px 0 4px; }
.gbox .sub { color: var(--m); margin: 0 0 24px; }
.fl { position: relative; margin-bottom: 16px; }
.fl input, .fl select { padding: 17px 14px 8px; border-radius: 12px; }
.fl select { padding-top: 20px; padding-bottom: 6px; }
.fl label { position: absolute; left: 15px; top: 14px; margin: 0; font-weight: 500; color: var(--m); pointer-events: none; transition: .15s; background: transparent; }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label, .fl select + label { top: 4px; font-size: .7rem; font-weight: 700; color: var(--p); }
.glink { margin: 4px 0 6px; font-size: .9rem; }
.glink a { text-decoration: none; font-weight: 600; }
.gact { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.gact a { text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
footer { background: linear-gradient(180deg, #062f43, #04263a); color: rgba(255, 255, 255, .86); padding-top: 54px; border-top: 3px solid var(--g); }
.fgrid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; align-items: start; }
footer h4 { font-family: var(--serif); font-size: 1.08rem; color: var(--gs); position: relative; padding-bottom: 10px; }
footer h4:after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--g); }
footer a { transition: color .2s; }
footer a:hover { color: var(--gs) !important; }
.fc { text-align: center; }
.fc img { height: 44px; width: auto; object-fit: contain; }
.fc h3 { color: #fff; margin: 10px 0 2px; font-size: 1.5rem; }
.fc h3 span { color: var(--g); }
.fc small { display: block; color: rgba(255, 255, 255, .7); }
.pill { display: inline-block; margin-top: 12px; background: rgba(201, 162, 39, .16); color: var(--gs); border: 1px solid rgba(201, 162, 39, .5); padding: 5px 14px; border-radius: 999px; font-size: .78rem; }
.fc .fq { margin: 14px auto 0; max-width: 280px; font-family: var(--serif); font-style: italic; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.fr { justify-self: end; }
.fr h4:after { left: auto; right: 0; }
.fr h4 { text-align: right; }
.soc a { transition: transform .15s, background .2s; border-radius: 12px !important; }
.soc a:hover { transform: translateY(-2px); background: #0b3a52 !important; }
.copy { text-align: center; margin: 40px 0 0; padding: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
  .welcome, .two { grid-template-columns: 1fr; }
  .kepsek { max-width: 320px; margin: 0 auto; }
  .grid3, .pillars { grid-template-columns: 1fr; }
  .stats, .tips { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr; text-align: center; }
  .fr { justify-self: center; }
  .fr h4 { text-align: center; }
  .fr h4:after { left: 50%; right: auto; transform: translateX(-50%); }
  footer h4:after { left: 50%; transform: translateX(-50%); }
  .fgrid > div > div[style*="flex-direction"] { align-items: center; }
  .soc { justify-content: center; }
  .philo { padding: 30px 22px; }
  .hero { padding: 64px 0 100px; }
  .hero .ripples { right: -260px; opacity: .6; }
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--deep); padding: 12px 16px 18px; border-bottom: 3px solid var(--g); }
  #mt:checked ~ .menu { display: flex; }
  .menu > a, .dd > a { border-radius: 10px; }
  .dd { position: static; }
  .ddm { display: block; position: static; box-shadow: none; background: rgba(255, 255, 255, .06); margin-top: 4px; }
  .ddm a { color: #fff; }
  .ddm a:hover { background: rgba(255, 255, 255, .12); }
  .brand i { display: none; }
  .brand .logos img { height: 34px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .gbox { padding: 30px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Notifikasi konselor (lonceng, panel, toast) ---------- */
.nb { position: relative; order: 2; }
.nbtn { position: relative; width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: var(--gs); cursor: pointer; font-size: 1rem; transition: .2s; }
.nbtn:hover { background: rgba(255, 255, 255, .16); }
.nbadge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #d9382c; color: #fff; font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--deep); animation: nb-pop .5s ease; }
.nbadge[hidden], .npanel[hidden], #nperm[hidden] { display: none; }
@keyframes nb-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.npanel { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: calc(100vw - 24px); background: #fff; border-radius: 16px; box-shadow: var(--sh2); border: 1px solid var(--l); z-index: 60; overflow: hidden; }
.nhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--l); color: var(--ink); }
.nhead small { color: var(--m); }
.nlist { max-height: 360px; overflow-y: auto; }
.nempty { padding: 22px 16px; margin: 0; color: var(--m); text-align: center; }
.nitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; text-decoration: none; color: var(--t); border-bottom: 1px solid var(--l); }
.nitem:hover { background: var(--pl); }
.nitem i, .ntoast-i i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff3cf; color: #7d5f00; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.nitem span, .ntoast-i span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nitem b, .ntoast-i b { font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.nitem small, .ntoast-i small { color: var(--m); font-size: .78rem; }
.nfoot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; background: var(--cream); }
.nfoot a, .nfoot button { font: inherit; font-size: .84rem; font-weight: 600; color: var(--p); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.ntoast { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.ntoast-i { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; background: #fff; border: 1px solid var(--l); border-left: 4px solid var(--g); border-radius: 14px; box-shadow: var(--sh2); text-decoration: none; color: var(--t); animation: nt-in .35s ease; transition: opacity .4s, transform .4s; }
.ntoast-i.out { opacity: 0; transform: translateX(24px); }
@keyframes nt-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kartu-aduan.hl { outline: 3px solid var(--g); outline-offset: 2px; }
.kartu-aduan { scroll-margin-top: 100px; }
@media (max-width: 900px) {
  .burger { order: 3; }
  .nb { margin-left: auto; }
  .npanel { position: fixed; left: 12px; right: 12px; top: 80px; width: auto; max-width: none; }
}
