
/* =========================
   INDEX PAGE
========================= */

body.index {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #F7F2F9;
    color: #0A1128;
}

body.index .page-wrapper {
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

body.index .page-header {
    margin-bottom: 15px;
    text-align: center;
}

body.index .page-header img {
    max-width: 140px;
    height: auto;
}

body.index .card {
    background-color: #DACDF2;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 10px;
}

body.index .card h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* GRID */
body.index .button-group {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, 1fr);
}

/* BUTTONS */
body.index .btn {
    display: block;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

body.index .btn.primary {
    background-color: #0A1128;
    color: #FFFFFF;
}

body.index .btn.secondary {
    background-color: #EFE745;
    color: #0A1128;
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 300px;
}

body.index .btn:hover,
body.index .btn:focus {
    background-color: #775ED3;
    color: #FFFFFF;
    outline: 3px solid #0A1128;
    outline-offset: 2px;
}

body.index .page-footer {
    margin-top: 25px;
    opacity: 0.7;
}

body.index .page-footer img {
    max-width: 180px;
    height: auto;
}

body.index .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.index .skip-link:focus {
    top: 10px;
}


/* =========================
   START PAGE
========================= */

body.start {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #F7F2F9;
    color: #0A1128;
}

body.start .page-wrapper {
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

body.start .page-header {
    margin-bottom: 15px;
    text-align: center;
}

body.start .page-header img {
    max-width: 140px;
    height: auto;
}

body.start .card {
    background-color: #DACDF2;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 10px;
}

body.start .card h1 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* FORM */
body.start .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    text-align: left;
}

body.start .form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

body.start .form-value {
    font-size: 1.1rem;
}

body.start input[type="text"] {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #0A1128;
    font-size: 16px;
    height: 28px;
}

/* BUTTON LAYOUT */
body.start .button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.start .button-row {
    display: flex;
    gap: 12px;
}

body.start .btn {
    display: block;
    width: 100%;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

body.start .button-row .btn {
    width: auto;
}

body.start .btn.full {
    width: 100%;
}

body.start .btn.half {
    flex: 1;
}

body.start .btn.primary {
    background-color: #0A1128;
    color: #FFFFFF;
}

body.start .btn.secondary {
    background-color: #EFE745; /* sunflower */
    color: #0A1128;
}

body.start .btn:hover,
body.start .btn:focus {
    background-color: #775ED3;
    color: #FFFFFF;
    outline: 3px solid #0A1128;
    outline-offset: 2px;
}

/* VALIDATION */
body.start .form-error {
    color: #b00020;
    font-weight: bold;
    margin-bottom: 10px;
}

body.start input[aria-invalid="true"] {
    border: 2px solid #b00020;
}

body.start .required {
    color: #b00020;
}

body.start .form-note {
    font-size: 0.9rem;
    margin-top: 12px;
    margin-bottom: 24px;
    text-align: center;
}

body.start .form-instructions {
    font-size: 0.85rem;
    margin-top: 4px;
    color: #333;
}

body.start input:focus,
body.start a:focus,
body.start button:focus {
    outline: 3px solid #775ED3;
    outline-offset: 3px;
}

body.start .page-footer {
    margin-top: 25px;
    opacity: 0.7;
}

body.start .page-footer img {
    max-width: 180px;
    height: auto;
}

body.start .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.start .skip-link:focus {
    top: 10px;
}

body.start .form-error,
body.start .field-error {
    color: #8B0000; /* darker than #b00020 for better contrast */
}


/* =========================
   GET INFO PAGE (UNCHANGED)
========================= */

/* =========================
   GET INFO PAGE
========================= */

body.getinfo {
  background-color: #F7F2F9;
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

body.getinfo main {
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

/* Card */
body.getinfo .card {
  width: 95%;
  max-width: 1100px;
  margin: 16px 0;
  background-color: #DACDF2;
  border-radius: 12px;
  padding: 24px 28px;
}

/* 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;
}

body.getinfo .header-center {
  text-align: center;
  font-weight: 700;
  font-size: 1.6rem;
}

body.getinfo .header-right img {
  max-height: 50px;
}

/* Title */
body.getinfo .page-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

/* Layout */
.getinfo .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 6px;
    align-items: start;
}

body.getinfo .container {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 4px;
}

body.getinfo .container.empty {
  visibility: hidden;
}

/* Inputs */
body.getinfo input {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #0A1128;
  font-size: 16px;
  height: 30px;
}

/* Hosted Fields */
body.getinfo #ccnumber,
body.getinfo #ccexp,
body.getinfo #cvv {
  width: 100%;
  height: 30px;
  min-height: 30px;
}

body.getinfo #cvv {
  width: 100px;
}

/* Labels */
body.getinfo label {
  font-weight: 600;
}

/* Payment Row */
body.getinfo .payment-for-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-left {
  white-space: nowrap;
}

.payment-right {
  font-size: 0.9rem;
  text-align: right;
}

/* Action Section */
body.getinfo .action-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 20px;
}

