/* =========================
   START PAGE BASE LAYOUT
========================= */

body.start {
  background-color: #e9e9ee;
  margin: 0;
  padding-top: 20px;
  font-family: Arial, sans-serif;
  color: #0A1128;
}

body.start main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 20px;
}

body.start .card {
  background: #DACDF2;
  border-radius: 18px;
  padding: 30px 30px;
  width: 100%;
  max-width: 820px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* =========================
   FORM LAYOUT
========================= */

body.start .container {
  display: grid;
  grid-template-columns: 150px 300px;
  justify-content: center;
  column-gap: 12px;
  row-gap: 14px;
  margin-bottom: 14px;
}

/* Labels */
body.start .lbl {
  text-align: right;
  padding-right: 6px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* Right column alignment */
body.start .container > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Inputs */
body.start input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 8px;
  background-color: #ffffff;
  border: 2px solid #775ED3;  /* purple */
}

body.start .tooltip-text {
  position: absolute;
  max-width: 260px;
  background-color: #0A1128;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.3;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;

  z-index: 1000;
}

/* Show on hover + focus */
body.start #MaxPmtDisplay:hover + .tooltip-text,
body.start #MaxPmtDisplay:focus + .tooltip-text {
  opacity: 1;
}

/* Positioning */
body.start #MaxPmtDisplay {
  position: relative;
}

body.start #MaxPmtDisplay + .tooltip-text {
  margin-top: 6px;
}

/* =========================
   INPUT GROUP (NAME + BUTTON)
========================= */

body.start .input-group-horizontal {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 300px;
}

body.start .input-group-horizontal input {
  flex: 1;
  min-width: 0;
}

body.start .input-group-horizontal #notme-btn {
  flex: 0 0 auto;
  min-width: 0;
}

/* =========================
   ALERTS & TEXT
========================= */

body.start .alert-banner {
  background-color: #EFE745;
  color: #0A1128;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

body.start .alert-inline {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b00020;
}

body.start .readonly-text {
  width: 100%;
  max-width: 300px;
  padding: 10px;

  background-color: #DACDF2;   /* lilac */
  color: #0A1128;

  border: none;
  border-radius: 8px;

  text-align: left;
  box-sizing: border-box;
  font-weight: 600;

  cursor: default;
}

body.start .readonly-text::after {
  font-size: 0.75rem;
  font-weight: normal;
}

body.start .readonly-text:focus {
  outline: none;
}

body.start .form-instructions {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* =========================
   ACTION GROUP
========================= */

body.start .action-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Base button reset */
body.start .action-group button,
body.start .action-group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 140px;
  height: 44px;

  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;

  text-decoration: none;
  border: none;
  cursor: pointer;

  font-family: inherit;
  line-height: normal;
  padding: 0;
}

/* Primary buttons */
body.start #btn-next,
body.start #btn-change {
  background-color: #0A1128;
  color: #ffffff;
}

/* Receipt button */
body.start #btn-receipt {
  background-color: #EFE745;
  color: #0A1128;
}

/* Shared hover state */
body.start #btn-next:hover,
body.start #btn-change:hover,
body.start #btn-receipt:hover {
  background-color: #775ED3;
  color: #ffffff;
}

/* Not Me button */
body.start #notme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 12px;

  border-radius: 10px;
  border: none;

  background-color: #0A1128;
  color: #ffffff;

  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

body.start #notme-btn:hover {
  background-color: #775ED3;
  color: #ffffff;
}

/* =========================
   HEADER & FOOTER
========================= */

body.start header {
  margin-bottom: 15px;
}

body.start header img {
  max-width: 140px;
  width: 100%;
  height: auto;
}

body.start .start-footer {
  max-width: 220px;
  height: auto;
  margin-top: 25px;
}
/* =========================
   ACCESSIBILITY
========================= */

body.start .skip-link {
  position: absolute;
  left: -9999px;
}

body.start .skip-link:focus {
  left: 10px;
  top: 10px;
  background: #0A1128;
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

/* =========================
   ACCESSIBILITY - FOCUS STATES
========================= */

body.start a:focus,
body.start button:focus,
body.start input:focus {
  outline: 3px solid #775ED3;
  outline-offset: 2px;
}

/* Improve contrast specifically for yellow button */
body.start #btn-receipt:focus {
  outline: 3px solid #0A1128;
}

