:root {
  --bg: #f4f4f4;
  --panel: #ffffff;
  --border: #d9d9d9;
  --text: #222;
  --muted: #666;
  --primary: #2a72b5; /* osTicket-ish blue */
  --primary-hover: #215c92;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.brand img {
  height: 32px;   /* good based on your SVG’s ~37px natural height */
  width: auto;
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  color: #333;
}

input {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #8ab6e6;
  box-shadow: 0 0 0 3px rgba(42, 114, 181, 0.18);
}

.full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* equal-width buttons (you prefer consistent layout) */
.actions button,
.actions a.button {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.actions .secondary {
  background: #efefef;
  color: #222;
}

.actions .primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.actions .primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* --- Appended request-account styles (override prior where collisions occur) --- */
:root {
  --primary-color: #003366;
  --meta-gap: 60px;
}

/* --- RESET & BASICS --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Use min-height so footer can stick to bottom when content is short, but allow scrolling when content is tall */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    url('background elements.png'),
    url('background img.png'),
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(237,237,237,1) 50%, rgba(196,196,196,1) 98%, rgba(171,171,171,1) 100%);
  background-position: center center, center center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover;
  background-attachment: fixed, fixed, fixed;
  background-color: #ffffff;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 0; /* keeps small vertical padding; main spacing is inside .header-content */
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.2);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

/* MATCH request-account reference: narrower horizontal padding */
.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 13px; /* <-- matches request-account reference */
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.logo-link { display:block; padding-left:0; }
.logo { width:320px; height:65px; display:block; object-fit:contain; object-position:left center; }

.contact-us {
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#555;
  font-weight:600;
  font-size:14px;
  transition: color 0.2s;
  flex-shrink:0;
  padding-right:14px;
}
.contact-us:hover { color: #0056b3; }
.contact-icon { width:20px; height:20px; margin-right:8px; fill: currentColor; }

/* --- MAIN CONTENT --- */
main { flex: 1 1 auto; display:flex; align-items:center; justify-content:center; width:100%; }

.landing-container {
  width: min(65%, 1000px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px 40px;
}

.landing-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 12px -5px rgba(0, 0, 0, 0.4), 0 5px 5px -5px rgba(0, 0, 0, 0.3);
  border: 1px solid #ccc;
  padding: 80px 60px;
  text-align: center;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

h1 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 56px);
  color: #000;
  margin-bottom: 40px;
  font-weight: 700;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  line-height:1;
}

.inline-icon { height:0.9em; width:auto; display:inline-block; position:relative; top:2px; }

.intro-text {
  font-size:1.25em;
  color:#444;
  margin: 0 auto 40px auto;
  text-align:left;
  line-height:1.6;
  max-width:80ch;
}

