/* =========================================
   PENGADUAN PAGE — Additional Styles
   ========================================= */

/* --- PAGE HERO --- */
.page-hero {
  position: relative;
  background: var(--slate-900);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(10,20,15,.88) 0%, rgba(22,163,74,.18) 100%),
    url('https://images.pexels.com/photos/11246275/pexels-photo-11246275.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center 30%;
  opacity: .55;
}
.page-hero-inner {
  position: relative;
  max-width: 700px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i.fa-chevron-right { font-size: .6rem; }
.breadcrumb span { color: rgba(255,255,255,.85); }
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  max-width: 580px;
}

/* --- INFO STRIP --- */
.info-strip {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 1.75rem 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  transition: border-color .2s, box-shadow .2s;
}
.info-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c) 12%, white);
  display: grid; place-items: center;
  font-size: 1rem;
  color: var(--c);
}
.info-card strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: .25rem;
}
.info-card span { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

/* --- FORM SECTION --- */
.form-section {
  background: var(--slate-50);
  padding: clamp(50px, 7vw, 80px) 0;
}
.form-container {
  max-width: 820px;
  margin-inline: auto;
}

/* --- TABS --- */
.tabs {
  display: flex;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: .4rem;
  margin-bottom: 1.75rem;
}
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate-500);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  cursor: pointer;
  transition: all .2s;
}
.tab:hover { color: var(--primary); background: var(--green-50); }
.tab.active {
  background: var(--gradient-main);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(22,163,74,.3);
}
.tab i { font-size: .9rem; }

/* --- FORM PANEL --- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 2rem;
}
.form-header-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--teal-500));
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--white);
}
.form-header-icon[style*="--ic"] {
  background: linear-gradient(135deg, var(--ic, var(--primary)), var(--teal-500));
}
.form-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: .35rem;
}
.form-header p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* --- FORM ELEMENTS --- */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-700);
}
.label-section {
  font-size: .8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--slate-200);
}
.required { color: #ef4444; font-weight: 700; }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > i:first-child {
  position: absolute;
  left: .9rem;
  color: var(--slate-400);
  font-size: .85rem;
  pointer-events: none;
  z-index: 1;
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: .7rem 1rem .7rem 2.5rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: var(--slate-400); }

/* Select */
.select-wrap select { appearance: none; cursor: pointer; padding-right: 2.5rem; }
.select-arrow {
  position: absolute;
  right: .9rem;
  color: var(--slate-400);
  font-size: .7rem;
  pointer-events: none;
}

/* Textarea */
.textarea-wrap { align-items: flex-start; }
.textarea-wrap > i:first-child { top: .85rem; }
.textarea-wrap textarea { resize: vertical; min-height: 120px; line-height: 1.65; }

/* Date input */
input[type="date"] { color: var(--text); cursor: pointer; }

/* Error state */
.has-error .input-wrap input,
.has-error .input-wrap select,
.has-error .input-wrap textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.field-error {
  font-size: .78rem;
  color: #ef4444;
  display: none;
  align-items: center;
  gap: .3rem;
}
.has-error .field-error { display: flex; }
.field-hint {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin-top: .25rem;
  line-height: 1.5;
}
.field-hint i { color: var(--blue-500); flex-shrink: 0; margin-top: .1rem; }

/* Form footer */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
  flex-wrap: wrap;
}
.form-note {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  max-width: 380px;
  line-height: 1.6;
}
.form-note i { color: var(--primary); flex-shrink: 0; margin-top: .15rem; }

/* Submit button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  background: var(--gradient-main);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(22,163,74,.3);
  transition: all .25s;
  white-space: nowrap;
  position: relative;
  min-width: 180px;
  justify-content: center;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(22,163,74,.4); }
.btn-submit-loading { display: none; }
.btn-submit.loading .btn-submit-text { display: none; }
.btn-submit.loading .btn-submit-loading { display: flex; align-items: center; gap: .5rem; }
.btn-submit.loading { opacity: .85; cursor: not-allowed; transform: none; }

.btn-submit-green { background: linear-gradient(135deg, #059669, #0d9488); box-shadow: 0 4px 20px rgba(5,150,105,.3); }
.btn-submit-green:hover { box-shadow: 0 8px 28px rgba(5,150,105,.4); }

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.success-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.form-success-green .success-icon { color: #059669; }
.form-success h3 { font-size: 1.375rem; font-weight: 800; color: var(--slate-900); margin-bottom: .75rem; }
.form-success p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; max-width: 460px; margin: 0 auto 1.75rem; }
.btn-reset { margin-inline: auto; }

/* --- PROSEDUR --- */
.prosedur-wrap { margin-top: 2.5rem; }
.prosedur {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}
.prosedur h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}
.prosedur h3 i { color: var(--primary); }
.prosedur-steps { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.ps {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 1.1rem .75rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  transition: border-color .2s;
}
.ps:hover { border-color: var(--primary); }
.ps-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: var(--white);
  font-size: .875rem;
  font-weight: 800;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ps-body strong { display: block; font-size: .8rem; font-weight: 700; color: var(--slate-800); margin-bottom: .3rem; }
.ps-body span { font-size: .75rem; color: var(--text-muted); line-height: 1.55; }

.prosedur-contact {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.prosedur-contact p {
  font-size: .82rem;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-right: .25rem;
  white-space: nowrap;
}
.prosedur-contact p i { color: var(--primary); }
.pcontact-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: .3rem .7rem;
  transition: all .2s;
}
.pcontact-item:hover { background: var(--primary); color: var(--white); }
.pcontact-item i { font-size: .75rem; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .form-note { max-width: 100%; }
  .btn-submit { width: 100%; }
  .prosedur-steps { gap: .75rem; }
  .ps { min-width: calc(50% - .375rem); }
  .prosedur-contact { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .tabs { flex-direction: column; }
  .ps { min-width: 100%; flex-direction: row; text-align: left; align-items: flex-start; }
  .ps-num { flex-shrink: 0; }
}
