
/* ========================================
   BASE MOBILE FIRST — 320px and up
   ======================================== */

/* Force no horizontal overflow ever */
html, body {
  overflow-x: hidden;
  width: 100%;
}

* {
  max-width: 100%;
}

/* ── NAVBAR ── */
.navbar {
  padding: 0 1rem;
}

.navbar-inner {
  height: 52px;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.navbar-logo {
  flex-shrink: 0;
  gap: 0.4rem;
}

.logo-badge {
  width: 28px;
  height: 28px;
  font-size: 0.65rem;
  border-radius: 7px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 0.85rem;
  white-space: nowrap;
}

.navbar-divider {
  display: none;
}

.navbar-portal-label {
  display: block;
  font-size: 0.6rem;
  white-space: normal;
  line-height: 1.25;
  max-width: 130px;
}

/* ── HERO ── */
.hero {
  padding: 2rem 1rem 2.5rem;
}

.hero-inner {
  gap: 0.85rem;
  max-width: 100%;
}

.hero-badge {
  font-size: 0.62rem;
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.07em;
}

.badge-pulse {
  width: 6px;
  height: 6px;
}

.hero-title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 100%;
}

.hero-notice {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.notice-svg {
  width: 12px;
  height: 12px;
}

/* ── MAIN ── */
.main-content {
  margin: 1.25rem auto;
  padding: 0 0.875rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ── CARD ── */
.card {
  padding: 1.25rem 1rem 1.25rem;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.card-title {
  font-size: 1rem;
}

.card-subtitle {
  font-size: 0.78rem;
}

/* ── FORM — single column on tiny screens ── */
.form-row {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-group {
  gap: 0.35rem;
}

.form-group.full-width {
  margin-bottom: 0.75rem;
}

label:not(.radio-card):not(.checkbox-label):not(.group-label) {
  font-size: 0.78rem;
}

.group-label {
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font-size: 0.85rem;
  padding: 0.58rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  min-height: 100px;
}

.field-hint {
  font-size: 0.7rem;
}

/* ── RADIO CARDS — horizontal row on mobile ── */
.radio-card-group {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.radio-card-inner {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
}

.radio-card-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.radio-card-title {
  font-size: 0.85rem;
}

.radio-card-desc {
  font-size: 0.72rem;
}

.radio-check-indicator {
  top: 0.7rem;
  right: 0.7rem;
  width: 16px;
  height: 16px;
}

/* ── CHECKBOX ── */
.checkbox-text {
  font-size: 0.76rem;
  line-height: 1.5;
}

/* ── BUTTON ── */
.btn-submit {
  font-size: 0.875rem;
  padding: 0.78rem 1rem;
  margin-top: 0.4rem;
}

.btn-svg {
  width: 15px;
  height: 15px;
}

/* ── SUCCESS ── */
.success-card {
  padding: 2rem 1rem;
  text-align: center;
}

.success-icon-wrap {
  width: 58px;
  height: 58px;
  margin-bottom: 1.1rem;
}

.success-svg {
  width: 26px;
  height: 26px;
}

.success-title {
  font-size: 1.2rem;
}

.success-message {
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.reference-box {
  padding: 0.85rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.ref-label {
  font-size: 0.67rem;
}

.ref-number {
  font-size: 1.2rem;
}

.success-note {
  font-size: 0.77rem;
}

/* ── FOOTER ── */
.site-footer {
  padding: 1.5rem 1rem;
}

.footer-copy {
  font-size: 0.75rem;
}

.footer-dept {
  font-size: 0.72rem;
}

.footer-notice {
  font-size: 0.68rem;
  line-height: 1.55;
}

.footer-links {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-link {
  font-size: 0.72rem;
}

/* ========================================
   360px — Small Android phones
   ======================================== */
@media (min-width: 360px) {
  .logo-badge {
    width: 30px;
    height: 30px;
    font-size: 0.68rem;
  }

  .logo-name {
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .card {
    padding: 1.35rem 1.1rem;
  }

  .card-title {
    font-size: 1.05rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 0.875rem;
    padding: 0.6rem 0.8rem;
  }
}

/* ========================================
   390px — iPhone 14 / Samsung S22
   ======================================== */
@media (min-width: 390px) {
  .navbar {
    padding: 0 1.1rem;
  }

  .navbar-inner {
    height: 54px;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .logo-name {
    font-size: 0.9rem;
  }

  .hero {
    padding: 2.25rem 1.1rem 2.75rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .main-content {
    padding: 0 1rem 2.5rem;
  }

  .card {
    padding: 1.5rem 1.2rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .form-row {
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .btn-submit {
    font-size: 0.9rem;
    padding: 0.82rem 1.1rem;
  }
}

/* ========================================
   430px — iPhone Pro Max / Large Android
   ======================================== */
@media (min-width: 430px) {
  .navbar-inner {
    height: 56px;
  }

  .logo-badge {
    width: 33px;
    height: 33px;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .card {
    padding: 1.6rem 1.35rem;
  }

  .card-title {
    font-size: 1.15rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 0.9rem;
    padding: 0.63rem 0.85rem;
  }

  .radio-card-inner {
    padding: 0.9rem 1rem;
  }
}

/* ========================================
   480px — Large phones / small tablets
   ======================================== */
@media (min-width: 480px) {
  .navbar {
    padding: 0 1.25rem;
  }

  .navbar-inner {
    height: 58px;
  }

  /* Start showing portal label */
  .navbar-divider {
    display: inline-block;
    height: 16px;
  }

  .navbar-portal-label {
    display: block;
    font-size: 0.62rem;
    white-space: normal;
    line-height: 1.25;
    max-width: 160px;
  }

  .logo-badge {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .logo-name {
    font-size: 1rem;
  }

  .hero {
    padding: 2.5rem 1.25rem 3rem;
  }

  .hero-badge {
    font-size: 0.65rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .main-content {
    margin: 1.5rem auto;
    padding: 0 1.1rem 3rem;
  }

  .card {
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 12px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-subtitle {
    font-size: 0.82rem;
  }

  /* 2-column grid kicks in here */
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
  }

  label:not(.radio-card):not(.checkbox-label):not(.group-label) {
    font-size: 0.8rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 0.875rem;
    padding: 0.62rem 0.85rem;
  }

  /* Radio cards back to side by side */
  .radio-card-group {
    grid-template-columns: 1fr 1fr;
  }

  .radio-card-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem;
    gap: 0.3rem;
  }

  .radio-card-icon {
    margin-bottom: 0.1rem;
  }

  .success-card {
    padding: 2.25rem 1.5rem;
  }

  .reference-box {
    padding: 0.9rem 2rem;
    width: auto;
  }
}

/* ========================================
   540px — Surface Duo / mid tablets
   ======================================== */
@media (min-width: 540px) {
  .navbar-portal-label {
    font-size: 0.65rem;
    max-width: 180px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .card {
    padding: 1.9rem 1.65rem 1.65rem;
  }

  .form-row {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 0.9rem;
    padding: 0.65rem 0.88rem;
  }

  textarea {
    min-height: 115px;
  }
}

/* ========================================
   600px — Large tablets portrait
   ======================================== */
@media (min-width: 600px) {
  .navbar {
    padding: 0 1.5rem;
  }

  .navbar-inner {
    height: 60px;
  }

  .navbar-portal-label {
    font-size: 0.68rem;
    max-width: 200px;
  }

  .logo-badge {
    width: 35px;
    height: 35px;
    font-size: 0.75rem;
  }

  .logo-name {
    font-size: 1.05rem;
  }

  .hero {
    padding: 2.75rem 1.5rem 3.25rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .main-content {
    margin: 1.75rem auto;
    padding: 0 1.25rem 3rem;
  }

  .card {
    padding: 2rem 1.85rem 1.75rem;
    border-radius: 13px;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .form-row {
    gap: 1.1rem;
    margin-bottom: 1.1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    padding: 0.66rem 0.9rem;
  }

  textarea {
    min-height: 120px;
  }

  .btn-submit {
    font-size: 0.92rem;
    padding: 0.84rem 1.25rem;
  }

  .success-card {
    padding: 2.75rem 2rem;
  }
}

/* ========================================
   768px — iPad portrait / standard tablet
   ======================================== */
@media (min-width: 768px) {
  .navbar {
    padding: 0 1.75rem;
  }

  .navbar-inner {
    height: 64px;
  }

  .navbar-portal-label {
    font-size: 0.73rem;
    max-width: none;
    white-space: nowrap;
  }

  .navbar-divider {
    height: 20px;
  }

  .logo-badge {
    width: 36px;
    height: 36px;
    font-size: 0.77rem;
    border-radius: 9px;
  }

  .logo-name {
    font-size: 1.08rem;
  }

  .hero {
    padding: 3rem 2rem 3.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.38rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-notice {
    font-size: 0.7rem;
  }

  .main-content {
    margin: 2rem auto;
    padding: 0 1.5rem 3.5rem;
  }

  .card {
    padding: 2.25rem 2.25rem 2rem;
    border-radius: 14px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-subtitle {
    font-size: 0.86rem;
  }

  .form-row {
    gap: 1.2rem;
    margin-bottom: 1.2rem;
  }

  label:not(.radio-card):not(.checkbox-label):not(.group-label) {
    font-size: 0.83rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 0.9rem;
    padding: 0.68rem 0.92rem;
  }

  textarea {
    min-height: 130px;
  }

  .radio-card-inner {
    padding: 1.1rem 1.15rem;
  }

  .radio-card-title {
    font-size: 0.92rem;
  }

  .radio-card-desc {
    font-size: 0.77rem;
  }

  .btn-submit {
    font-size: 0.94rem;
    padding: 0.86rem 1.4rem;
  }

  .success-card {
    padding: 3rem 2.5rem;
  }

  .success-title {
    font-size: 1.45rem;
  }

  .success-message {
    font-size: 0.88rem;
  }

  .ref-number {
    font-size: 1.45rem;
  }
}

/* ========================================
   1024px — iPad landscape / small laptop
   ======================================== */
@media (min-width: 1024px) {
  .navbar {
    padding: 0 2rem;
  }

  .navbar-inner {
    height: 68px;
    max-width: 860px;
    margin: 0 auto;
    justify-content: flex-start;
  }

  .navbar-left {
    gap: 1rem;
  }

  .navbar-portal-label {
    font-size: 0.78rem;
  }

  .logo-badge {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .logo-name {
    font-size: 1.1rem;
  }

  .hero {
    padding: 3.5rem 2rem 4rem;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .hero-subtitle {
    font-size: 1.03rem;
  }

  .main-content {
    margin: 2.5rem auto;
    padding: 0 1.5rem 4rem;
    max-width: 860px;
  }

  .card {
    padding: 2.5rem 2.5rem 2.25rem;
    border-radius: 15px;
  }

  .card-title {
    font-size: 1.33rem;
  }

  .form-row {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    font-size: 0.9rem;
    padding: 0.68rem 0.95rem;
  }

  textarea {
    min-height: 140px;
  }

  .btn-submit {
    font-size: 0.95rem;
    padding: 0.88rem 1.5rem;
  }
}

/* ========================================
   1280px — Standard laptop
   ======================================== */
@media (min-width: 1280px) {
  .navbar-inner {
    height: 68px;
  }

  .hero {
    padding: 4rem 2rem 4.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .main-content {
    padding: 0 2rem 4rem;
  }

  .card {
    padding: 2.75rem 2.75rem 2.25rem;
    border-radius: 16px;
  }

  .card-title {
    font-size: 1.35rem;
  }

  .form-row {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .success-card {
    padding: 3.5rem 3rem;
  }

  .success-title {
    font-size: 1.55rem;
  }

  .ref-number {
    font-size: 1.6rem;
  }
}

/* ========================================
   1440px — Large desktop
   ======================================== */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 3.25rem;
  }

  .main-content {
    max-width: 860px;
  }
}