.see-below {
  color: var(--primary-color);
  font-weight: 500;
  display: block;
  text-align: center;
  margin-top: 33px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.landing-links {
  margin-top: 0;
  display:flex;
  flex-direction:row;
  justify-content:center;
  align-items:center;
  width:100%;
  gap:40px;
}

.big-link {
  text-decoration: none;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #ffffff !important;
  font-weight: 600;
  padding: 15px 40px;
  background-color: #003366;
  border: 1px solid #003366;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 320px;
  text-align: center;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px 0;
  color: #666;
  font-size: 13px;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left a { color:#555; text-decoration:none; font-weight:600; margin-right:5px; }
.footer-left span { margin:0 5px; color:#ccc; }
.footer-left a:hover { color: var(--primary-color); text-decoration: underline; }

.footer-right { margin: 0; color:#888; font-weight:400; }
.footer-terms { display: none; }

/* --- MOBILE ONLY ADJUSTMENTS --- */
@media (max-width: 1100px) {
  /* header padding/height to match request-account mobile */
  .header-content {
    padding: 10px 20px; /* request-account mobile */
    min-height: 60px;   /* request-account mobile */
  }

  /* allow page scrolling on mobile */
  html, body { min-height: 100vh; height: auto; overflow: auto; }

  .logo { width: auto; max-width: 180px; height: auto; }

  /* match horizontal spacing of reference on mobile */
  .landing-container {
    width: 100%;
    padding: 20px 10px; /* matches request-account mobile */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Make card smaller and centered between header/footer while allowing scroll if needed */
  .landing-card {
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    /* keep preserved gap to footer visually similar to ref B */
    padding-bottom: calc(20px + var(--meta-gap)); /* helps match the perceived meta gap */
    width: 95%;
    max-width: 640px;
    max-height: none;
    overflow: auto;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* center vertically between header and footer when space allows */
    align-items: stretch;
  }

  /* increase H1 slightly for user's request while ensuring it fits */
  h1 {
    font-size: 28px; /* a bit larger on mobile */
    margin-top: 18px;
    margin-bottom: 20px;
    text-align: center;
    white-space: nowrap; /* prefer single line */
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
  }

  .inline-icon { height: 0.9em; top: 2px; }

  .intro-text {
    font-size: 15px;
    margin: 30px auto 18px auto;
    line-height: 1.8;
    max-width: none;
    text-align: left;
  }

  .see-below { font-size: 18px; margin-top: 16px; margin-bottom: 18px; }

  .landing-links { flex-direction: column; gap: 12px; align-self: center; width: 100%; max-width: 420px; }

  .big-link { width: 100%; min-width: 0; padding: 16px 18px; font-size: 16px; box-sizing: border-box; }

  /* Footer mobile formatting to match request-account */
  .footer-content {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .footer-left { justify-self: start; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .footer-left a { margin-right: 6px; font-size: 13px; }
  .footer-left a[href*="/terms"] { display: none; }
  .footer-left span { display: none; }

  /* show centered terms link on mobile and match style */
  .footer-terms {
    display: inline-block;
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
  }

  .footer-terms a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    display: inline-block;
  }

  .footer-right { justify-self: end; text-align: right; white-space: nowrap; min-width: 0; }
}

/* --- Request-account form overrides (HTML merge) --- */
:root {
  --meta-gap: 58px;
}

html { height: 100%; overflow: hidden; }

body {
  background-image:
    url('assets/background img.png'),
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(237,237,237,1) 50%, rgba(196,196,196,1) 98%, rgba(171,171,171,1) 100%);
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  background-color: #fff;
  height: 100vh;
  overflow: hidden;
}

.landing-container {
  flex: 1;
  padding: 0;
}

.landing-card {
  padding: 1px 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.title {
  container-type: inline-size;
  width: 100%;
}

.title h1 {
  margin-top: 0px;
  padding-top: 10px;
  font-size: 42px;
  color: #003366;
  padding-bottom: 0px;
  margin-bottom: 0px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0,0,0,.1);
}

.sub {
  color: #444;
  margin-top: 5px;
  margin-bottom: 15px;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container (max-width: 440px) {
  .sub .brand-text { display: none; }
}

.form-area { text-align: left; width: 100%; }

.form-grid {
  gap: 15px;
  margin-bottom: 0;
}

.form-row.full { grid-column: span 2; }

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  text-align: left;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: #f9f9f9;
  width: 100%;
  box-sizing: border-box;
}

input:focus {
  border-color: #0056b3;
  outline: none;
  background: #fff;
}

.actions {
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.actions button { flex: 1; }

button {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s ease;
}

.actions .primary {
  background-color: #003366;
  color: #fff;
  border: 1px solid #003366;
}

.actions .primary:hover { background-color: #002244; }

.actions .secondary {
  background-color: #f0f4f8;
  color: #0056b3;
  border: 1px solid #0056b3;
}

.actions .secondary:hover { background-color: #e0eaf5; }

/* --- BOTTOM ZONE --- */
.bottom-zone {
  height: var(--meta-gap);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-top: 15px;
  margin-top: 0;
  width: 100%;
  position: relative;
}

.bottom-zone::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 0 0;
}

.hint {
  font-size: 12px;
  font-style: oblique;
  color: #727272;
  margin: 0;
  line-height: 1.2;
  max-width: calc(100% - 160px);
  text-align: left;
  position: relative;
}

.sign-in-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sign-in-text { color: #666; font-size: 13px; }

.sign-in-btn {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #0056b3;
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  text-decoration: none;
  cursor: pointer;
  font-weight: normal;
}

.sign-in-btn:hover { text-decoration: underline; background: #fff; }

/* --- MOBILE SPECIFIC STYLING FROM REFERENCE --- */
@media (max-width: 1100px) {
  html, body { overflow: auto; height: auto; min-height: 100vh; }
  .header-content { padding: 10px 20px; min-height: 60px; }
  .logo { max-width: 180px; height: auto; }
  .landing-container { width: 100%; padding: 20px 10px; }
  .landing-card { padding: 30px 20px; width: 95%; max-height: none; }

  .title h1 { font-size: 26px; white-space: nowrap; margin-bottom: 10px; }

  .sub { margin-bottom: 30px; }
  .sub .sub-next { display: block; margin: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .form-row.full { grid-column: span 1; }

  .bottom-zone { height: auto; margin-top: 30px; padding-top: 0; }
  .bottom-zone::before { display: none; }

  .meta-row { flex-direction: column-reverse; gap: 25px; }
  .sign-in-container { flex-direction: column; width: 100%; }
  .sign-in-text { display: block; width: 100%; text-align: center; margin-bottom: 2px; }
  .sign-in-btn { width: fit-content; padding: 8px 24px; }

  .hint {
    max-width: 100%;
    text-align: center;
    width: 100%;
    padding-top: 15px;
  }
  .hint .sentence { display: block; }
  .hint::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
  }

  .footer-content {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .footer-left { justify-self: start; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .footer-left a { margin-right: 6px; font-size: 13px; }
  .footer-left a[href*="/terms"] { display: none; }
  .footer-left span { display: none; }
  .footer-terms { display: inline-block; justify-self: center; text-align: center; white-space: nowrap; font-size: 13px; }
  .footer-terms a { color: #555; text-decoration: none; font-weight: 600; font-size: 13px; display: inline-block; }
  .footer-right { justify-self: end; text-align: right; white-space: nowrap; min-width: 0; }
}
