:root {
  --primary-blue: #0967d8;
  --primary-dark: #0752b4;
  --navy: #062b5b;
  --navy-deep: #041f43;
  --teal: #07848d;
  --page-bg: #eef7ff;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --text: #102a56;
  --text-soft: #5f708d;
  --border: #d5e2f1;
  --border-strong: #b7c9df;
  --warning: #f59e0b;
  --warning-bg: #fff8eb;
  --info-bg: #edf6ff;
  --error: #c83d4f;
  --radius-sm: 7px;
  --radius-md: 11px;
  --radius-lg: 15px;
  --shadow-form: 0 12px 28px rgba(16, 42, 86, 0.1);
  --transition: 180ms ease;
  --content-width: 1184px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #e9f4ff 0%, #f6fbff 100%);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
button,
input {
  font: inherit;
}
.hidden {
  display: none !important;
}
.w-full {
  width: 100%;
}
.text-center {
  text-align: center;
}
.uppercase {
  text-transform: uppercase;
}
.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-main {
  flex: 1 0 auto;
}
.page-content {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 20px;
}

.header-main {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #dce8f5;
}
.header-top {
  width: min(var(--content-width), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.header-brand-logo {
  width: auto;
  max-width: 150px;
  height: 48px;
  object-fit: contain;
}
.header-brand-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.header-brand-subtitle {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}
.hamburger-menu {
  display: grid;
  gap: 4px;
  padding: 9px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.hamburger-menu:hover {
  background: #eef5fd;
}
.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: 4px;
  background: var(--text);
}

.public-hero {
  overflow: hidden;
  background: #dbeaf8;
}
.top-banner-image {
  display: block;
  width: 100%;
  /* height: clamp(190px, 23vw, 275px); */
  object-fit: cover;
  object-position: center;
}
.public-notices {
  display: grid;
  gap: 12px;
  padding: 22px 38px 18px;
  background: rgba(255, 255, 255, 0.74);
}
.info-card-pepe {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 52px;
  padding: 11px 18px;
  border-left: 4px solid;
  border-radius: 3px;
  font-size: 14px;
}
.info-card-pepe i {
  width: 20px;
  text-align: center;
  font-size: 20px;
}
.info-card-info {
  border-left-color: var(--primary-blue);
  background: var(--info-bg);
  color: #173b73;
}
.info-card-info i {
  color: var(--primary-blue);
}
.info-card-warning {
  border-left-color: var(--warning);
  background: var(--warning-bg);
  color: #735015;
}
.info-card-warning i {
  color: var(--warning);
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 2px 38px 0;
  background: rgba(255, 255, 255, 0.74);
}
.public-grid-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.public-form-panel {
  min-width: 0;
  padding-bottom: 20px;
}
.main-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid #dfebf6;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-form);
}
.main-card-form-section {
  padding: 27px 26px 26px;
}
.public-program-panel {
  min-width: 0;
  align-self: stretch;
  margin-bottom: 20px;
  padding: 27px 26px 23px;
  background: linear-gradient(145deg, #f6fbff 0%, #edf7ff 100%);
  border: 1px solid #e0edf8;
}
.program-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid #98c7cf;
}
.program-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 20px;
}
.section-title {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}
.section-description {
  margin: 20px 0;
  color: #20375e;
  font-size: 14px;
  line-height: 1.55;
}
.section-amount-card {
  padding: 17px 0 13px;
  border-top: 1px dashed #b6ccdc;
  border-bottom: 1px dashed #b6ccdc;
}
.section-amount-label {
  color: #17747c;
  font-size: 13px;
  font-weight: 700;
}
.section-amount-value {
  margin-top: 2px;
  color: #087e87;
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.section-info-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding-top: 16px;
  color: #315174;
}
.section-info-note i {
  margin-top: 3px;
  color: var(--teal);
}
.section-info-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.verification-header {
  display: flex;
  margin-bottom: 18px;
  text-align: left;
  align-items: center;
  gap: 14px;
}
.verification-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
.verification-header::before {
  content: "\f2bd";
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #edf6ff;
  color: var(--primary-blue);
  font-family: "Font Awesome 6 Free";
  font-size: 22px;
  font-weight: 900;
}
.verification-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  text-align: left;
}
.phone-display {
  color: var(--text);
}
.form-divider {
  height: 1px;
  margin: 0 0 20px;
  background: #c8d6e8;
}
.space-y-5 > * + * {
  margin-top: 17px;
}
.form-group-custom {
  margin: 0;
}
.form-label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.form-label i {
  margin-right: 7px;
  color: var(--primary-blue);
}
.form-input-wrapper {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.form-input-wrapper:hover {
  border-color: #91acd0;
}
.form-input-wrapper:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(9, 103, 216, 0.15);
}
.form-input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}
.form-input::placeholder {
  color: #93a2b8;
}
.phone-input-wrapper {
  padding: 0;
}
.iti {
  width: 100%;
}
.iti .iti__tel-input {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  border: 0;
  outline: 0;
  background: transparent;
}
.iti__dropdown-content {
  z-index: 12000;
}
.submit-btn {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-color));
  border: 0;
  border-radius: 4px;
  box-shadow: 0 5px 11px rgba(9, 103, 216, 0.19);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.submit-btn:hover {
  box-shadow: 0 7px 15px rgba(9, 103, 216, 0.25);
  transform: translateY(-1px);
}
.submit-btn:focus-visible {
  outline: 3px solid rgba(9, 103, 216, 0.26);
  outline-offset: 3px;
}
.btn-icon {
  margin-right: 2px;
}
.btn-icon-after {
  font-size: 13px;
}
.btn-secondary {
  background: #63758d;
  box-shadow: none;
}
.btn-group {
  display: flex;
  gap: 11px;
}
.btn-flex {
  flex: 1;
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 5px 0;
}
.otp-input {
  width: 50px;
  height: 56px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  outline: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}
