/* ===============================
   LISTED.ID BASE STYLESHEET (MVP)
   File: /public/css/style.css
   =============================== */

/* RESET + BASE ELEMENTS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: #ffffff;
  color: #111111;
}

html, body {
  height: 100%; /* Ensure the full height is available */
  margin: 0;    /* Remove default spacing */
  padding: 0;
}

/* LINKS */
a {
  color: #e53f26;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
h1 { font-size: 2.75rem; }   /* ~44px */
h2 { font-size: 2rem; }      /* ~32px */
h3 { font-size: 1.5rem; }    /* ~24px */
h4 { font-size: 1.25rem; }   /* ~20px */
h5 { font-size: 1rem; }      /* ~16px */
h6 { font-size: 0.875rem; }  /* ~14px */

/* TEXT ELEMENTS */
p {
  margin-bottom: 1rem;
}
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

/* TEXT VARIATIONS */
.subtitle-text {
  font-size: 0.625rem;       /* 10px */
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  color: #444;
}
.small-text {
  font-size: 0.875rem;       /* 14px */
  color: #333;
}
.leader-text {
  font-size: 1.375rem;       /* 22px */
  font-weight: 300;
  line-height: 1.5;
  color: #111;
}
.text-red {
  color: red;
}

/* Resend link (subtle emphasis) */
.small-link {
  font-weight: 600;
  color: #777;
  text-decoration: none;
}

.small-link:hover {
  color: #e53f26;
}

/* FORMS */
input, textarea, select, button {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #e53f26;
  outline-offset: 2px;
}

/* LAYOUT UTILITIES */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}
.text-center {
  text-align: center;
}
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.pt-1 { padding-top: 1rem; }
.pb-1 { padding-bottom: 1rem; }

/* MEDIA QUERIES (Mobile-First) */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }      /* ~48px */
  h2 { font-size: 2.25rem; }   /* ~36px */
  h3 { font-size: 1.75rem; }   /* ~28px */
  h4 { font-size: 1.5rem; }    /* ~24px */
  h5 { font-size: 1.125rem; }  /* ~18px */
  h6 { font-size: 1rem; }      /* ~16px */
}

/* Slightly smaller h1 for phones */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
}

/* Prevent content from being too tight on very narrow screens */
body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* BUTTON STYLE FOR LINKS */
a.button {
  display: inline-block;
  background-color: #000;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  text-decoration: none;
  margin: 0.25rem;
}
a.button:hover {
  background-color: #e53f26;
}
button {
  cursor: pointer;
}

/* MARGIN UTILITIES */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* PADDING UTILITIES */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }

/* HORIZONTAL MARGIN */
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-2 { margin-left: 1rem; margin-right: 1rem; }
.mx-3 { margin-left: 1.5rem; margin-right: 1.5rem; }

/* HORIZONTAL PADDING */
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Full-height section with centered middle content */
.fullpage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Section Hero */
.section-hero h1 {
  font-size: 3rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-hero h1 {
    font-size: 3.5rem;
  }
}

/* Success message box */
.success {
  background-color: #e6ffed;
  color: #1a7f49;
  border: 1px solid #1a7f49;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Error message box */
.error {
  background-color: #ffecec;
  color: #b00020;
  border: 1px solid #b00020;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Optional: refine inline link in message box */
.success a,
.error a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.success a:hover,
.error a:hover {
  text-decoration: none;
}