body.start input:focus {
  border-color: #775ED3;
}

/* =========================
   ACCESSIBILITY - FIELD ERRORS
========================= */

body.start input.error {
  border: 2px solid #b00020;
}

body.start .field-error {
  display: block;
  color: #b00020;
  width: 100%;
  font-size: 0.8rem;
  margin-top: 4px;
}

body#form-errors a {
  text-decoration: underline;
  cursor: pointer;
}

body.start .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =========================
   GET INFO PAGE - BASE LAYOUT
========================= */

body.getinfo main {
  display: flex;
  justify-content: center;
  padding: 8px 16px 8px;
}

/* Card */
body.getinfo .card {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  background-color: #DACDF2;
  border-radius: 12px;
  padding: 24px 28px 10px;
}

/* Header */
body.getinfo .header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 120px;
}

body.getinfo .header-left img {
  max-height: 100px;
  width: auto;
}

body.getinfo .header-center {
  text-align: center;
  justify-self: center;
  font-weight: 700;
  font-size: 1.6rem;
}

body.getinfo .header-right img {
  max-height: 50px;
  width: auto;
}

body.getinfo .header-left {
  justify-self: start;
}

body.getinfo .header-right {
  justify-self: end;
}

/* Title */
body.getinfo .page-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

/* Grid */
body.getinfo .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.getinfo .container {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 4px;
}

body.getinfo .container > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.getinfo .container.empty {
  visibility: hidden;
}

/* Inputs */

/* base input */
body.getinfo input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #0A1128;
  height: 40px;
  box-sizing: border-box;
}

/* Payment fields */
body.getinfo #ccnumber,
body.getinfo #ccexp,
body.getinfo #cvv {
  width: 100%;
  min-height: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
}

/* Labels */
body.getinfo label {
  font-weight: 600;
}

/* Payment For */
body.getinfo .payment-for-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

body.getinfo .payment-for-row .label {
  font-weight: 600;
}

/* =========================
   ACTION SECTION (FINAL)
========================= */

body.getinfo .action-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

/* Left text */
body.getinfo .verify-text {
  grid-column: 1;
  text-align: center;
  font-size: 0.9rem;
}

