html,
body {
  height: 100%;
  margin: 0;
  padding: 1rem;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  box-sizing: border-box;
  background-color: white;
  overflow-x: hidden;
  overflow-y: auto;
}

h1 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

h2 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

row {
  display: flex;
  flex-direction: row;
}

column {
  display: flex;
  flex-direction: column;
}

/* === LOADER OVERLAY === */
/* Full-page overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* stays above everything */
}

/* Circular spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e0f2f1; /* light teal background */
  border-top: 6px solid teal; /* teal accent */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinning animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade-out effect */
.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* === HEADER === */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem 1rem;
}

.logo {
  letter-spacing: 0.02rem;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #00a0a4;
}

.logo-pay {
  background-color: #00a0a4;
  color: white;
  padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.75rem, 1.5vw, 1rem);
  border-radius: 625rem;
}

.tracking-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.tracking-form input {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  padding: clamp(0.6rem, 1vw, 1.25rem) clamp(1rem, 1.5vw, 2rem);
  border-radius: 1rem;
  border: 1px solid #ccc;
}

.tracking-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
}

.form-buttons {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background-color: #7cbfc8;
  color: white;
  border: none;
  border-radius: 1rem;
  padding: clamp(0.6rem, 1vw, 1.25rem) clamp(1rem, 1.5vw, 2rem);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-buttons:hover {
  background-color: #00a0a4;
}

/* === TRACKING OUTPUT === */
.trackingOutput-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: none;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.parcelDetails {
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1vw, 2.5rem) clamp(2rem, 1.5vw, 4rem);
  border: 1px solid #ccc;
  border-radius: 2rem;
}

.billDetails {
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 1vw, 2.5rem) clamp(2rem, 1.5vw, 4rem);
  border: 1px solid #ccc;
  border-radius: 2rem;
}

.bill-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 1rem;
  column-gap: 2rem;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#paymentStatus {
  color: red;
}

/* === PAYMENT OPTIONS SECTION === */
.paymentOptions-section {
  margin-top: 2rem;
  margin-bottom: 2rem 5rem;
  flex-direction: row;
  justify-content: flex-start;
  align-items: left;
  gap: 0.5rem;
  padding: 2rem 2rem;
  display: none;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background-color: white;
  color: #00a0a4;
  padding: clamp(0.75rem, 1vw, 1.5rem) clamp(1rem, 1vw, 2rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #00a0a4;
  border-radius: 1rem;
  cursor: pointer;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: flex-start;
}

.accordion-header i {
  margin-left: 1rem;
}

.accordion-header.active:after {
  transform: rotate(-180deg);
}

.accordion-content {
  display: none;
  overflow: hidden;
  background-color: aliceblue;
  padding: clamp(0.75rem, 1vw, 1.5rem) clamp(1rem, 1vw, 2rem);
  border-radius: 1rem;
  transition: max-height 0.5s ease;
  margin-bottom: 0.5rem;
}

.paycash-form input {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  padding: clamp(0.6rem, 1vw, 1.25rem) clamp(1rem, 1.5vw, 2rem);
  border-radius: 1rem;
  border: 1px solid #ccc;
  max-width: 5rem;
}

/* === PAYMENT CONFIRMATION === */
.payment-confirmation {
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin-top: 1rem;
  display: none;
}

/* === FOOTER === */
footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer p {
  color: #ccc;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-align: center;
}

.quick-links-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
}

footer .quick-links {
  color: #ccc;
  text-decoration: none;
  margin-right: 1rem;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

footer .quick-links:hover {
  color: #00a0a4;
}

footer .quick-links i.fab {
  margin-right: 0.5rem;
}



@media (max-width: 770px) {
  #btn-search .btn-text {
    display: none;
  }

  #btn-paycash .btn-text {
    display: none;
  }
}