* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;   /* Center horizontally */
  align-items: center;       /* Center vertically */
  padding: 20px;
  overflow-y: auto;          /* Enable vertical scrolling */
  overflow-x: hidden;
  background: linear-gradient(135deg, #511713, #6b1f1a, #7d2921);
}

/* Card */

.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin: auto;
}

.content {
  padding: 24px;
}

/* Logo */

.logo {
  text-align: center;
  margin-bottom: 10px;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Heading */

.title {
  font-size: 24px;
  font-weight: 600;
  color: #511713;
  text-align: center;
  margin-bottom: 4px;
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Step Indicator */

.step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.progress {
  width: 100%;
  height: 5px;
  background: #ececec;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress span {
  display: block;
  width: 50%;
  height: 100%;
  background: #511713;
  transition: width .3s ease;
}

/* Form */

.group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
}

.required {
  color: #d60000;
}

input,
.group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: all .25s ease;
}

input:focus,
.group select:focus {
  outline: none;
  border-color: #511713;
  box-shadow: 0 0 0 3px rgba(81, 23, 19, .12);
}

/* Buttons */

.btn,
.back-btn,
.otp-btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

.btn {
  border: none;
  background: #511713;
  color: #fff;
}

.btn:hover {
  background: #65211d;
}

.back-btn {
  border: 2px solid #511713;
  background: #fff;
  color: #511713;
}

.back-btn:hover {
  background: #f7f4f4;
}

.otp-btn {
  border: none;
  background: #fee13d;
  color: #511713;
  font-weight: 700;
}

.otp-btn:hover {
  background: #f8d300;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Footer */

.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.footer a {
  color: #511713;
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  width: 100%;
  max-width: 350px;
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  animation: popup .3s ease;
}

.modal-content h3 {
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 20px;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================================
   FIELD VALIDATION
========================================================= */

.field-error {
  display: none;
  color: #c62828;
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}

.input-box input.input-error {
  border-color: #c62828;
  background: #fff8f8;
}

.input-box input.input-error:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.input-box input.input-valid {
  border-color: #2e7d32;
}

.input-box input.input-valid:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

@keyframes popup {
  from {
    transform: scale(.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Tablet */

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .card {
    max-width: 400px;
  }

  .content {
    padding: 22px;
  }

  .logo img {
    width: 70px;
    height: 70px;
  }

  .title {
    font-size: 22px;
  }
}
/* ==========================================================================
   DOWNLOADS SECTION
   ========================================================================== */
.downloads-container {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  text-align: center;
}

/* HIGHLIGHTED <P> TITLE ABOVE BUTTONS */
.downloads-title {
  display: block;             /* Ensures it sits on its own line above buttons */
  width: fit-content;
  margin: 0 auto 12px auto;    /* Centers the tag and adds space above buttons */
  background-color: #fee13d;   /* Accent highlight color matching OTP button */
  color: #511713;              /* Main theme color */
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.download-link {
  display: inline-block;
  margin: 4px;
  padding: 9px 16px;
  background-color: #511713;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

.download-link:hover {
  background-color: #72231d;
}
/* Mobile */

@media (max-width: 480px) {
  body {
    padding: 12px;
    align-items: flex-start;
  }

  .card {
    max-width: 100%;
    border-radius: 14px;
  }

  .content {
    padding: 18px;
  }

  .logo img {
    width: 60px;
    height: 60px;
  }

  .title {
    font-size: 20px;
  }

  .subtitle,
  .footer {
    font-size: 12px;
  }

  input,
  .group select,
  .btn,
  .back-btn,
  .otp-btn {
    height: 42px;
    font-size: 14px;
  }

  .modal-content {
    max-width: 100%;
  }
}