:root{
  --pg-blue-900:#0c4a6e;
  --pg-blue-700:#0284c7;
  --pg-blue-600:#38bdf8;
  --pg-gold-500:#d4af37;
  --pg-gold-600:#b8952e;
  --pg-cream:#f1f5f9;
  --pg-sage:#e0f2fe;
  --pg-ink:#0f172a;
  --pg-ink-soft:#475569;
  --pg-error:#dc2626;
  --pg-error-bg:#fef2f2;
  --pg-border:#e2e8f0;
  --radius-lg:16px;
  --radius-md:10px;
  --shadow-card:none;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{
  margin:0;
  padding:0;
  overflow-x:hidden;
  height:auto;
}
body{
  background:var(--pg-cream);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--pg-ink);
  -webkit-text-size-adjust:100%;
}
.pg-wrap{
  max-width:640px;
  margin:0 auto;
  padding:0;
  height:auto;
  overflow:visible;
}
/* ---------- HEADER / TITLE STRIP ---------- */
.pg-header{
  background:linear-gradient(135deg,var(--pg-blue-900) 0%,var(--pg-blue-700) 55%,var(--pg-blue-600) 100%);
  padding:30px 24px 88px;
  position:relative;
  overflow:hidden;
  text-align:center;
}
.pg-seal{
  width:60px;
  height:60px;
  margin:0 auto 14px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px;
  box-shadow:0 4px 14px rgba(12,74,110,0.28), inset 0 0 0 2px var(--pg-gold-500);
  position:relative;
  z-index:1;
}
.pg-seal img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.pg-eyebrow{
  color:rgba(255,255,255,0.72);
  font-size:12px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin:0 0 6px;
  position:relative;
  z-index:1;
}
.pg-title{
  font-family:'Sora',sans-serif;
  color:#fff;
  font-size:22px;
  line-height:1.35;
  margin:0 0 6px;
  position:relative;
  z-index:1;
}
.pg-subtitle{
  color:rgba(255,255,255,0.82);
  font-size:14px;
  margin:0;
  position:relative;
  z-index:1;
}
/* ---------- INFO WEBINAR CARD ---------- */
.pg-info-card{
  background:#fff;
  margin:-64px 16px 16px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  border:1px solid var(--pg-border);
  padding:22px 20px;
  position:relative;
  z-index:2;
}
@media (min-width:640px){
  .pg-info-card{ margin:-64px auto 16px; padding:26px 32px; }
}
.pg-info-tema-label{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--pg-blue-600);
  margin:0 0 4px;
}
.pg-info-tema{
  font-family:'Sora',sans-serif;
  font-size:17px;
  color:var(--pg-ink);
  margin:0 0 18px;
}
.pg-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:18px;
}
@media (max-width:420px){
  .pg-info-grid{ grid-template-columns:1fr; }
}
.pg-info-row{
  display:flex;
  align-items:center;
  gap:12px;
}
.pg-info-icon{
  flex-shrink:0;
  width:40px;
  height:40px;
  border-radius:12px;
  background:var(--pg-sage);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}