body.getinfo .verify-text {
  text-align: center;
  font-size: 0.9rem;
}

body.getinfo .action-left,
body.getinfo .action-right {
  display: flex;
  justify-content: center;
}

/* Button */
body.getinfo .clsButton {
  background-color: #0A1128;
  color: #ffffff;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

body.getinfo .clsButton:hover {
  background-color: #775ED3;
}

/* Error */
.error-text {
  color: #b00020;
  font-weight: 600;
  margin-bottom: 10px;
  white-space: pre-line;
}

/* Readonly */
body.getinfo input[readonly] {
  background-color: #F7F2F9;
  border: 1px dashed #775ED3;
}

/* Input Group */
.input-group {
  display: flex;
  flex-direction: column;
}

/* Ack Section */
.ack-section {
  margin-top: 20px;
  text-align: center;
}

/* =========================
   MISSING FROM TEMPLATE (ADDED)
========================= */

/* Balance Info */
.balance-info {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

body.getinfo .field-error {
  min-height: 16px;
  font-size: 0.8rem;
  color: #b00020;
}

body.getinfo input.error {
  border: 2px solid #b00020;
}

body.getinfo .clsButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-errors a {
  text-decoration: underline;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.getinfo input[type="text"],
.getinfo input[type="email"] {
    width: 100%;
    max-width: 420px;
}

.getinfo .lbl {
    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;
}

body.getinfo .title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 10px 0 16px;
}

body.getinfo .title-left {
  text-align: left;
  font-size: 0.95rem;
}

body.getinfo .title-center {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}

body.getinfo .title-right {
  text-align: right;
  font-size: 0.85rem;
}

body.getinfo .ack-section {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
}

body.getinfo .title-row {
  grid-column: 1 / -1;
}

body.getinfo .lbl {
  display: flex;
  align-items: center;
  min-width: 130px;
}

.input-wrap {
  display: flex;
  align-items: center;
}

.lbl {
  display: flex;
  align-items: center;
}

body.getinfo .field-error {
  grid-column: 2;
}

body.getinfo input:focus,
body.getinfo button:focus {
    outline: 3px solid #775ED3;
    outline-offset: 3px;
}

body.getinfo .field-error,
.error-text {
  color: #8B0000;
}

body.getinfo .clsButton:active {
    background-color: #775ED3;
    transform: scale(0.98);
}

#surcharge {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-left: 0;
    color: #0A1128;
}

/* remove focus outline since it shouldn't ever be focused */
#surcharge:focus {
    outline: none;
}

body.index *,
body.index *::before,
body.index *::after,
body.start *,
body.start *::before,
body.start *::after {
    box-sizing: border-box;
}






/* =============================
   ALL DESKTOP STYLES ABOVE ONLY
============================== */











/* =========================
   ALL MOBILE SYTLING AT BOTTOM
========================= */

@media (max-width: 899px) {
    body.index .button-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 599px) {
    body.index .button-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body.start .button-row {
        flex-direction: column;
    }

    body.start .btn.half {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* kill 2-column grid */
    .getinfo .form-grid {
        display: block;
    }

    /* stack each field */
    body.getinfo .container {
        display: block;
        margin-bottom: 12px;
    }

    /* labels above inputs */
    body.getinfo .lbl {
        display: block;
        margin-bottom: 4px;
        min-width: 0;
    }

    /* input wrapper reset */
    .input-wrap {
        display: block;
    }

    /* full-width inputs */
    body.getinfo input,
    .getinfo input[type="text"],
    .getinfo input[type="email"] {
        max-width: 100%;
    }

    /* remove grid positioning artifacts */
    body.getinfo .field-error {
        grid-column: auto;
    }

    /* header stacks */
    body.getinfo .header-bar {
        display: block;
        text-align: center;
    }

    /* title stacks */
    body.getinfo .title-row {
        display: block;
        text-align: center;
    }

    /* actions stack */
    body.getinfo .action-section {
        display: block;
        text-align: center;
    }
    
    body.getinfo #ccnumber,
    body.getinfo #ccexp,
    body.getinfo #cvv {
        height: auto;
        min-height: 36px;
    }

    body.getinfo input {
        height: auto;
        min-height: 36px;
    }
}



