/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

/* =========================================================
   ROOT
   ========================================================= */

:root {
  --primary-blue: #1768e8;
  --accent-yellow: #ffc107;
  --royal-gold: #ffca2c;
  --text-white: #ffffff;
  --page-gray: #f1eef5;
}

/* =========================================================
   HTML & BODY
   ========================================================= */

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background-color: var(--page-gray);
  color: #111;
  overflow-x: hidden;
}

/* =========================================================
   PAGE
   AREA BIRU UTAMA
   ========================================================= */

.page {
  position: relative;

  width: 390px;
  max-width: 100%;

  min-height: 100vh;

  margin: 0 auto;

  background-color: var(--primary-blue);

  overflow: hidden;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;

  background-color: var(--primary-blue);

  position: relative;

  z-index: 1000;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* LOGO NAVBAR */

.navbar-logo {
  display: flex;
  align-items: center;

  gap: 10px;
}

.navbar-img {
  width: 32px;
  height: 32px;

  object-fit: contain;
}

/* MENU */

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-nav i {
  width: 26px;
  height: 26px;

  color: #ffffff;

  stroke-width: 2;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: 100%;

  min-height: calc(100vh - 60px);

  padding: 0 15px 60px;

  display: flex;
  flex-direction: column;
  align-items: center;

  background-color: var(--primary-blue);

  position: relative;
}

/* =========================================================
   JUDUL UTAMA
   ========================================================= */

.hero-title {
  width: 100%;

  margin-top: 18px;

  padding: 0 10px;

  color: #ffffff !important;

  font-size: 26px !important;

  line-height: 1.25;

  font-weight: 700 !important;

  text-align: center;
}

/* =========================================================
   DESKRIPSI HERO
   ========================================================= */

.hero-description {
  width: 100%;
  max-width: 350px;

  margin: 12px auto 0;

  padding: 0 10px;

  color: var(--accent-yellow) !important;

  font-size: 14px !important;

  line-height: 1.6;

  font-weight: 600;

  text-align: center;
}

/* =========================================================
   TOMBOL SEMAK HERO
   ========================================================= */

.hero-button {
  width: auto;
  min-width: 180px;

  margin: 30px auto 0;

  padding: 10px 18px;

  background-color: var(--accent-yellow);

  color: #000000 !important;

  border-radius: 25px;

  font-size: 14px !important;

  line-height: 20px;

  font-weight: 700 !important;

  text-align: center;

  cursor: pointer;

  box-shadow: none;

  transition: 0.25s ease;
}

.hero-button:hover {
  background-color: var(--royal-gold);

  transform: translateY(-1px);
}

/* =========================================================
   LOGO MALAYSIA MADANI
   ========================================================= */

.logo-madani {
  display: block;

  width: 275px !important;

  max-width: 90%;

  height: auto !important;

  margin: 15px auto 0 !important;

  object-fit: contain;
}

/* =========================================================
   JUDUL SENARAI BANTUAN
   ========================================================= */

.list-title {
  width: 100%;

  margin-top: 25px;

  padding: 0 5px;

  color: #ffffff !important;

  font-size: 25px !important;

  line-height: 1.3;

  font-weight: 700 !important;

  text-align: center;
}

/* =========================================================
   DESKRIPSI SENARAI
   ========================================================= */

.list-description {
  width: 100%;

  margin: 8px auto 0;

  color: var(--accent-yellow) !important;

  font-size: 14px !important;

  line-height: 1.5;

  font-weight: 600;

  text-align: center;
}

/* =========================================================
   FORM / CARD
   ========================================================= */

.form-container {
  width: 100%;
  max-width: 360px;

  margin: 35px auto 0;

  padding: 0;

  background-color: #ffffff;

  border-radius: 22px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

  overflow: hidden;
}

/* FORM */

.form-container form {
  width: 100%;

  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   GAMBAR CARD
   ========================================================= */

.form-container form > img {
  width: 100%;
  height: auto;

  display: block;

  border-radius: 0;
}

/* =========================================================
   JUDUL CARD
   ========================================================= */

.form-container h4 {
  width: 100%;

  margin-top: 15px;

  color: #111111;

  font-size: 20px;

  line-height: 1.3;

  font-weight: 700;

  text-align: center;
}

/* =========================================================
   INFORMASI PEKERJAAN
   ========================================================= */

.job-info {
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 10px;

  margin: 20px 0;

  color: #111111;

  font-size: 14px;

  font-weight: 600;
}

.job-info-item {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 10px;
}

.job-info-item svg {
  width: 18px;
  height: 18px;

  flex-shrink: 0;
}

/* =========================================================
   BUTTON CARD
   ========================================================= */

.btn {
  width: 60%;

  max-width: 220px;

  padding: 11px 12px;

  background-color: var(--accent-yellow);

  color: #000000;

  border: none;

  border-radius: 20px;

  font-size: 14px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.25s ease;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 5px auto 0;

  box-shadow: none;
}

.btn:hover {
  background-color: var(--royal-gold);

  transform: translateY(-1px);
}

/* =========================================================
   INPUT
   ========================================================= */

input[type="text"],
input[type="password"] {
  width: 100%;

  padding: 10px;

  margin-bottom: 20px;

  border: 1px solid #010101;

  border-radius: 5px;

  font-size: 13px;

  transition: border-color 0.3s ease;
}

input[type="tel"] {
  width: 100% !important;

  padding: 10px 45px !important;

  margin-bottom: 0 !important;

  border: 1px solid #010101;

  border-radius: 5px;

  font-size: 13px;

  transition: border-color 0.3s ease;
}

input:focus {
  outline: none;

  border-color: var(--accent-yellow);
}

/* =========================================================
   TELEPHONE
   ========================================================= */

.iti {
  width: 100% !important;

  margin-bottom: 20px;
}

.iti__flag-container {
  z-index: 1;
}

/* =========================================================
   LABEL
   ========================================================= */

label {
  display: block;

  width: 100%;

  margin-bottom: 8px;

  font-size: 16px;

  font-weight: 600;

  color: #111111;

  text-align: center;
}

/* =========================================================
   OTP
   ========================================================= */

.otp-container {
  display: flex;

  justify-content: center;

  gap: 20px;

  margin: 10px auto 20px;
}

.otp-input {
  width: 40px;

  height: 40px;

  text-align: center;

  font-size: 18px;

  font-weight: bold;

  border: 1px solid var(--accent-yellow);

  border-radius: 5px;

  appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;

  margin: 0;
}

.otp-input:focus {
  outline: none;

  border-color: var(--accent-yellow);

  box-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

/* =========================================================
   LOADING
   ========================================================= */

.loading-screen {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background-color: rgba(5, 5, 8, 0.235);

  display: none;

  justify-content: center;

  align-items: center;

  z-index: 10000;
}

.loading-screen img {
  max-width: 80px;

  max-height: 80px;
}

/* =========================================================
   RECORD BOX
   ========================================================= */

._record-box {
  width: 100%;

  max-width: 500px;

  margin: 5px auto;

  background: #ffffff;

  border-radius: 10px;

  padding: 5px;

  margin-bottom: 50px;
}

.list-box {
  max-height: 164.8px;

  overflow-y: auto;

  scrollbar-width: none;

  -ms-overflow-style: none;
}

.list-box::-webkit-scrollbar {
  display: none;
}

.list .item {
  display: flex;

  align-items: center;

  padding: 5px;

  border: 1px solid var(--accent-yellow);

  border-radius: 5px;
}

.record_logo {
  width: 30px;

  height: 30px;

  margin-right: 10px;

  margin-left: 5px;
}

.record_logo img {
  width: 100%;

  height: 100%;

  border-radius: 50%;
}

.center {
  flex: 1;
}

.center .h1 {
  color: var(--accent-yellow);

  font-size: 12px;

  margin-bottom: 4px;
}

.center .h2 {
  color: var(--accent-yellow);

  font-size: 14px;

  font-weight: bold;
}

/* =========================================================
   UTILITY
   ========================================================= */

.hidden {
  display: none;
}

.active {
  font-weight: bold;

  color: #333 !important;
}

.no-margin {
  margin: 0;
}

.highlight {
  color: var(--accent-yellow);

  font-weight: bold;
}

.accent {
  color: var(--royal-gold);
}

/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 768px) {
  .page {
    width: 100%;
    max-width: 390px;
  }

  .navbar {
    height: 60px;

    padding: 0 18px;
  }

  .navbar-img {
    width: 32px;

    height: 32px;
  }

  .hero {
    padding-left: 12px;

    padding-right: 12px;
  }

  .hero-title {
    font-size: 25px !important;
  }

  .logo-madani {
    width: 270px !important;
  }

  .list-title {
    font-size: 24px !important;
  }
}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 480px) {
  body {
    background-color: var(--primary-blue);
  }

  .page {
    width: 100%;

    min-height: 100vh;
  }

  .navbar {
    height: 62px;

    padding: 0 18px;
  }

  .navbar-img {
    width: 34px;

    height: 34px;
  }

  .navbar-nav i {
    width: 25px;

    height: 25px;

    color: #ffffff;
  }

  .hero {
    padding: 0 12px 50px;
  }

  .hero-title {
    margin-top: 18px;

    font-size: 24px !important;

    line-height: 1.3;
  }

  .hero-description {
    max-width: 350px;

    margin-top: 12px;

    font-size: 14px !important;

    line-height: 1.55;
  }

  .hero-button {
    min-width: 180px;

    margin-top: 28px;

    padding: 10px 18px;

    font-size: 14px !important;
  }

  .logo-madani {
    width: 270px !important;

    max-width: 90%;

    margin-top: 15px !important;
  }

  .list-title {
    margin-top: 28px;

    font-size: 24px !important;
  }

  .list-description {
    margin-top: 8px;

    font-size: 14px !important;
  }

  .form-container {
    width: calc(100% - 10px);

    margin-top: 35px;

    border-radius: 22px;
  }

  .form-container form {
    padding: 20px 15px;
  }

  .form-container h4 {
    font-size: 19px;
  }

  .job-info {
    font-size: 13px;
  }

  .btn {
    width: 65%;

    font-size: 14px;
  }
}

/* =========================================================
   MOBILE KECIL
   ========================================================= */

@media (max-width: 375px) {
  .navbar {
    padding: 0 14px;
  }

  .navbar-img {
    width: 30px;

    height: 30px;
  }

  .hero-title {
    font-size: 22px !important;
  }

  .hero-description {
    font-size: 13px !important;
  }

  .logo-madani {
    width: 245px !important;
  }

  .list-title {
    font-size: 22px !important;
  }

  .list-description {
    font-size: 13px !important;
  }

  .otp-container {
    gap: 12px;
  }

  .otp-input {
    width: 35px;

    height: 35px;

    font-size: 16px;
  }
}

/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 480px) and (orientation: landscape) {
  .navbar {
    height: 50px;

    padding: 0 12px;
  }

  .navbar-img {
    width: 28px;

    height: 28px;
  }

  .hero {
    padding-bottom: 30px;
  }

  .hero-title {
    margin-top: 15px;

    font-size: 20px !important;
  }

  .hero-button {
    margin-top: 15px;
  }

  .logo-madani {
    width: 220px !important;
  }
}