.pg-info-label{
  display:block;
  font-size:11px;
  font-weight:600;
  color:var(--pg-ink-soft);
  text-transform:uppercase;
  letter-spacing:0.04em;
  margin-bottom:2px;
}
.pg-info-value{
  display:block;
  font-size:13.5px;
  font-weight:600;
  color:var(--pg-ink);
  line-height:1.35;
}
.pg-info-alert{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:#FBF3E3;
  border:1px solid #EAD6A3;
  border-radius:var(--radius-md);
  padding:12px 14px;
}
.pg-info-alert-icon{ font-size:16px; line-height:1.4; flex-shrink:0; }
.pg-info-alert p{
  margin:0;
  font-size:12.5px;
  color:#7A5A16;
  line-height:1.55;
}
.pg-info-alert strong{ color:#5E4410; }

/* ---------- FORM CARD ---------- */
.pg-card{
  background:#fff;
  margin:0 16px 0;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow:var(--shadow-card);
  border:1px solid var(--pg-border);
  padding:26px 20px 28px;
  position:relative;
  z-index:2;
}
@media (min-width:640px){
  .pg-card{ margin:0 auto; padding:32px 40px 36px; }
}
/* ---------- PROGRESS ---------- */
.pg-progress-label{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  font-weight:600;
  color:var(--pg-ink-soft);
  margin-bottom:8px;
}
.pg-progress-track{
  height:6px;
  background:var(--pg-sage);
  border-radius:99px;
  overflow:hidden;
  margin-bottom:26px;
}
.pg-progress-fill{
  height:100%;
  width:50%;
  background:var(--pg-gold-500);
  border-radius:99px;
  transition:width .35s ease;
}
/* ---------- FORM ELEMENTS ---------- */
.pg-step{ display:none; }
.pg-step.active{ display:block; animation:pgFadeIn .3s ease; }
#pgStep2.active{ padding-bottom:20px; }
@keyframes pgFadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

.pg-step-heading{
  font-family:'Sora',sans-serif;
  font-size:16px;
  color:var(--pg-blue-700);
  margin:0 0 18px;
}
.pg-field{ margin-bottom:18px; }
.pg-field label{
  display:block;
  font-size:13.5px;
  font-weight:600;
  margin-bottom:6px;
  color:var(--pg-ink);
}
.pg-hint{
  font-size:12px;
  color:var(--pg-ink-soft);
  margin-top:5px;
}
.pg-error-msg{
  font-size:12.5px;
  color:var(--pg-error);
  margin-top:5px;
  display:none;
}
.pg-field.has-error input,
.pg-field.has-error select{
  border-color:var(--pg-error);
  background:var(--pg-error-bg);
}
.pg-field.has-error .pg-error-msg{ display:block; }

input[type="text"],
input[type="email"],
input[type="tel"],
select{
  width:100%;
  font-family:inherit;
  font-size:16px;
  padding:13px 14px;
  border:1.5px solid var(--pg-border);
  border-radius:var(--radius-md);
  background:#fff;
  color:var(--pg-ink);
  appearance:none;
  -webkit-appearance:none;
}
select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9'><path d='M1 1l6 6 6-6' stroke='%235B5B52' stroke-width='1.6' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:36px;
}
input:focus, select:focus{
  outline:none;
  border-color:var(--pg-blue-600);
  box-shadow:0 0 0 4px rgba(56,189,248,0.18);
}
input::placeholder{
  color:#94a3b8;
  font-size:13.5px;
}
select:invalid{
  color:#94a3b8;
  font-size:13.5px;
}
select option{
  color:var(--pg-ink);
  font-size:16px;
}
select option[value=""]{
  color:#94a3b8;
}

.pg-radio-group{ display:flex; flex-wrap:wrap; gap:10px; }
.pg-radio-option{
  flex:1 1 auto;
  min-width:120px;
}
.pg-radio-option input{ position:absolute; opacity:0; width:0; height:0; }
.pg-radio-option label{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:500;
  font-size:13.5px;
  padding:11px 10px;
  border:1.5px solid var(--pg-border);
  border-radius:var(--radius-md);
  cursor:pointer;
  background:#fff;
  min-height:44px;
  touch-action:manipulation;
  transition:border-color .15s, background .15s, color .15s;
}
.pg-radio-option input:checked + label{
  border-color:var(--pg-blue-600);
  background:var(--pg-sage);
  color:var(--pg-blue-700);
  font-weight:600;
}

.pg-checkbox-field{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background:var(--pg-sage);
  padding:14px;
  border-radius:var(--radius-md);
}
.pg-checkbox-field input{ margin-top:3px; width:18px; height:18px; flex-shrink:0; }
.pg-checkbox-field span{ font-size:13px; color:var(--pg-ink); line-height:1.5; }

