/* Base */
body {
  margin: 0 auto;
  font-family: 'Rubik', sans-serif;
}

.btn-primary {
  background: #F00F55;
  border: 1px solid #F00F55;
}

.btn-primary:hover {
  background: #be0c45;
  border: 1px solid #be0c45;
}

.btn a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.style-name { color: #F00F55; }

footer {
  width: 100%;
  text-align: center;
  padding: 8px 12px;
}
footer p { font-size: 12px; margin: 0; }
footer p a { color: #F00F55; text-decoration: none; }

.head-message .charges {
  border: 1px solid #ececec;
  padding: 10px 12px;
  height: fit-content;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.selector {
  border: 1px solid #555;
  border-radius: 3px;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.lang {
  padding: 5px 8px;
  border-right: 1px solid #555;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  color: #555;
  user-select: none;
  flex: 0 0 auto;
}
.lang:last-child { border-right: none; }
.lang:hover,
.lang.active {
  background-color: #555;
  color: #fff;
}

/* Cards: remove fixed viewport sizing; let them size naturally and center nicely */
.card {
  width: 100%;
  max-width: 760px;       /* comfortable default for tablets/small desktops */
  height: auto;           /* remove fixed 70vh */
  max-height: none;
  overflow: visible;      /* content drives height; inner boxes can scroll if needed */
  margin: 0 auto;
}

/* Images already have .img-fluid from Bootstrap; cap extremes just a bit */
.brand-logo,
.status-illustration {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  max-width: 100%;
}

/* OTP input alignment tweaks (keeps things centered on mobile) */
.otp-input {
  letter-spacing: 0.08em;
}

/* Payment options: wrap on small, line up nicely on large */
.pay-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.pay-img {
  max-height: 32px;
  height: auto;
  width: auto;
}

/* --- Responsive Breakpoints --- */

/* XS–SM (phones) */
@media (max-width: 575.98px) {
  .card {
    max-width: 100%;
    padding: 1rem !important; /* tame p-5 on very small screens */
  }

  .head-message .charges {
    max-height: 40vh; /* give more breathing room on tiny screens */
  }

  /* Make two-column button rows stack */
  .row .col-6 {
    width: 100%;
    max-width: 100%;
  }

  /* Center the "back" button area when stacked */
  .row .col-6.d-flex { justify-content: center; }

  /* Reduce logo/illustration footprint a little */
  .brand-logo { max-width: 180px; }
  .status-illustration { max-width: 220px; }

  /* Ensure inputs are full width on mobile even if HTML has w-50 */
  input.form-control {
    width: 100% !important;
  }
}

/* MD (tablets) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .card { max-width: 680px; }
  .brand-logo { max-width: 200px; }
  .status-illustration { max-width: 260px; }
}

/* LG (desktops) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .card { max-width: 780px; }
}

/* XL+ (wider desktops) */
@media (min-width: 992px) {
  .card { max-width: 880px; }
  .head-message .charges { max-height: 360px; }
}

@media (min-width: 1400px) {
  .card { max-width: 940px; }
}

/* --- Payment logo sizing & alignment --- */
.pay-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;      /* center on all breakpoints */
  align-items: center;
  gap: 1rem;                    /* consistent spacing */
}

.form-check.form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* Cap the payment logos */
.pay-img {
  display: block;
  max-height: 48px;             /* <= tweak if you want them smaller/larger */
  max-width: 160px;             /* safety cap for very wide logos */
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Keep labels from stretching the row */
.form-check-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Make the radio align vertically with the logo */
.form-check-input {
  margin-top: 0 !important;
}

/* On small screens, keep everything tidy */
@media (max-width: 575.98px) {
  .pay-img { max-height: 40px; max-width: 120px; }
}


/* --- FORCE payment logo responsiveness --- */
.pay-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 150px !important;   /* cap absolute width */
  max-height: 60px !important;   /* cap absolute height */
  object-fit: contain;
}

/* Align radio and image cleanly */
.form-check-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Center the whole payment section */
.pay-options {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

/* For smaller devices */
@media (max-width: 576px) {
  .pay-img {
    max-width: 100px !important;
    max-height: 40px !important;
  }
}

.invalid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}
