:root {
  --blue: #1E5FE0;
  --blue-dark: #15439E;
  --bg: #FFFFFF;
  --field-bg: #EEF2FB;
  --text: #1B2430;
  --text-soft: #6B7684;
  --border: #D7E0F2;
  --error: #D23C3C;
  --footer-bg: #EDEFF5;
}
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 24px;
}

.mark {
  width: 52px; height: 52px;
  margin-bottom: 10px;
  border-radius: 30%;
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
}


.page h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin: 4px 0 2px;
}
.page .subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 26px;
}

.card {
  width: 100%;
  max-width: 340px;
}

.stage { transition: opacity 0.25s ease; }
.stage.hidden { display: none; }

.field { margin-bottom: 16px; text-align: left; }
label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 4px;
  font-weight: 600;
}
input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--field-bg);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus { outline: none; border-color: var(--blue); background: #fff; }
input.invalid { border-color: var(--error); }
.field-error { font-size: 0.75rem; color: var(--error); margin-top: 5px; min-height: 14px; }

button {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
button:hover { background: var(--blue-dark); }
button:active { transform: scale(0.98); }
button[disabled] { opacity: 0.6; cursor: default; }

.link-btn {
  background: none;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 14px;
  padding: 4px;
}
.link-btn:hover { background: none; text-decoration: underline; }

/* Full-width blue divider line */
.divider-full {
  width: 100%;
  border: none;
  border-top: 2px solid var(--blue);
  margin: 20px auto;
  max-width: 95%;
  
}

.qr-section {
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
	justify-content: space-between;
  }

  /* Center the main title */
  .qr-section h3 {
    text-align: center;
    font-size: 20px;
    color: #2c2c54;
    margin-bottom: 0px;
    margin-top: 10px;
  }

  /* Layout container to place instructions on left and QR code on right */
  .qr-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  /* Instructions styling */
  .instructions {
    flex: 1;

  }

  .instructions h4 {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: #222;
  }

  .instructions ol {
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
  }

  .instructions li {
    margin-bottom: 8px;
  }

  /* QR code container on the right */
  #qrcode {
    width: 120px;
    height: 120px;
    background: #000; /* Outer black box frame as seen in the image */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  /* Inner gray box placeholder matching the image */
  #qrcode::after {
    content: "";
    width: 90px;
    height: 90px;
    background: #dcdcdc; 
  }

  /* QR code container on the right */
  #qrcode {
    width: 120px;
    height: 120px;
    background: #000; /* Outer black box frame as seen in the image */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  /* Inner gray box placeholder matching the image */
  #qrcode::after {
    content: "";
    width: 90px;
    height: 90px;
    background: #dcdcdc; 
  }

/* Confirmation */
.confirm { text-align: center; }
.check-wrap { width: 56px; height: 56px; margin: 0 auto 18px; }
.check-circle {
  stroke: var(--blue); stroke-width: 2; fill: none;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: draw 0.6s ease forwards;
}
.check-tick {
  stroke: var(--blue); stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: draw 0.3s ease forwards 0.55s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm h2 { margin-bottom: 6px; }
.confirm p { color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; }
.confirm .eta {
  display: inline-block; margin-top: 16px; padding: 8px 14px;
  background: var(--field-bg); border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.8rem; color: var(--blue-dark); font-weight: 600;
}

/* Grey footer */
footer {
  background: var(--footer-bg);
  padding: 22px 24px;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
footer a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
footer a:hover { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .check-circle, .check-tick { animation: none; stroke-dashoffset: 0; }
}
