body {
  background: #000;
  color: #fff;
  margin: 0;
  min-height: 100vh;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 0 2vw;
}

@media (max-width: 600px) {
  .container {
    min-height: 60vh;
    padding: 0 4vw;
  }
}

.logo {
  font-family: "owner-xxwide", sans-serif;
  font-style: italic;
  font-size: 6vw;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0;
  text-align: center;
}

/* Homepage logo - small size */
.worklift-logo-homepage {
  display: block;
  font-family: 'owners-xwide', sans-serif;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  fill: #fff;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap; /* Never wrap text */
  line-height: 1;
  box-sizing: border-box;
  overflow: hidden;
  /* SVG size control */
  width: 135px !important;
  height: auto !important;
  max-width: 92svw !important;
}

/* Legal pages logo - normal size */
.worklift-logo-legal {
  display: block;
  font-family: 'owners-xwide', sans-serif;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile-first responsive scaling for homepage SVG logo */
@media (min-width: 400px) {
  .worklift-logo-homepage {
    width: 150px !important;
  }
}

@media (min-width: 600px) {
  .worklift-logo-homepage {
    width: 180px !important;
  }
}

@media (min-width: 900px) {
  .worklift-logo-homepage {
    width: 220px !important;
  }
}

@media (min-width: 1200px) {
  .worklift-logo-homepage {
    width: 272px !important;
  }
}

.autofill-input {
  display: block;
  margin: 1.65em auto 0 auto;
  text-align: center;
  font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic; 
  /* font-weight: bold; */
  font-size: 1.296rem;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  opacity: 0;
  letter-spacing: 0.03em;
  min-height: 1.5em;
  padding: 9px 14px;
  transition: opacity 2.08s cubic-bezier(0.4, 0, 0.2, 1) .75s, border-color 0.3s ease;
  width: auto;
  min-width: 374px;
  max-width: 374px;
  box-sizing: border-box;
  outline: none;
  position: relative;
}

.autofill-input.fade-in {
  opacity: 1;
}

/* Only apply special cursor positioning in email phase */
.autofill-input.email-phase:focus {
  text-align: left;
  text-indent: 1.8em;
}

/* When user has typed content, center the text */
.autofill-input.email-phase.has-content {
  text-align: center;
  text-indent: 0;
}

.autofill-input.email-phase.has-content:focus {
  text-align: center;
  text-indent: 0;
}

.autofill-input::placeholder {
  text-align: center;
  text-indent: 0;
  color: rgba(255, 255, 255, 0.5);
}

.logo-animation-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

.logo-animation-wrapper .worklift-logo-homepage {
  opacity: 0;
  visibility: visible;
  transition: opacity 2.08s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}

.logo-animation-wrapper .worklift-logo-homepage.fade-in {
  opacity: 1;
}

.fonts-loaded .worklift-logo-homepage {
  visibility: visible;
}

.privacy-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* Privacy/Terms page specific styles */
body:has(header .privacy-logo) {
  background: #fff;
}

body:has(header .privacy-logo)::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #000;
  z-index: 100;
}

/* Back button and logo link styles for privacy/terms pages */
.back-button {
  position: fixed;
  top: 18px;
  left: 32px;
  z-index: 200;
  color: #fff;
  font-size: 2.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.back-button:hover {
  opacity: 0.7;
}

.logo-link {
  text-decoration: none;
  display: inline-block;
}

.privacy-content {
  margin-top: 6rem;
  max-width: 800px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 2.5rem 2rem;
  text-align: left;
  position: relative;
  z-index: 101;
  pointer-events: auto;
  font-size: 1.08em;
  color: #232323;
  line-height: 1.7;
}

.privacy-content h2,
.privacy-content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-weight: 700;
  color: #222;
}

.privacy-content h2 {
  font-size: 2em;
  margin-top: 0;
}

.privacy-content h3 {
  font-size: 1.25em;
}

