body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #181715;
  color: #F1EBDE;
  overflow-x: hidden;
}

:root {
  --gutter: 14px;
  --margin: 28px;
  --columns: 12;
}

/* Base Grid Container */


.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: var(--gutter);
  padding: 0 var(--margin);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
}

h1 { 
  font-family: 'big-caslon-fb', 'Georgia', serif;  
  font-weight: 800;
  font-style: normal;  
}

h2 { 
    font-family: 'big-caslon-fb', 'Georgia', serif;  
    font-weight: 700;
    font-style: italic;
}

h3 {
    font-style: italic;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 28px;
  padding-right: 28px;
  width: 100%;
  max-height: 22px;
  box-sizing: border-box;
  flex-wrap: nowrap; /* this is the magic */
} 

.hero-content {
  grid-column: span 12;
  background-image: url('assets/images/HeroBackgroundMVP.webp');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2rem; /* or whatever spacing feels good */
  padding-bottom: 12rem;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.fourohfour-content {
  grid-column: span 12;
  background-image: url('assets/images/404BackgroundMVP.webp');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2rem; /* or whatever spacing feels good */
  padding-bottom: 12rem;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.hero-content .logo {
    fill:#F1EBDE;
    grid-column: 6 / span 2;
}

.fourohfour-content .logo {
    fill:#F1EBDE;
    grid-column: 6 / span 2;
}

.hero-content h1 {
  grid-column: 3 / span 8;
}

.fourohfour-content h1 {
  grid-column: 3 / span 8;
  margin-top: 4rem;
}

.hero-content h2 {
  grid-column: 3 / span 8;
}

.fourohfour-content h2 {
  grid-column: 3 / span 8;
}

.hero-content form {
  grid-column: 3 / span 9;
}

.flex-spacer {
  grid-column: 1 / -1; /* span all 12 columns */
  height: 20rem; /* or however much space you want */
}

.cta-form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem; /* optional: move form down a bit */
  font-family: 'Montserrat', sans-serif;
}

.four-oh-four {
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.cta-form input {
  padding: 0 1rem;
  width: 80%;
  height: 44px;
  font-size: 1rem;
  border: 1px solid #D1D86D;
  border-radius: 4px;
  margin-right: 0.5rem;
  color: #F1EBDE;
  background-color: rgba(24, 23, 21, 0.5);
  outline: none;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.nostyle {
    text-decoration: none;
}

.cta-form input::placeholder {
  color: rgba(241, 235, 222, 0.6); /* soft creamy starlight placeholder */
  font-size: 0.95rem;
}

.cta-form button {
  padding: 0.6rem;
  color: #F1EBDE;
  background-color: rgba(24, 23, 21, 0.5);
  border: none;
  font-weight: bold;
  border: 1px solid #D1D86D;
  border-radius: 40px;
  cursor: pointer;
}

.four-oh-four button {
  grid-row: 2;
  padding: 0.75rem 2rem;
  color: #F1EBDE;
  background-color: rgba(24, 23, 21, 0.5);
  border: 1px solid #D1D86D;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
}

.center-button {
  grid-column: 4 / span 6;
  display: flex;
  justify-content: center;
  margin-top: 8rem;
}

.center-button button {
  padding: 0.2rem 2rem;
  color: #F1EBDE;
  background-color: rgba(24, 23, 21, 0.5);
  border: 1px solid #D1D86D;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
}


.submit {
    margin-top: 0.1rem;
}

/* Error message styles */
.error-message {
  color: #ff222d; /* Soft branded red or adjust to your palette */
  text-shadow: 0px 0px 4px #181715;
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 400;
  margin-top: 0.25rem;
  padding-left: 0.25rem;
  display: none;
  grid-column: 1 / -1;
}

.error-message.visible {
  display: block;
}

.hidden {
  display: none;
}

.form-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  width: 100%;
  align-items: center;
}

.form-group .error-message {
  position: absolute;
  top: 100%;
  left: 0;
  grid-column: 1 / -1; /* 👈 Span across both columns */
  width: 100%;         /* 👈 Ensures it doesn’t shrink */
  text-align: center;  /* 👈 Centers the text nicely */
  padding-top: 0.25rem;
  display: none;
  color:#F1EBDE;
  text-shadow: 0px 0px 10px #ff222d;
  font-size: 0.875rem;
  font-style: italic;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.form-group .error-message.visible {
  display: block;
}

.cta-form input.name-step {
  border-color: #D8E065;
  box-shadow: 0 0 0 2px rgba(216, 224, 101, 0.5); /* soft outer glow */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-step {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: relative;
  width: 100%;
}

.form-step.fade-out {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

#thankYouMessage {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  text-shadow: 0px 0px 10px rgba(24, 23, 21, 0.6); /* subtle grounding */
}

#thankYouMessage.hidden {
  display: none;
}

.header-top {
  padding: 1rem 0;
  width: 100%;
}

.mobius-logo {
  width: 40px;
  height: auto;
}

.social {
  display: flex; 
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  max-width: 100%;        /* <-- ensures it can't exceed the container */
  box-sizing: border-box;
}

.social li {
    display: flex;
    align-items: center;
}

.social img {
    width: 24px;
    height: 24px;
    display: block;
    color: #BCA8C1;
}

.icon {
  width: 24px;
  height: 24px;
  fill: #BCA8C1; /* Or your brand color */
  transition: fill 0.3s ease-in-out, transform 0.3s ease-in-out; /* ✨ the magic */
  display: inline-block;
  vertical-align: middle;
}

a:hover .icon,
a:focus .icon {
  fill: #D8E065; /* Highlight color */
  cursor: pointer;
  transform: scale(1.1);
  transform-origin: center;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
  :root {
    --columns: 8;
  }

.hero-content .logo {
    grid-column: 4 / span 2;
  }

.hero-content h1 {
  grid-column: 2 / span 6;
}

.hero-content h2 {
  grid-column: 2 / span 6;
}

.fourohfour-content .logo {
    grid-column: 4 / span 2;
  }

.fourohfour-content h1 {
  grid-column: 2 / span 6;
}

.fourohfour-content h2 {
  grid-column: 2 / span 6;
}

.hero-content form {
  grid-column: 2 / span 6;
}

.flex-spacer {
  grid-column: 1 / -1; /* span all 12 columns */
  height: 12rem; /* or however much space you want */
}

.center-button {
    grid-column: 2 / span 6; /* Tablet: spans columns 2–7 in 8-col grid */
  }
}


@media (max-width: 768px) {
  :root {
    --columns: 4;
    --margin: 16px;
    --gutter: 10px;
  }

.hero-content .logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  grid-column: 2 / span 2; /* or 1 / span 4 if you want it full-width */
}

.hero-content h1 {
  grid-column: 1 / span 4;
}

.hero-content h2 {
  grid-column: 1 / span 4;
}

.fourohfour-content .logo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  grid-column: 2 / span 2; /* or 1 / span 4 if you want it full-width */
}

.fourohfour-content h1 {
  grid-column: 1 / span 4;
}

.fourohfour-content h2 {
  grid-column: 1 / span 4;
}

.hero-content form {
  grid-column: 1 / span 4;
}

.flex-spacer {
  grid-column: 1 / -1; /* span all 12 columns */
  height: 12rem; /* or however much space you want */
}

.center-button {
    grid-column: 1 / span 4; /* Mobile: spans full width in 4-col grid */
  }

}