/* =========================
   Base Page Styles
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}


body.index,
body.start {
  background-color: #e9e9ee; 
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-top: 20px;

  font-family: Arial, sans-serif;
  color: #0A1128;
}

/* =========================
   Layout
========================= */
body.index main,
body.start main {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding-top: 5px;
  padding-bottom: 20px; 
}

/* =========================
   Card
========================= */
body.index .card,
body.start .card {
  background: #DACDF2; 
  border-radius: 18px;

  padding: 40px 30px;
  width: 100%;
  max-width: 820px;

  text-align: center;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* =========================
   Header / Logo
========================= */
body.index header,
body.start header {
  text-align: center;
  margin-bottom: 15px;
}

body.index header img,
body.start header img {
  max-width: 280px;
  height: auto;
}

/* =========================
   Typography
========================= */
body.index h1,
body.start h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 0 25px;
}

/* =========================
   Buttons (Shared)
========================= */
body.index .btn,
body.start .btn {
  background-color: #0A1128;
  color: #ffffff;

  min-height: 44px;
  line-height: 44px;
  padding: 0 22px;

  border-radius: 10px;
  border: 2px solid transparent;

  text-decoration: none;
  font-weight: 600;

  display: inline-block;
  text-align: center;

  transition: background-color 0.2s ease;
}

body.index .btn:hover,
body.start .btn:hover {
  border: 2px solid #775ED3;
}

body.index .btn:focus,
body.start .btn:focus {
  outline: 3px solid #0A1128;
  box-shadow: 0 0 0 3px #775ED3;
}

/* =========================
   Start Form Layout
========================= */
body.start .container {
  display: grid;
  grid-template-columns: 140px 300px; /* fixed + fixed = stable alignment */
  justify-content: center;            /* center the whole form block */
  column-gap: 10px;
  row-gap: 12px;
  margin-bottom: 12px;
}

body.start .lbl {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

body.start input[type="text"],
body.start input[type="date"] {
  width: 100%;          /* ? THIS fixes alignment */
  max-width: 300px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Button (Start Page Reference) */
body.start .clsButton,
body.getinfo .clsButton {
  background-color: #0A1128;
  color: #ffffff;

  min-height: 44px;
  padding: 0 22px;

  border-radius: 10px;
  border: none;

  font-weight: 600;
  cursor: pointer;

  transition: background-color 0.2s ease;
}

body.start .clsButton:hover,
body.getinfo .clsButton:hover {
  background-color: #775ED3;
}

body.start .clsButton:focus,
body.getinfo .clsButton:focus {
  outline: 3px solid #0A1128;
  box-shadow: 0 0 0 3px #775ED3;
}

/* =========================
   GET INFO PAGE
========================= */

body.getinfo {
  background-color: #F7F2F9;
  margin: 0;
  font-family: Arial, sans-serif;
}

body.getinfo main {
  display: flex;
  justify-content: center;
  padding: 20px 16px;
}

/* Card */
body.getinfo .card {
  width: 100%;
  max-width: 900px;
  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;
  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.8rem;
  font-weight: 700;
  margin: 10px 0 15px;
}

/* 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: 8px;
}

body.getinfo .container.empty {
  visibility: hidden;
}

/* Inputs */
body.getinfo input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #0A1128;
}

/* Payment fields */
body.getinfo #ccnumber,
body.getinfo #ccexp,
body.getinfo #cvv {
  width: 100%;
  min-height: 40px;
}

body.getinfo #cvv {
  width: 100px;
}

/* Labels */
body.getinfo label {
  font-weight: 600;
}

/* Payment For */
body.getinfo .payment-for-row {
  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;
}

body.getinfo .verify-text {
  justify-self: center;
  text-align: center;
  font-size: 0.9rem;
}

body.getinfo .action-left {
  justify-self: center;
}

body.getinfo .action-right {
  justify-self: center;
}

body.getinfo .action-right {
  max-width: 100%;
}

body.getinfo .clsButton {
  white-space: nowrap;
}

.error-text {
  color: #b00020;
  font-weight: 600;
  margin-bottom: 10px;
  white-space: pre-line;
}

body.getinfo input[readonly] {
  background-color: #F7F2F9;  
  color: #0A1128;
  border: 1px dashed #775ED3; 
  cursor: not-allowed;
}

.payment-for-row {
  grid-column: 1 / -1; /* span full width of grid */
  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;          /* strong error color */
  background-color: #fdecea;          /* subtle red tint */
  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;      /* keep your focus system */
}

.index-footer {
	height: 70px;
	max-height: 70px;
}

/* Index button layout */
body.index .container {
  display: grid;
  grid-template-columns: repeat(5, 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;   /* sunflower */
  color: #0A1128;
  display: block;
  width: 100%;
  max-width: 200px;     /* constrain width */
  margin: 20px auto;    /* top/bottom spacing + center */

  text-align: center;
}

body.index .receipt-btn:hover {
  background-color: #d6cf3d;   /* slightly darker sunflower */
  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;   /* sunflower */
  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 .lbl {
  text-align: right;
  font-weight: 600;
  padding-right: 6px;
  white-space: nowrap;   /* prevents "Defendant Name *" from wrapping */
}

body.start .action-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

body.start .clsButton,
body.start .receipt-btn {
  min-width: 160px;   /* forces equal width */
  text-align: center;
}


body.start #btnpayhelp {
  background: #F97316;   /* orange */
  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 #btnpayhelp:hover,
body.start #btnpayhelp:focus {
    background-color: #775ED3;
    outline: 3px solid #EFE745;
}

body.start .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}