/* ---------- CSS Variables ---------- */
:root {
  /* Main colours: lighter bg + slightly warmer tones */
  --bg: #1a2340; /* was #0b1020 */
  --card: #1f2a4d; /* was #11172b */
  --ink: #f3f6fc; /* was #e7eaf2 */
  --muted: #b3bcc8; /* was #9aa4b2 */
  --brand: #5fa0ff; /* was #4c8dff */
  --brand-ink: #0f1a34;
  --ok: #16a34a;
  --warn: #f59e0b;
  --error: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.25); /* slightly softer shadow */
}

/* ---------- Reset ---------- */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(
      1200px 700px at 10% -10%,
      #2b3a6a 0%,     /* lighter blue start */
      #1a2340 40%,    /* mid navy */
      #12192d 100%    /* deep but not pitch black */
    ),
    var(--bg);
}

/* ---------- Layout ---------- */
.container{
  max-width: 980px;
  margin: 48px auto;
  padding: 0 20px;
}
.header{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; margin-bottom:22px;
}

.brand {
  display: flex;
  flex-direction: column; /* stack instead of row */
  align-items: left; /* center horizontally */
}

.brand-logo{
  width:40px; height:40px; border-radius:10px;
  background: linear-gradient(135deg, var(--brand), #7aa7ff);
  box-shadow: 0 6px 18px rgba(76,141,255,.35);
}
.brand h1{
  margin:0; font-size:22px; font-weight:700; letter-spacing:.2px;
}
.header-note{ color:var(--muted); font-size:14px; }

/* ---------- Card ---------- */
.card{
  background: linear-gradient(180deg, #121a31, #10162b 40%, #0e1528);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-body{ padding: 22px; }
.card-title{
  margin:0 0 14px 0; font-size:18px; font-weight:600; color:#dfe6f6;
}

/* ---------- Grid form ---------- */
form{ margin:0; }
.form-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
fieldset{
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin:0;
  background: rgba(255,255,255,.05);
}
legend{
  padding:0 8px;
  font-size:14px; font-weight:600; color:#cfe0ff;
}
label{
  display:block; font-weight:500; color:#cbd5e1; font-size:14px; margin-bottom:6px;
}
input[type="text"], select{
  width:100%;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.14);
  background:#0c1224;
  color:var(--ink);
  border-radius:10px;
  outline:none;
  transition: border-color .2s, box-shadow .2s;
}
input[type="text"]::placeholder{ color:#6b7280; }
input[type="text"]:focus, select:focus{
  border-color: rgba(76,141,255,.8);
  box-shadow: 0 0 0 4px rgba(76,141,255,.15);
}

.flatpickr-input:focus, select:focus{
  background-color: #fff !important;
  color: #000 !important;
}

.row-2{
  display:grid; grid-template-columns: 1fr; gap: 12px;
}

/* Only on wider screens convert certain rows to 2 columns */
@media (min-width: 720px){
  .form-grid{ gap: 18px; }
  .row-2{ grid-template-columns: 1fr 1fr; }
}

/* Dropdown caret visibility fix (dark bg) */
select{
  appearance:none;
  background-image: linear-gradient(45deg,transparent 50%, #9db8ff 50%), linear-gradient(135deg, #9db8ff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
}

/* Other reason container */
#otherReasonContainer{ margin-top: -4px; }

/* PayPal + status */
#paypal-button-container{
  margin-top: 10px;
}
.status{
  display:none; text-align:center; padding:18px; border-radius:12px;
  background: #0d142a; border:1px dashed rgba(255,255,255,.12);
}
.status p{ margin:8px 0 0 0; color:#cbd5e1; }

/* Loader */
.loader{
  border: 4px solid rgba(255,255,255,.15);
  border-top: 4px solid var(--brand);
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: spin 1s linear infinite;
  margin: 6px auto 0;
}
@keyframes spin{ to { transform: rotate(360deg);} }

/* CTA button (if you add non-PayPal button) */
.button{
  width:100%; padding:14px 16px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), #79a3ff);
  color: var(--brand-ink); font-weight:700; letter-spacing:.2px;
  border:none; cursor:pointer;
  transition: transform .04s ease-in-out, filter .15s;
}
.button:hover{ filter: brightness(1.05); }
.button:active{ transform: translateY(1px); }

/* Disclaimer accordion */
.disclaimer{
  margin-top: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
}
.disclaimer summary{
  cursor:pointer; padding:14px 16px; list-style:none; user-select:none;
  font-weight:600; color:#dfe6f6;
}
.disclaimer summary::-webkit-details-marker{ display:none; }
.disclaimer .content{ padding:0 16px 16px 16px; color:#cbd5e1; font-size:14px; line-height:1.5; }
.disclaimer .content p{ margin:0 0 10px 0; }
.disclaimer .content ul{ margin:0 0 10px 18px; }

/* Helper text */
.helper{ color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Accessibility focus ring for keyboard users */
:focus-visible{ outline: 3px solid rgba(76,141,255,.6); outline-offset: 2px; }

/* Small print */
.small{ font-size:12px; color: var(--muted); }

.tagline {
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: left;
  color: #fff; /* white text */
  font-weight: 500;
}

.tagline strong {
  color: #000;
}

/* Left-side fit note images */
.left-images {
  position: fixed;
  top: 100px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.left-images img {
  width: 270px; /* 180px × 1.5 = 270px */
  height: auto;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer; /* indicate clickable */
  transition: transform 0.2s ease;
}

.left-images img:hover {
  transform: scale(1.02);
}

/* Mobile/tablet: hide images so they don't overlap */
@media screen and (max-width: 1280px) {
  .left-images {
    display: none !important;
  }
}

/* Fullscreen overlay */
.image-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* ---- Contact page layout ---- */
.contact-wrap{
  max-width: 600px;      /* keeps fields narrow and centered */
  margin: 0 auto;        /* centers on the page */
}

.contact-title{
  text-align: center;
  margin: 6px 0 14px 0;
  color: #dfe6f6;
}

/* Inputs (email + textarea + select) */
input[type="email"],
textarea,
select{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.14);
  background:#0c1224;
  color: var(--ink);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s, color .2s;
}

/* Focus to white (like your date/prefix behaviour) */
input[type="email"]:focus,
textarea:focus,
select:focus{
  background-color:#fff !important;
  color:#000 !important;
  border-color: rgba(76,141,255,.8);
  box-shadow: 0 0 0 4px rgba(76,141,255,.15);
}

/* Textarea sizing */
textarea{
  min-height: 160px;
  resize: vertical;
}

/* Submit button centered */
.contact-actions{
  display:flex;
  justify-content:center;
}
.contact-actions .button{
  width:auto;            /* not full width – looks nicer centered */
  padding:12px 18px;
}

/* Card spacing on small screens */
.card.contact-card .card-body{
  padding: 18px;
}
@media (min-width: 720px){
  .card.contact-card .card-body{ padding:24px; }
}

/* Make labels centered on contact page only (optional) */
.contact-wrap label{
  text-align:left;       /* change to center if you prefer */
}

/* Keep dropdown chevrons visible on dark bg */
.contact-wrap select{
  appearance:none;
  background-image:
    linear-gradient(45deg,transparent 50%, #9db8ff 50%),
    linear-gradient(135deg, #9db8ff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 4px),
                       calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start; /* aligns text left */
    gap: 15px;
  }
  .header .button {
    width: 100%;
    text-align: center;
  }
}