.pg-btn-row{
  display:flex;
  gap:12px;
  margin-top:22px;
}
button{
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  border:none;
  border-radius:var(--radius-md);
  padding:14px 18px;
  cursor:pointer;
  min-height:48px;
  touch-action:manipulation;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
button:active:not(:disabled){ transform:translateY(0); }
.pg-btn-primary{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(135deg, var(--pg-blue-700), var(--pg-blue-600));
  color:#fff;
}
.pg-btn-primary:hover:not(:disabled){
  box-shadow:0 8px 20px -6px rgba(2,132,199,0.45);
  transform:translateY(-1px);
}
.pg-btn-secondary{
  flex:0 0 auto;
  background:#fff;
  border:1.5px solid var(--pg-border);
  color:var(--pg-ink);
}
button:disabled{ opacity:0.6; cursor:not-allowed; }

/* ---------- SUCCESS SCREEN ---------- */
.pg-success{ display:none; text-align:center; padding:10px 0 4px; }
.pg-success.active{ display:block; animation:pgFadeIn .3s ease; }
.pg-success-icon{
  width:56px; height:56px;
  border-radius:50%;
  background:var(--pg-sage);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
}
.pg-success h2{
  font-family:'Sora',sans-serif;
  font-size:18px;
  color:var(--pg-blue-700);
  margin:0 0 8px;
}
.pg-success p{
  font-size:14px;
  color:var(--pg-ink-soft);
  margin:0 0 22px;
  line-height:1.6;
}
.pg-kode-badge{
  display:inline-block;
  background:var(--pg-sage);
  color:var(--pg-blue-700);
  font-weight:700;
  letter-spacing:0.03em;
  padding:8px 16px;
  border-radius:99px;
  font-size:14px;
  margin-bottom:14px;
}
.pg-wa-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  background:linear-gradient(135deg, #1ebd5a, #25D366);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  padding:14px 18px;
  border-radius:var(--radius-md);
  min-height:48px;
  transition:transform .12s ease, box-shadow .12s ease;
}
.pg-wa-btn:hover{
  box-shadow:0 8px 20px -6px rgba(37,211,102,0.5);
  transform:translateY(-1px);
}

/* ---------- SUBMIT / SERVER ERROR ---------- */
.pg-server-error{
  display:none;
  background:var(--pg-error-bg);
  border:1px solid var(--pg-error);
  color:var(--pg-error);
  font-size:13px;
  padding:12px 14px;
  border-radius:var(--radius-md);
  margin-bottom:16px;
}
.pg-server-error.active{ display:block; }

.pg-spinner{
  width:16px; height:16px;
  border:2.5px solid rgba(255,255,255,0.4);
  border-top-color:#fff;
  border-radius:50%;
  display:inline-block;
  animation:pgSpin .7s linear infinite;
  vertical-align:-3px;
  margin-right:8px;
}
@keyframes pgSpin{ to{ transform:rotate(360deg); } }

.pg-footer-note{
  text-align:center;
  font-size:11.5px;
  color:var(--pg-ink-soft);
  margin-top:18px;
}

/* ---------- HP UMUM (≤480px) — proporsi headline ---------- */
@media (max-width:480px){
  .pg-header{ padding:26px 20px 80px; }
  .pg-seal{ width:54px; height:54px; margin-bottom:12px; }
  .pg-eyebrow{ font-size:11px; letter-spacing:0.1em; margin-bottom:5px; }
  .pg-title{ font-size:18.5px; line-height:1.3; margin-bottom:8px; }
  .pg-subtitle{ font-size:12.5px; line-height:1.5; padding:0 6px; }
}

/* ---------- HP KECIL (≤380px, mis. iPhone SE) ---------- */
@media (max-width:380px){
  .pg-header{ padding:24px 18px 76px; }
  .pg-seal{ width:52px; height:52px; margin-bottom:12px; }
  .pg-title{ font-size:17.5px; }
  .pg-subtitle{ font-size:12px; }
  .pg-info-card{ margin:-52px 12px 12px; padding:18px 16px; }
  .pg-card{ margin:0 12px 0; padding:22px 16px 24px; }
  .pg-info-tema{ font-size:15.5px; }
  .pg-step-heading{ font-size:15px; }
  .pg-field{ margin-bottom:15px; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select{ padding:12px 13px; }
  .pg-btn-row{
    flex-direction:column-reverse;
  }
  .pg-btn-row .pg-btn-secondary,
  .pg-btn-row .pg-btn-primary{
    flex:1 1 auto;
    width:100%;
  }
}
