/* ================================================ */
/* Waitlist Landing Page Styles */
/* Extends existing main.css - uses same design system */
/* ================================================ */

/* Ensure main container matches exactly */
.main {
  max-width: 1320px !important;
  padding: 0 20px !important;
}

/* ========== Header Adjustments ========== */

/* Simplified header for waitlist page - no nav */
.header_nav {
  display: none;
}

/* Adjust header for 2-column layout (logo + actions) */
.header_content {
  grid-template-columns: auto 1fr !important;
}

.header_actions {
  justify-self: end !important;
}

/* Mobile header adjustments - hide logo label, show only icon */
@media only screen and (max-width: 640px) {
  .header:not(.header_scrolled) .logo_label {
    display: none;
  }
}

/* ========== Hero Section Adjustments ========== */

/* Layout: title spans full width at top, then description/video in two columns below */
.hero .section_body {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
  row-gap: 12px;
  column-gap: 32px;
}

/* Title spans both columns */
.hero_title_full {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 0;
}

/* Hero message (description, features, CTA) in left column */
.hero_message {
  grid-column: 1 / 2;
  grid-row: 2;
}

/* Video in right column, same row as hero_message */
.hero_video {
  grid-column: 2 / 3;
  grid-row: 2;
  align-self: start;
}

/* Spacing adjustments */
.hero_message .hero_description {
  padding-top: 0;
  margin-bottom: 24px;
}

.hero_message .hero_description_list {
  margin-top: 0;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1139px) {
  .hero .section_body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero_title_full,
  .hero_message,
  .hero_video {
    grid-column: 1 / -1;
  }
}

/* Mobile (up to 639px) - match main page mobile layout */
@media (max-width: 639px) {
  .hero .section_body {
    display: flex;
    flex-direction: column;
    padding: 100px 24px 16px;
  }

  .hero_title_full {
    order: 1;
  }

  .hero_message {
    order: 2;
  }

  .hero_video {
    order: 3;
    margin-top: 24px;
  }

  .hero_widget_button {
    max-width: none;
  }

  .hero_widget_buttons {
    gap: 16px;
  }

  .hero_description_list {
    margin-bottom: 24px;
    flex-direction: column;
  }

  .hero_description_item {
    width: 100%;
  }
}

/* ========== Features Section ========== */

.waitlist_features_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
}

.waitlist_feature_card {
  background: var(--bg-grey-1);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.waitlist_feature_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--ca-black-10);
}

.waitlist_feature_new {
  background: var(--cl-green-extra-light);
  border: 2px solid var(--cl-green);
}

.waitlist_feature_badge {
  position: absolute;
  top: 32px;
  right: 32px;
  background: var(--cl-green-dark);
  color: var(--cl-white);
  font-size: 11px;
  font-weight: var(--fw-bold);
  padding: 6px 12px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.waitlist_feature_title {
  font-size: 24px;
  line-height: 32px;
  font-weight: var(--fw-semibold);
  margin-bottom: 12px;
  color: var(--text-default);
  min-height: 64px; /* Ensures consistent height across cards */
  display: flex;
  align-items: center; /* Vertically center align with badge */
  padding-right: 80px; /* Make room for badge */
}

.waitlist_feature_desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-light);
}

/* ========== Form Section ========== */

/* Form container - white box inside green section */
.waitlist_form_container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 24px;
  padding: 48px;
}

/* Form Sections */

.form_section {
  margin-bottom: 32px;
}

.form_section_title {
  font-size: 20px;
  font-weight: var(--fw-semibold);
  color: var(--text-default);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cl-green);
}

.form_row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form_row:last-child {
  margin-bottom: 0;
}

/* Form Groups */

.form_group {
  position: relative;
}

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

.form_label {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-default);
  margin-bottom: 8px;
}

.form_input,
.form_select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--ff-text);
  color: var(--text-default);
  background: var(--bg-white);
  border: 2px solid var(--cl-grey-2);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form_input:focus,
.form_select:focus {
  outline: none;
  border-color: var(--cl-green-dark);
  box-shadow: 0 0 0 3px var(--cl-green-extra-light);
}

.form_input::placeholder {
  color: var(--ca-black-50);
}

