/* =========================
   CSS VARIABLES
========================= */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --primary: #1e4ed8;
  --primary-dark: #143D99;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
}

/* =========================
   RESET & DASAR
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

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

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 1px 30px;
  color: #404040;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2000;
}

.logo img {
  height: 100px;
  width: 100px;
  display: inline-block;
}

.theme-toggle {
  border: 1px solid gray;
  background: transparent;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
  margin-left: 16px;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.theme-toggle-dark { display: none; }
html.dark .theme-toggle-light { display: none; }
html.dark .theme-toggle-dark { display: inline; }

.nav-links {
  display: flex;
  list-style: none !important;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none !important;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: gray;
  font-size: 17px;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links li a.navbaractive {
  color: blue;
}

/* =========================
   HAMBURGER
========================= */
.nav-toggle { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 30px;
  height: 24px;
  z-index: 2001;
  position: relative;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1f2dbf;
  border-radius: 3px;
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s ease;
}

.nav-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================
   GOOGLE TRANSLATE
========================= */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-logo-link { display: none !important; }
.goog-te-gadget span { display: none !important; }

#google_translate_element {
  display: inline-flex;
  align-items: center;
  position: relative;
}

#google_translate_element select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 14px;
  border: 1px solid blue;
  border-radius: 8px;
  background: #fff;
  color: blue;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

#google_translate_element::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: blue;
  pointer-events: none;
  font-size: 14px;
}

/* =========================
   BANNER / HERO
========================= */
.banner-container {
  background-size: cover;
  background-position: center;
  height: 250px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsc {
  background-image: url("../images/gsc/bannergsc.png");
}

/* =========================
   GSC CONTAINER
========================= */
.gsc-container {
  min-height: 60vh;
}

/* =========================
   INFORMASI LAYANAN
========================= */
.informasi-layanan-container {
  width: min(900px, 92vw);
  margin: 40px auto;
}

.submenu {
  color: var(--primary);
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  margin-bottom: 24px;
}

.info-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.info {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 36px 28px;
  flex: 1;
  min-width: 260px;
  max-width: 360px;
  text-align: center;
}

.info .icon {
  font-size: 52px;
  color: var(--primary);
  margin-bottom: 16px;
}

.info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  text-align: justify;
}

/* =========================
   ALERT
========================= */
.alert {
  width: min(900px, 92vw);
  margin: 0 auto 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

/* =========================
   FORM SECTION
========================= */
.pengisian-form-container {
  width: min(900px, 92vw);
  margin: 0 auto 60px;
}

.pengisian-form-container .submenu {
  text-align: left;
  margin-bottom: 16px;
}

.service {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 78, 216, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.service button[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 48px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Poppins', sans-serif;
}

.service button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: linear-gradient(135deg, #020B40 0%, #040d54 100%);
    color: #ffffff;
    padding: 70px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #020B40);
    opacity: 0.3;
}

.footer-wrap {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    padding-bottom: 55px;
    align-items: start;
}

.footer-section.contact {
    display: flex;
    flex-direction: column;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 28px 0;
    letter-spacing: 0.3px;
}

.branch-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.branch-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.branch-box:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
    border-color: rgba(43, 78, 255, 0.5);
}

.branch-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #4dabff;
    margin: 0 0 14px 0;
}

.branch-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

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

.branch-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.branch-item p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

.footer-section.branding {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.footer-logo img {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: #c4cfe8;
    text-align: justify;
    margin: 0 0 24px 0;
}

.footer-social-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.follow-us-text {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
}

.footer-social-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.social-icon:hover { transform: translateY(-4px); }
.social-icon.youtube:hover  { background: #FF0000; border-color: #FF0000; }
.social-icon.tiktok:hover   { background: #111; border-color: #fe2c55; box-shadow: -2px 0 0 #fe2c55, 2px 0 0 #25f4ee; }
.social-icon.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.35);
    padding: 20px 0;
    text-align: center;
}

.footer-divider {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

/* Footer dark mode (from original) */
html.dark .site-footer {
    background: linear-gradient(135deg, #020617 0%, #0a1226 100%);
}

html.dark .footer-wave {
    background: linear-gradient(to bottom, transparent, #020617);
}

html.dark .footer-desc,
html.dark .branch-item p,
html.dark .follow-us-text {
    color: #cbd5e1;
}

html.dark .footer-bottom p { color: #94a3b8; }

/* =========================
   RESPONSIVE — TABLET
========================= */
@media (max-width: 1110px) {
	.footer-wrap {
		grid-template-columns: 1fr;
	}
}

/* =========================
   RESPONSIVE — MOBILE
========================= */
@media (max-width: 768px) {
  .navbar { flex-wrap: nowrap; padding: 10px 18px; }
  .logo img { width: 70px; height: 70px; }
  .hamburger { display: flex !important; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 110px 28px 40px;
    gap: 0;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.28s ease;
    z-index: 1999;
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #ebebeb;
  }

  .nav-links a {
    display: block;
    padding: 20px 0;
    font-size: 15px;
    color: #555555;
  }
	
	.branch-container {
		grid-template-columns: 1fr;
	}
  .nav-links a.navbaractive { color: #1f2dbf; font-weight: 600; }
  .nav-links a:hover { color: #1f2dbf; padding-left: 4px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-full, .form-submit { grid-column: 1; }

  .service { padding: 20px; }

  .footer-wrap { grid-template-columns: 1fr; gap: 22px; }
	
}

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

/* =========================
   DARK MODE
========================= */
html.dark {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --line: #334155;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
}

html.dark body { background: var(--bg); color: var(--text); }

html.dark .navbar {
  background-color: #111827;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.35);
}

html.dark .nav-links a { color: #e5e7eb; }
html.dark .nav-links a:hover { color: #93c5fd; }
html.dark .nav-links li a.navbaractive { color: #93c5fd; font-weight: 650; }

html.dark #google_translate_element select {
  background: #111827;
  color: #93c5fd;
  border-color: #334155;
}

html.dark #google_translate_element::after { color: #93c5fd; }

html.dark .info,
html.dark .service {
  background: var(--card);
  border-color: var(--line);
}

html.dark .info h3 { color: #f8fafc; }
html.dark .submenu { color: #60a5fa; }

html.dark .form-group input,
html.dark .form-group select,
html.dark .form-group textarea {
  background: #1f2937;
  border-color: var(--line);
  color: var(--text);
}

html.dark .form-group label { color: #e5e7eb; }

html.dark .alert-success {
  background: #064e3b;
  color: #6ee7b7;
  border-color: #065f46;
}

html.dark .alert-danger {
  background: #450a0a;
  color: #fca5a5;
  border-color: #991b1b;
}

html.dark .site-footer { background-color: #020617; }
html.dark .footer-text,
html.dark .footer-list li,
html.dark .footer-bottom { color: #cbd5e1; }
html.dark .footer-list li a { color: #ffffff; }
html.dark .footer-list a:hover { color: #93c5fd; }

/* Dark mode mobile nav */
@media (max-width: 768px) {
  html.dark .nav-links { background: #111827; }
  html.dark .nav-links li { border-bottom: 1px solid #334155; }
  html.dark .nav-links a { color: #e5e7eb; }
  html.dark .nav-links a.navbaractive,
  html.dark .nav-links a:hover { color: #93c5fd; }
}