/* LUMIQ brand-aligned styles.
   Colours and typography follow the LUMIQ brand guidelines.
   Primary Blue #0F4761 · Brand Orange #F36B1D · Charcoal #352F3D
   Mid Grey #808080 · Light Grey #F2F2F2 · Body #000000 · White #FFFFFF
   Font: Aptos with Arial fallback. */

:root {
  --blue: #0F4761;
  --orange: #F36B1D;
  --charcoal: #352F3D;
  --grey: #808080;
  --light-grey: #F2F2F2;
  --black: #000000;
  --white: #FFFFFF;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Aptos", Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--light-grey);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
}

.site-header {
  padding: 20px 24px;
  background: var(--white);
  border-bottom: 1px solid #e6e6e6;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

.page {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  background: var(--white);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  border-top: 4px solid var(--orange);
  box-shadow: 0 4px 24px rgba(15, 71, 97, 0.08);
  padding: 36px 36px 28px;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--charcoal);
  font-weight: 700;
}

.subtitle {
  color: var(--grey);
  margin: 0 0 24px;
  font-size: 15px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.req { color: var(--orange); }
.optional { color: var(--grey); font-weight: 400; }

input, textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 71, 97, 0.12);
}

input:invalid:not(:placeholder-shown) {
  border-color: #d64545;
}

textarea { resize: vertical; }

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:hover { background: #d95f16; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--grey); cursor: not-allowed; }

.fineprint {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--grey);
}

.flash {
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 15px;
  background: #eef6f0;
  border: 1px solid #bfe0cb;
  color: #1f6b3b;
}

.flash strong { display: block; margin-bottom: 2px; }

.flash--error {
  background: #fdecec;
  border-color: #f3b4b4;
  color: #a12626;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 18px 16px;
  font-size: 12px;
  color: var(--grey);
  background: var(--light-grey);
}

.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .card { padding: 24px 20px; }
  h1 { font-size: 24px; }
}
