/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: linear-gradient(to right, #eae4de 0%, #f2f5eb 50%, #eefad1 100%);
  color: #434935;
  min-height: 100vh;
}

/* Header styles moved to common.css */

/* Promotional Section */
.promo-section {
  padding: 2rem 1.5rem;
  padding-top: 6rem;
  padding-bottom: 0;
  background: linear-gradient(to right, #eae4de 0%, #f2f5eb 50%, #eefad1 100%);
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .promo-section {
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: auto;
  }
}

.promo-content {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.promo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.promo-headline {
  font-family: "League Spartan", sans-serif;
  font-size: 43.1px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.promo-stat-box {
  display: inline-block;
  background-color: #000000;
  color: #e6f9b9;
  /* Tighten the highlight so it hugs the text like the design */
  padding: 0.09em 0.25em;
  border-radius: 0.15em;
  font-family: "League Spartan", sans-serif;
  font-size: 43.1px;
  font-weight: 700;
  line-height: 1;
}

.promo-description {
  font-family: "Satoshi", sans-serif;
  font-size: 27px;
  color: #000000;
  line-height: 1.3;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.promo-description strong {
  font-weight: 700;
}

.promo-cta {
  font-family: "Satoshi", sans-serif;
  font-size: 27px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  margin-top: calc(27px * 0.5 - 1.5rem);
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  text-align: left;
}

/* Responsive Promotional Section */
@media (max-width: 768px) {
  .promo-text {
    gap: 0.25rem;
  }

  .promo-headline {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
  }

  .promo-stat-box {
    font-size: 1.5rem;
  }

  .promo-description {
    font-size: 18px;
  }

  .promo-cta {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .promo-section {
    padding: 0.5rem 1rem;
    padding-top: 3.5rem;
    padding-bottom: 0;
  }

  .promo-content {
    gap: 0.5rem;
  }

  .promo-text {
    gap: 0.25rem;
  }

  .promo-headline {
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 0.25rem;
  }

  .promo-stat-box {
    font-size: 1.25rem;
    display: inline-block;
  }

  .promo-description {
    font-size: 14px;
    line-height: 1.3;
    margin-top: 0.25rem;
  }

  .promo-cta {
    font-size: 16px;
    margin-top: 0.25rem;
  }
}

/* Form Section */
.form-section {
  padding: 2rem 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0;
  background: linear-gradient(to right, #eae4de 0%, #f2f5eb 50%, #eefad1 100%);
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

@media (max-width: 767px) {
  .form-section {
    padding: 0.5rem 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .form-section {
    padding-top: 1rem;
    padding-bottom: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.form-section-content {
  width: 100%;
  max-width: 48rem;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 480px) {
  .form-section-content {
    max-width: 100%;
    padding: 0;
    justify-content: center;
  }
}

/* Mobile Form Container */
.mobile-form-container {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  display: block;
}

@media (max-width: 480px) {
  .mobile-form-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .mobile-form-container {
    display: none;
  }
}

.mobile-form-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem 1.5rem 1rem 1.5rem;
  background: transparent;
  max-width: 100%;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 767px) {
  .mobile-form-content {
    padding: 0.75rem 1rem 0.5rem 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .mobile-form-content {
    padding: 0.5rem 1rem 0.25rem 1rem;
    gap: 0.75rem;
  }
}

.mobile-form-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
  .mobile-form-header {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

/* Desktop Form Container */
.desktop-form-container {
  display: none;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .desktop-form-container {
    display: flex;
  }
}

.desktop-form-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem 1.5rem 1rem 1.5rem;
  background: transparent;
  max-width: 100%;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 1280px) {
  .desktop-form-content {
    padding: 2rem 2rem 1rem 2rem;
  }
}

.desktop-form-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  align-items: center;
}

/* Form Heading */
.form-heading {
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  color: #000000;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 767px) {
  .form-heading {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .form-heading {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .form-heading {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .form-heading {
    font-size: 43.1px;
  }
}



/* Form Subtitle */
.form-subtitle-text {
  font-family: "Satoshi", sans-serif;
  font-weight: 600;
  color: #434935;
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.free-text {
  color: #9cd212;
}

/* Form Fields Container */
.mobile-form-fields,
.desktop-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 767px) {
  .mobile-form-fields {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .mobile-form-fields {
    gap: 0.75rem;
  }
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.875rem;
  text-align: left;
  margin-left: 0.25rem;
  display: none;
}

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

/* Phone Input Group */
.phone-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.country-code-input {
  width: 5rem;
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
}

/* Weight Input Group */
.weight-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.weight-input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .weight-input-group {
    flex-wrap: wrap;
  }
  
  .weight-input-group .unit-selector {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: flex-start;
  }
}

/* Height Input Group */
.height-input-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  .height-input-group {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
}

.height-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  flex-shrink: 1;
}

.height-input-feet,
.height-input-inch {
  text-align: center;
}

.height-unit-label {
  color: #434935;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  font-family: "League Spartan", sans-serif;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .height-unit-label {
    font-size: 1rem;
  }
}

/* Unit Selector */
.unit-selector {
  display: flex;
  background-color: transparent;
  border-radius: 2rem;
  padding: 0;
  border: none;
  min-width: auto;
  flex-shrink: 1;
  gap: 0.25rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .unit-selector {
    flex-shrink: 0;
    margin-top: 0;
    justify-content: flex-start;
  }
  
  .height-input-group {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.375rem;
    justify-content: space-between;
  }
  
  .height-inputs {
    width: auto;
    flex-shrink: 1;
    display: flex;
    gap: 0.375rem;
    align-items: center;
  }
  
  .unit-selector[data-type="height"] {
    flex-shrink: 0;
    margin-left: 0;
    gap: 0.125rem;
  }
  
  .unit-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }
  
  .height-unit-label {
    font-size: 0.875rem;
  }
}

.unit-selector[data-type="weight"] {
  width: auto;
}

.unit-btn {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: none;
  background-color: rgba(57, 63, 45, 0.2);
  color: #393f2d;
  font-family: "League Spartan", sans-serif;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .unit-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
  }
}

.unit-btn:hover {
  background-color: rgba(57, 63, 45, 0.3);
}

.unit-btn.active {
  background-color: #393f2d;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form Inputs – styled to match reference design */
.form-input-mobile,
.form-input-desktop {
  width: 100%;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  background-color: #f8f6f0;
  /* soft off‑white fill */
  /* Outer solid green/grey border */
  border: 2px solid #3b4228;
  border-radius: 16px;
  color: #434935;
  font-weight: 500;
  font-family: "Satoshi", sans-serif;
  transition: all 0.2s ease;
  /* Soft outer green glow + inner dashed border separated from outer stroke */
  box-shadow: 0 0 0 3px rgba(191, 232, 124, 0.9);
  /* outer light‑green halo */
  outline: 2px dashed #b3b3b3;
  /* inner grey dashed border */
  outline-offset: -6px;
  /* pull dashed border slightly inside */
  position: relative;
  z-index: 1;
}

/* Override width for compact height inputs (ft / in) */
.height-input-feet.form-input-mobile,
.height-input-inch.form-input-mobile,
.height-input-feet.form-input-desktop,
.height-input-inch.form-input-desktop {
  width: 4rem;
  max-width: 4rem;
  flex: 0 0 4rem;
  min-width: 0;
}

@media (min-width: 360px) {
  .height-input-feet.form-input-mobile,
  .height-input-inch.form-input-mobile {
    width: 4.5rem;
    max-width: 4.5rem;
    flex: 0 0 4.5rem;
  }
}

@media (min-width: 480px) {
  .height-input-feet.form-input-mobile,
  .height-input-inch.form-input-mobile {
    width: 5rem;
    max-width: 5rem;
    flex: 0 0 5rem;
  }
}

@media (min-width: 768px) {
  .height-input-feet.form-input-mobile,
  .height-input-inch.form-input-mobile,
  .height-input-feet.form-input-desktop,
  .height-input-inch.form-input-desktop {
    width: 5.6rem;
    max-width: 5.6rem;
    flex: 0 0 5.6rem;
  }
}

/* Height CM Input - Full width on mobile */
.height-input-cm.form-input-mobile,
.height-input-cm.form-input-desktop {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .height-input-cm.form-input-mobile {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }
}

.form-input-mobile:focus,
.form-input-desktop:focus {
  border-color: #1b2414;
  box-shadow: 0 0 0 4px rgba(184, 230, 110, 1);
  outline: none;
  background-color: #ffffff;
}

/* Error state styling */
.form-input-mobile.error,
.form-input-desktop.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

.form-input-mobile.error:focus,
.form-input-desktop.error:focus {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.4);
}

.form-input-mobile::placeholder,
.form-input-desktop::placeholder {
  color: transparent;
}

/* Floating Label for Red Asterisk */
.form-field-group {
  position: relative;
}

.floating-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  /* Placeholder-style text - much darker */
  color: #867a7e;
  font-weight: 700;
  font-family: "Satoshi", sans-serif;
  font-size: 0.875rem;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  background-color: transparent;
  z-index: 2;
  /* ensure label sits above pill background */
  max-width: calc(100% - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Height field label - positioned on first input */
.height-input-group .floating-label {
  left: 0.5rem;
  max-width: calc(100% - 1rem);
}

@media (max-width: 480px) {
  .floating-label {
    font-size: 0.75rem;
  }
  
  .height-input-group .floating-label {
    left: 0.5rem;
    max-width: 3.5rem;
  }
}

.required-star {
  color: #ff3b30;
}

/* Hide label when input has value or is focused */
.form-input-mobile:focus+.floating-label,
.form-input-desktop:focus+.floating-label,
.form-input-mobile:not(:placeholder-shown)+.floating-label,
.form-input-desktop:not(:placeholder-shown)+.floating-label {
  opacity: 0;
  visibility: hidden;
}

.form-input-mobile:focus-visible,
.form-input-desktop:focus-visible {
  box-shadow: 0 0 0 2px rgba(67, 73, 53, 0.3);
  border-color: rgba(67, 73, 53, 0.5);
}

/* Select Dropdown Styles */
.form-select {
  font-family: "Satoshi", sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Bold chevron arrow, like reference design */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' fill='none' stroke='%23222222' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
  accent-color: #393f2d;
}

.form-select:focus>option:checked {
  background: #393f2d !important;
  color: white !important;
}

/* Global Selection Color */
::selection {
  background-color: #393f2d;
  color: white;
}

.form-select::-ms-expand {
  display: none;
}

/* Remove number input spinners */
.form-input-mobile[type="number"]::-webkit-outer-spin-button,
.form-input-mobile[type="number"]::-webkit-inner-spin-button,
.form-input-desktop[type="number"]::-webkit-outer-spin-button,
.form-input-desktop[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-input-mobile[type="number"],
.form-input-desktop[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Eligibility Button */
.eligibility-btn {
  padding: 0.75rem 2rem;
  border-radius: 1.5rem;
  background-color: #393f2d;
  font-weight: 700;
  color: white;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Satoshi", sans-serif;
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
  display: block;
}

.eligibility-btn:hover {
  background-color: #2d3322;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.eligibility-btn:active {
  transform: translateY(0);
}

.eligibility-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: inline-block;
}

.btn-loader.hidden {
  display: none;
}

.btn-text.hidden {
  display: none;
}

/* Privacy Notice */
.privacy-notice {
  font-family: "Satoshi", sans-serif;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  margin-top: 0.1rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .privacy-notice {
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .privacy-notice {
    font-size: 0.6875rem; /* 11px - smaller for desktop to fit in one line */
    white-space: nowrap;
  }
}

.privacy-notice a {
  color: #434935;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.privacy-notice a:hover {
  color: #2d3322;
  text-decoration: underline;
}

/* Success Section */
.success-section {
  display: flex;
}

.success-section.hidden {
  display: none;
}

.success-content {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
}

.success-animation {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.confetti-gif {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto;
}

.tick-mark {
  width: 60px;
  height: 60px;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.success-heading {
  font-family: "League Spartan", sans-serif;
  font-weight: 800;
  color: #434935;
  font-size: 1.875rem;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .success-heading {
    font-size: 2.25rem;
  }
}

.success-text {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  color: #434935;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Popup Modal Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.popup-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.popup-container {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 90%;
  width: 100%;
  max-width: 500px;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #434935;
  cursor: pointer;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background-color: rgba(67, 73, 53, 0.1);
}

.popup-title {
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  color: #434935;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.popup-text {
  font-family: "Satoshi", sans-serif;
  color: #434935;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.popup-btn {
  margin-top: 0.5rem;
}

.btn {
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Satoshi", sans-serif;
}

.btn-primary {
  background-color: #b5ec2c;
  color: #434935;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #a5dc1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 480px) {
  .form-section {
    padding-top: 0;
    padding-left: 0rem;
    padding-right: 0rem;
    padding-bottom: 0;
  }

  .form-section-content {
    padding: 0 1rem;
    max-width: 100%;
  }

  .form-subtitle-text {
    font-size: 1rem;
  }

  .form-input-mobile,
  .form-input-desktop {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    box-sizing: border-box;
  }
  
  .height-input-cm.form-input-mobile {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  .eligibility-btn {
    padding: 0.875rem;
    font-size: 1rem;
  }

  .popup-container {
    padding: 1.5rem;
    max-width: 95%;
  }

  .popup-title {
    font-size: 1.25rem;
  }

  .popup-text {
    font-size: 0.9375rem;
  }
}

@media (min-width: 481px) and (max-width: 1023px) {
  .form-heading {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .logo-img {
    height: 60px;
  }

  .form-section {
    min-height: calc(100vh - 80px);
    align-items: center;
  }

  .desktop-form-content {
    max-width: 42rem;
    margin: 0 auto;
  }
}

/* Accessibility */
.form-input-mobile:focus-visible,
.form-input-desktop:focus-visible,
.eligibility-btn:focus-visible,
.popup-close:focus-visible {
  outline: 2px solid #434935;
  outline-offset: 2px;
}

/* Print Styles */
@media print {

  .header-nav,
  .eligibility-btn,
  .popup-overlay {
    display: none;
  }

  .form-section {
    padding: 1rem;
  }
}

/* ============================================================================
   DESKTOP-ONLY REDESIGN (≥1024px)
   ============================================================================ */

/* Hide hero wrapper on mobile/tablet */
.hero-wrapper-desktop {
  display: none;
}

/* Hide desktop social proof on mobile */
.desktop-social-proof {
  display: none;
}

/* Hide desktop testimonials on mobile */
.testimonial-section.desktop-testimonials {
  display: none;
}

@media (min-width: 1024px) {
  /* Hide mobile sections on desktop */
  .mobile-sections {
    display: none !important;
  }
  
  /* Specifically hide mobile testimonial section on desktop */
  #testimonialSectionMobile,
  #testimonialSectionMobile .testimonial-container,
  #testimonialSectionMobile .video-grid,
  #testimonialSectionMobile .video-carousel-container {
    display: none !important;
    visibility: hidden !important;
  }

  /* Hide mobile form in hero wrapper */
  .hero-wrapper-desktop .mobile-form-container {
    display: none !important;
  }

  /* Show hero wrapper on desktop */
  .hero-wrapper-desktop {
    display: grid;
  }

  /* Sticky Header - Desktop */
  .header-nav {
    background-color: transparent;
    box-shadow: none;
  }

  .header-nav.scrolled {
    background-color: #faf8f0;
    box-shadow: none;
  }

  /* Override common.css header-content for desktop - align logo to extreme left */
  .header-nav .header-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem 1.5rem 1rem 1.5rem !important;
    justify-content: flex-start !important; /* Override space-between from common.css */
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* Force logo to align with text - moved right */
  .header-nav .header-content .logo-link {
    margin: 0 !important;
    margin-right: auto !important; /* Push to left */
    margin-left: 4rem !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    order: -1 !important; /* Ensure logo comes first */
  }

  /* Ensure logo image has no extra spacing */
  .header-nav .header-content .logo-img {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* Hide CTA button on desktop */
  .header-nav .header-content .header-cta-desktop {
    display: none !important;
  }

  /* Additional override to ensure logo is at extreme left edge */
  nav.header-nav .header-content {
    justify-content: flex-start !important;
    padding-left: 1.5rem !important;
  }

  nav.header-nav .header-content > .logo-link:first-child {
    margin-left: 4rem !important;
    margin-right: auto !important;
  }

  /* Hero Wrapper - 2 Column Layout */
  .hero-wrapper-desktop {
    grid-template-columns: 1.75fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem 1rem;
    min-height: calc(100vh - 80px);
    align-items: start;
    background: linear-gradient(to right, #eae4de 0%, #f2f5eb 50%, #eefad1 100%) !important;
    border: none !important;
    outline: none !important;
    overflow: visible;
  }

  /* Hide mobile form container on desktop */
  .mobile-form-container {
    display: none !important;
  }
  
  /* Show desktop form container */
  .desktop-form-container {
    display: block !important;
  }

  /* Hero Section - 2 Column Layout */
  .hero-wrapper-desktop .promo-section {
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    min-height: auto;
    display: block;
    padding-top: 0;
    margin-top: 0;
  }

  .hero-wrapper-desktop .form-section {
    padding: 0;
    margin: 0;
    display: block;
    border: none !important;
    outline: none !important;
    background: transparent !important;
  }

  .hero-wrapper-desktop .testimonial-section.desktop-testimonials {
    padding: 0 !important;
    margin: 0.25rem 0 0 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 0 !important;
  }

  /* Show the video carousel container on desktop */
  .hero-wrapper-desktop .testimonial-section.desktop-testimonials .testimonial-container {
    display: block !important;
    max-width: 100%;
    margin-top : 1.5rem;
    padding: 0;
  }

  /* Show carousel on desktop */
  .hero-wrapper-desktop .desktop-social-proof {
    display: block !important;
    margin-top: 1.5rem;
  }

  .hero-wrapper-desktop .desktop-social-proof .video-grid {
    display: block !important;
  }

  .hero-wrapper-desktop .video-carousel-container,
  .hero-wrapper-desktop .video-carousel-wrapper {
    display: block !important;
    position: relative;
    max-width: 100%;
    width: 100%;
    overflow: visible;
  }

  .hero-wrapper-desktop .carousel-scroll-container {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox - hide scrollbar */
    -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
    max-width: 100%;
    width: 100%;
    flex-wrap: nowrap;
  }

  .hero-wrapper-desktop .carousel-scroll-container::-webkit-scrollbar {
    display: none;
  }

  /* Show exactly 3 video cards at a time - calculate width accounting for gaps */
  .hero-wrapper-desktop .carousel-video-item {
    display: block !important;
    flex: none;
    flex-shrink: 0;
    width: calc((100% - 1.5rem) / 3 * 0.9); /* 3 cards with 2 gaps of 0.75rem, reduced by 10% */
    scroll-snap-align: start;
  }

  .hero-wrapper-desktop .video-card {
    display: block !important;
    width: 100%;
  }

  /* Round all edges of video cards on desktop */
  .hero-wrapper-desktop .video-card-inner,
  .hero-wrapper-desktop .carousel-scroll-container .video-card-inner {
    border-radius: 1rem;
  }

  /* Carousel arrows on desktop - visibility controlled by JavaScript */
  .hero-wrapper-desktop .carousel-arrow {
    display: flex;
    z-index: 20;
  }
  
  .hero-wrapper-desktop .carousel-arrow[style*="display: none"] {
    display: none !important;
  }

  .hero-wrapper-desktop .carousel-arrow-left {
    left: -2.5rem;
  }

  .hero-wrapper-desktop .carousel-arrow-right {
    right: -2.5rem;
  }

  /* Hide old desktop tiles grid */
  .hero-wrapper-desktop .desktop-user-tiles {
    display: none !important;
  }

  /* Left Column (7-8 columns) */
  .hero-left-desktop {
    grid-column: 1;
    padding-right: 1rem;
    padding-top: 0;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  /* Right Column (4-5 columns) */
  .hero-right-desktop {
    grid-column: 2;
    position: sticky;
    top: 150px;
    align-self: start;
    background: transparent !important;
    border: none !important;
    outline: none !important;
  }

  /* Promo Content - Left Column Styling */
  .hero-wrapper-desktop .promo-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    padding-top: 0;
    margin-top: 0;
  }

  /* Ensure promo-text and promo-headline have no left padding/margin to align with logo */
  .hero-wrapper-desktop .promo-text {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero-wrapper-desktop .promo-headline {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Desktop-only: Compact sizing to fit in viewport */
  .hero-wrapper-desktop .promo-headline {
    font-family: "League Spartan", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 0;
  }

  .hero-wrapper-desktop .promo-stat-box {
    display: inline-block;
    background-color: #000000;
    color: #e6f9b9;
    padding: 0.1em 0.3em;
    border-radius: 0.15em;
    font-family: "League Spartan", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0;
  }

  .hero-wrapper-desktop .promo-description {
    font-family: "Satoshi", sans-serif;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #000000;
    font-weight: 400;
    margin: 0.25rem 0 0 0;
  }

  .promo-description strong {
    font-weight: 700;
  }

  .promo-cta {
    display: none;
  }

  /* Desktop Social Proof - Shown on desktop */
  .hero-wrapper-desktop .desktop-social-proof {
    display: block !important;
    margin-top: 0;
  }

  .desktop-user-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
  }

  .desktop-user-tile {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #e0e0e0;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .desktop-user-tile:hover {
    transform: translateY(-2px);
  }

  .desktop-user-tile img,
  .desktop-user-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .desktop-user-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
    color: #ffffff;
    font-family: "Satoshi", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .desktop-user-tile-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .desktop-user-tile-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 16px solid #25D366;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
  }

  /* Ensure testimonial container is visible */
  .hero-wrapper-desktop .testimonial-container {
    display: block !important;
    max-width: 100%;
    margin: 0;
  }

  /* Form Card - Right Column (match mobile styling exactly - no card effect) */
  .hero-wrapper-desktop .desktop-form-container {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    padding: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
  }

  .hero-wrapper-desktop .desktop-form-content {
    width: 100%;
    background: transparent !important;
    padding: 0.75rem 1rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    align-items: stretch;
  }

  .hero-wrapper-desktop .form-section {
    border: none !important;
    outline: none !important;
    background: transparent !important;
  }

  .hero-wrapper-desktop .form-section-content {
    border: none !important;
    outline: none !important;
    background: transparent !important;
  }

  .hero-wrapper-desktop .desktop-form-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .hero-wrapper-desktop .form-heading {
    font-family: "League Spartan", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.25rem 0;
    text-align: center;
    white-space: nowrap;
    width: 100%;
  }

  /* Form Fields - Use same styling as mobile */
  .hero-wrapper-desktop .desktop-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    width: 100%;
    align-items: stretch;
  }

  /* Form Row - Age + Gender (Gender on next line) */
  .hero-wrapper-desktop .form-row-desktop {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Ensure desktop form uses same input styling as mobile - no card effect */
  .hero-wrapper-desktop .desktop-form-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0;
  }

  .hero-wrapper-desktop .desktop-form-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
  }

  /* Desktop Submit Button - Match input box size */
  .hero-wrapper-desktop .eligibility-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 1.2rem !important;
    border-radius: 16px !important;
    background-color: #393f2d !important;
    font-weight: 700 !important;
    color: white !important;
    font-size: 1rem !important;
    display: block !important;
    margin: 0 auto !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: "Satoshi", sans-serif !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .hero-wrapper-desktop .eligibility-btn:hover {
    background-color: #2d3322 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }

  .hero-wrapper-desktop .eligibility-btn:active {
    transform: translateY(0) !important;
  }

  .hero-wrapper-desktop .eligibility-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
  }

  /* Responsive adjustments for larger screens */
  @media (min-width: 1280px) {
    .hero-wrapper-desktop {
      max-width: 1400px;
      gap: 4rem;
    }

    .promo-headline {
      font-size: 3rem;
    }

    .promo-stat-box {
      font-size: 3rem;
    }

    .desktop-form-container {
      padding: 2.5rem;
    }
  }
}