/* Center captcha */
body.getinfo .action-left {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Right button */
body.getinfo .action-right {
  grid-column: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   Accessibility
========================= */

body.getinfo input:focus {
  outline: 3px solid #775ED3;
}

body.getinfo #ccnumber:focus-within,
body.getinfo #ccexp:focus-within,
body.getinfo #cvv:focus-within {
  outline: 3px solid #775ED3;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: #0A1128;
  color: #fff;
  padding: 8px 12px;
}

.payment-for-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.payment-left {
  white-space: nowrap;
}

.payment-right {
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.field-hint {
  font-size: 0.8rem;
  margin-top: 4px;
  color: #0A1128;
}

.input-error {
  border: 2px solid #b00020;
  background-color: #fdecea;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b00020'%3E%3Ccircle cx='6' cy='6' r='5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

.input-error:focus {
  outline: 3px solid #b00020;
  box-shadow: 0 0 0 3px #775ED3;
}

.index-footer {
  height: 70px;
  max-height: 70px;
}

/* Index button layout */
body.index .container {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}

body.index .btn {
  display: block;
  width: 100%;
}

@media (max-width: 900px) {
  body.index .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  body.index .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.index .receipt-btn {
  background-color: #EFE745;
  color: #0A1128;
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 20px auto;
  text-align: center;
}

body.index .receipt-btn:hover {
  background-color: #d6cf3d;
  color: #0A1128;
}

body.index .btn:hover,
body.start .btn:hover {
  background-color: #775ED3;
  color: #ffffff;
}

.start-footer {
  height: 70px;
  max-height: 70px;
  margin-top: 15px;
}

body.start .receipt-btn {
  background-color: #EFE745;
  color: #0A1128;
  display: inline-block;
  padding: 0 22px;
  min-height: 44px;
  line-height: 44px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

body.start .receipt-btn:hover {
  background-color: #775ED3;
  color: #0A1128;
}

body.start .clsButton,
body.start .receipt-btn {
  min-width: 160px;
  text-align: center;
}

/* =========================
   GET INFO PAGE - REFINEMENTS / OVERRIDES
========================= */

/* ---- Page Shell Overrides ---- */
body.getinfo {
  background-color: #F7F2F9;
  margin: 0;
  font-family: Arial, sans-serif;
}

body.getinfo .header-left img {
  max-height: 100px;
}

body.getinfo .header-center {
  text-align: center;
  font-weight: 700;
  font-size: 1.6rem;
}

body.getinfo .header-right img {
  max-height: 50px;
}

/* Layout */
/* ---- Layout Overrides ---- */
body.getinfo .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
  row-gap: 6px;
  align-items: start;
}

body.getinfo .container.empty {
  visibility: hidden;
}

body.getinfo #cvv {
  width: 100px;
}


body.getinfo .payment-left {
  white-space: nowrap;
}

body.getinfo .payment-right {
  font-size: 0.9rem;
  text-align: right;
}

body.getinfo .verify-text {
  text-align: center;
  font-size: 0.9rem;
}

/* ---- Buttons ---- */
body.getinfo .clsButton {
  background-color: #0A1128;
  color: #ffffff;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

body.getinfo .clsButton:hover {
  background-color: #775ED3;
}

/* Readonly */
body.getinfo input[readonly] {
  background-color: #DACDF2;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: #0A1128;
  cursor: default;
}

/* Input Group */
body.getinfo .input-group {
  display: flex;
  flex-direction: column;
}

body.getinfo .input-group input[readonly] {
  height: 40px;
}

/* Ack Section */
body.getinfo .ack-section {
  margin-top: 20px;
  text-align: center;
}

/* ---- Validation / Errors ---- */
body.getinfo .balance-info {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

body.getinfo .field-error {
  min-height: 8px;
  font-size: 0.8rem;
  color: #b00020;
  font-weight: 600;
}

body.getinfo input.error {
  border: 2px solid #b00020;
  background-color: #fff5f5;
}

body.getinfo .clsButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.getinfo #form-errors a {
  text-decoration: underline;
  cursor: pointer;
}

body.getinfo .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

body.getinfo input[type="text"],
body.getinfo input[type="email"] {
  width: 100%;
  max-width: 420px;
}

body.getinfo .lbl {
  display: flex;
  align-items: flex-start;
  height: 100%;
  min-width: 130px;
}

body.getinfo .skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background-color: #0A1128;
  color: #FFFFFF;
  padding: 8px 12px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 4px;
}

body.getinfo .skip-link:focus {
  top: 10px;
  outline: 3px solid #EFE745;
  outline-offset: 2px;
}

/* ---- Header / Title Layout ---- */
body.getinfo .title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 6px 0 10px;
}

body.getinfo .title-left {
  font-size: 0.9rem;
}

body.getinfo .title-center {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

body.getinfo .title-right {
  text-align: right;
  font-size: 0.8rem;
}

body.getinfo .ack-section {
  margin-top: 6px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
}

body.getinfo .title-row {
  grid-column: 1 / -1;
}

body.getinfo .input-wrap {
  display: flex;
  align-items: center;
  height: 40px;
}

body.getinfo .logo-wrap {
  display: inline-block;
  background-color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

body.getinfo #form-errors {
  display: none;
  max-width: 600px;
  margin: 0 auto 12px;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
}

body.getinfo #form-errors.has-errors {
  display: block;
  max-width: 900px;
  margin: 0 auto 10px;
  background-color: #EFE745;
  border-left: 6px solid #b00020;
  padding: 8px 12px;
  border-radius: 6px;
}

body.getinfo .error-list {
  margin: 6px 0 0;
  padding-left: 18px;
  column-count: 2;
  column-gap: 30px;
  font-size: 0.9rem;
}

body.getinfo .error-list li {
  break-inside: avoid;
  margin-bottom: 4px;
}

body.getinfo #ccnumber iframe,
body.getinfo #ccexp iframe,
body.getinfo #cvv iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
}

/* Valid */
body.getinfo .cc-valid {
  outline: 2px solid #2e7d32;
  border-radius: 8px;
}

/* Error */
body.getinfo .cc-error {
  outline: 2px solid #b00020;
  border-radius: 8px;
}