.form_select option[value=""] {
  color: var(--ca-black-50);
}

.form_select:invalid {
  color: var(--ca-black-50);
}

.form_input.error,
.form_select.error {
  border-color: var(--cl-red);
  box-shadow: 0 0 0 3px rgba(249, 62, 62, 0.1);
  animation: shake 0.3s ease-in-out;
}

.form_checkbox.error {
  outline: 2px solid var(--cl-red);
  outline-offset: 2px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.form_error {
  display: none;
  font-size: 14px;
  color: var(--cl-red);
  margin-top: 6px;
}

.form_error.visible {
  display: block;
}

/* Checkbox Group */

.form_checkbox_group {
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form_checkbox {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.form_checkbox_label {
  font-size: 14px;
  color: var(--text-default);
  line-height: 1.5;
  cursor: pointer;
}

.form_checkbox_label a {
  color: var(--cl-green-dark);
  text-decoration: underline;
}

.form_checkbox_label a:hover {
  color: var(--cl-green-dark-2);
}

/* Form Actions */

.form_actions {
  margin-top: 32px;
  text-align: center;
  position: relative;
}

.waitlist_submit_btn {
  max-width: 300px;
  margin: 0 auto;
  pointer-events: auto;
}

/* Wrapper to catch clicks on disabled button */
.form_actions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 100%;
  cursor: not-allowed;
  pointer-events: none;
  z-index: 1;
}

.form_actions.has-disabled-button::before {
  pointer-events: auto;
}

.form_actions.has-disabled-button .waitlist_submit_btn {
  pointer-events: none;
}

.button_loader {
  display: none;
}

.waitlist_submit_btn.loading .button_text {
  display: none;
}

.waitlist_submit_btn.loading .button_loader {
  display: inline;
}

.waitlist_submit_btn {
  background: var(--cl-green-dark);
  color: var(--text-contrast);
  border: 1px solid var(--cl-green-dark);
}

.waitlist_submit_btn:hover:not(:disabled) {
  background: var(--cl-green);
  border-color: var(--cl-green);
  color: var(--text-default);
}

.waitlist_submit_btn:disabled {
  background: var(--bg-grey-1);
  color: var(--text-light);
  border-color: var(--bg-grey-1);
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Messages */

.form_message {
  display: none;
  padding: 24px;
  border-radius: 12px;
  margin-top: 32px;
  text-align: center;
}

.form_message.visible {
  display: block;
}

.form_success {
  background: transparent;
  border: none;
  text-align: center;
  padding: 0;
  margin-top: 48px;
}

.form_success h3 {
  font-size: 32px;
  color: var(--text-default);
  margin-bottom: 16px;
  font-weight: var(--fw-semibold);
}

.form_success p {
  font-size: 18px;
  color: var(--text-default);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.form_error_message {
  background: #ffebee;
  border: 2px solid var(--cl-red);
}

.form_error_message h3 {
  font-size: 24px;
  color: var(--cl-red);
  margin-bottom: 8px;
}

.form_error_message p {
  font-size: 16px;
  color: var(--text-default);
}

.form_error_message a {
  color: var(--cl-green-dark);
  text-decoration: underline;
}

/* ========== Responsive Styles ========== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .form_row {
    grid-template-columns: 1fr 1fr;
  }

  .form_row .form_group:only-child,
  .form_row .form_group_full {
    grid-column: 1 / -1;
  }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
  .waitlist_features_grid {
    grid-template-columns: 1fr;
  }

  .waitlist_feature_title {
    font-size: 20px;
    line-height: 28px;
    min-height: auto; /* Remove fixed height on mobile */
    padding-right: 0; /* Remove padding on mobile */
  }

  .waitlist_feature_badge {
    position: static; /* Reset position on mobile */
    display: inline-block;
    margin-bottom: 12px;
  }

  .waitlist_form_container {
    padding: 32px 24px;
  }
}

/* Small mobile (below 480px) */
@media (max-width: 479px) {
  .waitlist_feature_card {
    padding: 24px;
  }

  .waitlist_form_container {
    padding: 24px 16px;
  }
}

/* ================================================ */
/* End of Waitlist Landing Page Styles */
/* ================================================ */