/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ====== NAVBAR ====== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #343a41;
  color: #fff;
  flex-wrap: wrap;
}

.nav-brand {
  font-weight: bold;
  font-size: 1.5em;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.dark-mode-toggle {
  background: #fff;
  color: #1b2026;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  background: url("Magang.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.search-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 10px;
  max-width: 170px;
  margin: 30px auto 0;
  gap: 10px;
}

.search-box input,
.search-box select,
.search-box button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.search-box input,
.search-box select {
  flex: 1;
  min-width: 150px;
}

.search-box button {
  background: #0a28ed;
  color: #f3ecec;
  border: none;
  cursor: pointer;
}

button a {
  color: white;
  text-decoration: none;
  display: inline-block;
}

button {
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

/* ====== SECTION ====== */
.section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  gap: 30px;
}

.section.reverse {
  flex-direction: row-reverse;
}

.section .text {
  flex: 1;
}

.section .text h2 {
  color: #040505;
  margin-bottom: 10px;
}

.section .image img {
  width: 100%;
  border-radius: 10px;
}

/* ====== STEPS ====== */
.steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 60px 10%;
  gap: 30px;
  text-align: center;
  background: #f4f4f4;
}

.step {
  flex: 1 1 200px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.circle {
  background: #053ee8;
  color: white;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ====== FAQ ====== */
body {
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  margin: 0;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #222;
}

.toggle-btn {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: #555;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 5px;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* tinggi maksimal konten */
  padding-top: 10px;
}

.faq-item.active .toggle-btn {
  transform: rotate(180deg);
}

/* =========== informasi =========*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

/* jabatan h2
prodi h4 class h4
desk singkat "deskripsicard"
selebihnya deskripsicardisi */

.deskripsicard {
  font-size: 13px;
  padding-top: 10px;
}

.deskripsicardisi {
  font-size: 13px;
}

.card-title {
  font-size: 13px;
}

.highlight {
  font-size: 13px;
}
.h4 {
  padding-top: 10px;
}


.card {
  background: linear-gradient(135deg, #e4e7ff, #d7d7e9);
  padding: 20px 25px;
  border-radius: 16px;
  margin: 15px 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gambarcard {
  width: 110px;
  height: auto;
  float: right;
  margin-left: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.card:hover .gambarcard {
  transform: scale(1.05);
}

/* button daftar */
.btn-daftar {
  display: block;
  margin: 15px auto 10px;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-daftar:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

/* button sosmed dan web perusahaan */
.button-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

a.btn {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 100;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

a.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Tombol Website info */
.btn-website {
  background: linear-gradient(135deg, #0077ff, #0056cc);
}

.btn-website:hover {
  background: linear-gradient(135deg, #0056cc, #003f99);
}

/* Tombol Instagram */
.btn-instagram {
  background: linear-gradient(135deg, #fd1d1d, #833ab4);
}

.btn-instagram:hover {
  background: linear-gradient(135deg, #833ab4, #c13584);
}

i {
  width: 20px;
  height: 20px;
}

/* button hide info */
.toggle-icon {
  font-size: 1.5rem;
  color: #3498db;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* infoooooooooooo (bkn akhir)*/
.card-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  background-color: white;
}

.card-content.active {
  padding: 20px;
  max-height: 1900px;
  border-radius: 10px;
}

.description-short {
  color: #7f8c8d;
  margin-bottom: 10px;
  font-style: italic;
}

.description-long {
  color: #2c3e50;
  line-height: 1.7;
}

.description-long ul {
  margin-left: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.description-long li {
  margin-bottom: 8px;
}

.highlight {
  background-color: #e1f5fe;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #0288d1;
}

/* =========pendfatarn======== */
.form-title {
  text-align: center;
  /* margin: 30px 0 10px; */
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: bolder;
  color: #333;
}

#multiStepForm {
  max-width: 600px;
  margin: 20px auto 50px;
}
.form-wrapper {
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f2f4f7; /* warna background biar enak dilihat */
}

.form-container {
  background: #fff;
  width: 450px;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-header {
  background-color: #363b48;
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
  margin: 0; /* HAPUS margin yang bikin turun */
  position: relative;
  top: -45px; /* Tarik sedikit naik */
  width: calc(100% + 60px); /* Samakan lebar dengan form */
  left: -30px; /* Biar pas sama border form */
  margin-bottom: -30px;
}

.form-step input,
.form-step select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.btn-next {
  background-color: #363b48;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  float: right;
  cursor: pointer;
}

.btn-submit {
  float: right;
}

h2 {
  text-align: left;
  margin-bottom: 15px;
  color: #333;
}

/* Input Group */
.input-group {
  margin-bottom: 15px;
}

label {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  display: block;
}

input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #007bff;
}

/* Buttons */
.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #0056b3;
}

button:disabled {
  background-color: #c0c0c0;
  cursor: not-allowed;
}

/* Sembunyikan step */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.success-message {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
  transition: all 0.3s ease;
}

.success-message h3 {
  color: #28a745;
  margin-bottom: 10px;
  font-weight: 600;
}

.success-message p {
  color: #333;
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === DARK MODE PUNYA ZALA === */
body.dark .form-title {
  color: #fff;
}

body.dark .form-wrapper {
  background-color: #1e1e1e;
}

body.dark .form-container {
  background-color: #1e1e1e;
}

body.dark label {
  color: #f5f5f5;
}

body.dark textarea,
body.dark select,
body.dark input {
  background-color: #1e1e1e;
  color: #ffffff;
}

/* Terapkan style ini HANYA kalau ada class 'dark-mode' di body */
body.dark input:-webkit-autofill,
body.dark input:-webkit-autofill:hover,
body.dark input:-webkit-autofill:focus,
body.dark textarea:-webkit-autofill,
body.dark textarea:-webkit-autofill:hover,
body.dark textarea:-webkit-autofill:focus,
body.dark select:-webkit-autofill,
body.dark select:-webkit-autofill:hover,
body.dark select:-webkit-autofill:focus {
  background-color: #2a2d34 !important; /* 🎯 UBAH WARNA DI SINI */
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
  border: 1px solid #555 !important;
}

/* Styling dropdown datalist biar cocok sama dark mode */
body.dark input::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

body.dark datalist {
  background-color: #2a2d34;
  color: #fff;
}

body.dark option {
  background-color: #2a2d34;
  color: white;
}

/* ====== FOOTER ====== */
.footer {
  text-align: center;
  padding: 20px;
  background: #2e343c;
  color: white;
  font-size: 0.9em;
}

/* ====== DARK MODE ====== */
body.dark {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark .navbar {
  background: #3a3a3a;
  color: #fff;
}

body.dark .dark-mode-toggle {
  background: #333;
  color: #fff;
}

body.dark .section,
body.dark .steps,
body.dark .faq {
  background: #181818;
}

body.dark .faq h2,
body.dark .section .text h2 {
  color: #90caf9;
}

body.dark .step {
  background: #242424;
  color: #eee;
}

body.dark .footer {
  background: #1f1f1f;
  color: #ccc;
}

body.dark .search-box {
  background: rgba(30, 30, 30, 0.9);
}

body.dark .search-box input,
body.dark .search-box select {
  background: #2c2c2c;
  color: #fff;
  border: 1px solid #555;
}

/* === DARK MODE STYLE === */
body.dark {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

body.dark .faq {
  background-color: #2a2a2a;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark .faq-question {
  color: #fff; /* tulisan pertanyaan jadi putih */
  border-color: #444;
}

body.dark .faq-answer {
  color: #ddd; /* teks jawaban jadi abu terang */
}

body.dark .toggle-btn {
  color: #fff;
}

/* darkmode gweh */
body.dark .grid-container {
  background: #1e1e1e;
  border-color: #444;
}

body.dark .card {
  background: #3d3d3d;
  border-color: #444;
}

body.dark .card-content {
  background: #343434;
  border-color: #444;
}

body.dark .card-content.active {
  background-color: #3c3c3c;
  border-color: #555;
  color: #fff;
}

body.dark .h2 {
  color: #fff;
}

body.dark .highlight {
  border-left: 4px solid #e4e4e4;
  background-color: #555;
}

body.dark .description-short,
body.dark .description-long {
  border-color: #555;
  color: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.8em;
  }

  .search-box {
    flex-direction: column;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .dark-mode-toggle {
    align-self: flex-end;
  }

  /* infoo */
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    flex-direction: column;
  }

  .gambarcard {
    margin: 0 0 20px 0;
  }

  .button-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 20px;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .section,
  .steps,
  .faq {
    padding: 40px 5%;
  }

  .search-box input,
  .search-box select,
  .search-box button {
    width: 100%;
  }

  /* info */
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .button-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