.privacy-content h4 {
  font-size: 1.08em;
  margin-top: 1.4em;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.privacy-content ul {
  margin: 0 0 1.2em 1.5em;
  padding: 0;
  list-style: disc inside;
}

.privacy-content p {
  margin: 0 0 1.15em 0;
}

.privacy-content a {
  color: #0066cc;
  text-decoration: underline;
  word-break: break-all;
}

.privacy-content strong {
  font-weight: 600;
}

footer {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

/* Black footer text on privacy/terms pages */
body:has(header .privacy-logo) footer {
  color: #000;
}

body:has(header .privacy-logo) footer p {
  color: #000;
}

.footer-link, .footer-separator {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  font-size: 1.06em;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #222;
  text-decoration: none;
  margin: 0 0.2em;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #fff;
  text-decoration: none;
}
.footer-separator {
  font-weight: 400;
  pointer-events: none;
  color: #222;
}

.logo-animation-wrapper {
  position: relative;
  display: inline-block;
}

/* Privacy page logo positioning */
.privacy-logo {
  position: fixed !important;
  top: 22px;
  right: 32px;
  z-index: 200;
  margin: 0 !important;
  padding: 0;
  line-height: 1;
  letter-spacing: 0.05em;
  /* Ensure SVG elements are properly positioned */
  display: block;
  width: 160px;
  height: 35px;
  /* Override centering from worklift-logo class */
  text-align: left !important;
  max-width: none !important;
  /* White logo on black header bar */
  fill: #fff;
  color: #fff;
}

/* Remove fade-in from non-homepage logos */
header .worklift-logo-legal {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

.form-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.submit-button {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.8s ease, opacity 0.6s ease;
  white-space: nowrap;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 24.5px;
}

.submit-button.fade-in {
  opacity: 1;
}

.submit-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%) translateY(-1px);
}

.submit-button:active {
  transform: translateX(-50%) translateY(0);
}

.submit-button:disabled {
  background: rgba(255, 255, 255, 0.6);
  color: rgba(0, 0, 0, 0.6);
  cursor: not-allowed;
  transform: translateX(-50%);
}

.feedback-message {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 90px;
  font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #ef4444;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  max-width: 90vw;
  z-index: 100;
}

.feedback-message.fade-in {
  opacity: 1;
}

.feedback-message.success {
  color: #22c55e;
}

.feedback-message.error {
  color: #ef4444;
}

/* Responsive scaling for input field and submit button */
@media (max-width: 599px) {
  .autofill-input {
    font-size: 0.792rem;
    min-width: 202px;
    max-width: 209px;
    padding: 7px 12px;
  }
  
  .submit-button {
    font-size: 0.8rem;
    padding: 7px 13px;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .autofill-input {
    font-size: 1.152rem;
    min-width: 288px;
    max-width: 288px;
    padding: 8px 13px;
  }
  
  .submit-button {
    font-size: 1rem;
    padding: 7px 15px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .autofill-input {
    font-size: 1.224rem;
    min-width: 331px;
    max-width: 331px;
    padding: 9px 14px;
  }
  
  .submit-button {
    font-size: 1.04rem;
    padding: 8px 15px;
  }
}

/* Desktop size (1200px+) keeps the original 1.8rem / 520px / 1.6rem values */

/* Thank you message styles */
.thank-you-message {
  font-size: 1rem;
  color: white;
  text-align: center;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 280px;
  margin: 0 auto;
  margin-top: 20px;
  font-family: inherit;
  font-weight: normal;
}

/* Media queries for thank you message */
@media (min-width: 480px) {
  .thank-you-message {
    width: 360px;
  }
}

@media (min-width: 768px) {
  .thank-you-message {
    font-size: 1.3rem;
    width: 430px;
  }
}

@media (min-width: 1024px) {
  .thank-you-message {
    font-size: 1.4rem;
    width: 480px;
  }
}

@media (min-width: 1200px) {
  .thank-you-message {
    font-size: 1.5rem;
    width: 480px;
  }
}