.otp-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(9, 103, 216, 0.15);
}
.error-message {
  display: none;
  margin: 0;
  color: var(--error);
  font-size: 13px;
  text-align: left;
}
.error-message-inline {
  margin-top: 7px;
}
.error-box {
  display: none;
  margin-bottom: 13px;
  padding: 11px 13px;
  color: var(--error);
  background: #fff2f3;
  border: 1px solid #f5c9cf;
  border-radius: 5px;
  font-size: 13px;
}
.error-box i {
  margin-right: 7px;
}
.display-field {
  margin-bottom: 15px;
}
.display-value {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: #f7fbff;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-weight: 600;
}

.footer {
  margin-top: auto;
  padding: 22px 0;
  color: #fff;
  background: linear-gradient(110deg, var(--navy), var(--navy-deep));
}
.footer-inner {
  width: min(var(--content-width), calc(100% - 76px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-security {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 500px;
}
.footer-shield {
  display: grid;
  flex: 0 0 51px;
  width: 51px;
  height: 57px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 16px 16px 20px 20px;
  font-size: 24px;
}
.footer-title {
  font-size: 14px;
  font-weight: 800;
}
.footer-text {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 12px;
}
.footer-copyright {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  text-align: right;
}

.notification-popup {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10020;
  display: flex;
  width: min(335px, calc(100vw - 24px));
  gap: 10px;
  align-items: flex-start;
  padding: 11px;
  color: #173b73;
  background: #fff;
  border: 1px solid #d6e6f6;
  border-left: 3px solid var(--primary-blue);
  border-radius: 8px;
  box-shadow: 0 10px 23px rgba(16, 42, 86, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}
.notification-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.notification-icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--primary-blue);
  background: #eaf4ff;
  border-radius: 50%;
}
.notification-content {
  min-width: 0;
  flex: 1;
}
.notification-title {
  font-size: 12px;
  line-height: 1.45;
}
.notification-subtitle {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}
.notification-close {
  padding: 0 3px;
  color: #789;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

#splash-screen,
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity var(--transition);
}
#splash-screen.is-active,
#loader.is-active {
  display: block;
  opacity: 1;
}
.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border: 4px solid #dce9f6;
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 840px) {
  .page-content {
    width: min(100% - 20px, 720px);
  }
  .header-top {
    width: min(100% - 28px, 720px);
    min-height: 68px;
  }
  .header-brand-logo {
    height: 40px;
    max-width: 118px;
  }
  .header-brand-title,
  .header-brand-subtitle {
    display: none;
  }
  /* .top-banner-image {
    height: clamp(132px, 30vw, 210px);
  } */
  .public-notices {
    gap: 9px;
    padding: 14px 10px 12px;
  }
  .info-card-pepe {
    gap: 11px;
    min-height: 48px;
    padding: 9px 11px;
    font-size: 12px;
  }
  .info-card-pepe i {
    font-size: 18px;
  }
  .public-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }
  .public-form-panel {
    padding-bottom: 0;
  }
  .main-card-form-section,
  .public-program-panel {
    padding: 20px 16px;
  }
  .public-program-panel {
    margin-bottom: 14px;
  }
  .verification-title {
    font-size: 19px;
  }
  .verification-title::before {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
    font-size: 18px;
  }
  /* .verification-subtitle {
    margin-left: 52px;
  } */
  .program-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .section-title {
    font-size: 16px;
  }
  .section-description {
    margin: 15px 0;
    font-size: 12px;
  }
  .section-amount-value {
    font-size: 28px;
  }
  .footer {
    padding: 17px 0;
  }
  .footer-inner {
    width: calc(100% - 36px);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-shield {
    flex-basis: 42px;
    width: 42px;
    height: 47px;
    border-radius: 13px 13px 16px 16px;
    font-size: 19px;
  }
  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .header-brand-subtitle {
    display: none;
  }
  .otp-container {
    gap: 7px;
  }
  .otp-input {
    width: 42px;
    height: 50px;
    font-size: 19px;
  }
  .btn-group {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
