/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");

/* CSS Variables for easy theme management */
:root {
  --color-primary-lightest: #ecfdf5;
  --color-primary-lighter: #d0fae5;
  --color-primary-light: #a4f4cf;
  --color-primary: #009966;
  --color-primary-dark: #007a55;
  --color-primary-darker: #004f3b;
  --color-primary-darkest: #0d565e;
  --color-Forest-Green: #0d565e;
  --color-Forest-Dark: #0b4141;
  --color-dark-cyan: #269b8a;
  --color-soft-grey: #fafafa;

  --color-secondary-bg: #f0fdfa;
  --color-gradient-primary: linear-gradient(135deg, #00d492 0%, #00bba7 100%);
  --color-gradient-secondary: linear-gradient(135deg, #009966 0%, #009689 100%);
  --color-gradient-bg: linear-gradient(
    135deg,
    var(--color-primary-lightest) 0%,
    white 50%,
    var(--color-secondary-bg) 100%
  );

  --text-color-dark: #314158;
  --text-color-body: #45556c;
  --text-color-light: #62748e;
  --text-color-placeholder: #717182;
  --text-color-white: white;

  --bg-light-gray: #f3f3f5;
  --bg-white: white;

  --shadow-sm: 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
  --border-color: rgba(0, 0, 0, 0.1);

  --font-family-sans: "Inter", sans-serif;
}

/* General Body Styles */
body {
  margin: 0;
  font-family: var(--font-family-sans);
  background-color: var(--bg-white);
  color: var(--text-color-body);
  line-height: 1.6;
}

/* Layout */
.container {
  width: calc(100% - 2rem);
  max-width: 1248px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding: 4rem 0;
}

/* Typography */
h1,
h2,
h3 {
  color: var(--color-primary-darker);
  font-weight: 500;
  margin-top: 0;
  text-align: center;
}

h1 {
  font-size: 3rem; /* Approximation */
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.5; /* 30px */
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem; /* 16px */
  color: var(--text-color-body);
  text-align: center;
  max-width: 672px;
  margin: 0.5rem auto 0 auto;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
}

.main-header .container {
  display: flex;
  align-items: center;
}

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

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--color-gradient-bg);
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary-lighter);
  color: var(--color-primary-dark);
  padding: 0.375rem 1rem; /* 6px 16px */
  border-radius: 9999px;
  font-size: 1rem; /* 16px */
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-primary-darker);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem; /* 18px */
  max-width: 672px;
  margin: 1.5rem auto 2.5rem auto;
}

/* Waitlist Form */
.waitlist-form-card {
  max-width: 576px;
  margin: 0 auto;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  border: 1px solid var(--color-primary-lighter);
  padding: 2rem;
  text-align: center;
}

.waitlist-form-card h3 {
  font-size: 1rem;
  font-weight: 400;
}

.waitlist-form-card p {
  color: var(--text-color-body);
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem; /* 12px */
  margin-bottom: 1.5rem;
}

.waitlist-input {
  flex-grow: 1;
  height: 44px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-light-gray);
  border: 1px solid var(--color-primary-light);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-color-placeholder);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.btn {
  height: 44px;
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 8px;
  color: var(--text-color-white);
  background: var(--color-primary-darkest);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.btn:hover {
  background-color: var(--color-primary-dark);
}

.form-privacy-note {
  color: var(--text-color-light);
  font-size: 14px;
}

/* Career Path Form */
.career-path-form-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  border: 1px solid var(--color-primary-lighter);
  padding: 2.5rem;
  position: relative;
}

.form-header-badge {
  display: inline-block;
  background: #3b82f6;
  color: var(--text-color-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-primary-darkest);
  margin-bottom: 1rem;
  text-align: center;
}

.form-subtitle {
  color: var(--text-color-body);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.5;
}

.career-path-form {
  text-align: left;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color-dark);
  margin-bottom: 0.5rem;
}

.required-asterisk {
  color: #f97316;
  margin-left: 2px;
}

.optional-text {
  color: var(--text-color-light);
  font-weight: 400;
  font-size: 13px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0.75rem;
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-color-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: var(--font-family-sans);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 153, 102, 0.1);
}

.form-input::placeholder {
  color: var(--text-color-placeholder);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2345556c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-button-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--color-primary-darker);
  color: var(--text-color-white);
  font-size: 16px;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-primary svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;

    .container {
      width: calc(100% - 2rem);
    }
  }

  .form-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .career-path-form-card {
    padding: 1.5rem;
  }

  .form-title {
    font-size: 1.5rem;
  }
}

/* Features/Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.benefit-item p {
  color: var(--text-color-dark);
  font-size: 1rem;
  margin: 0;
}

/* Features Section */
.features-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-white);
  border-radius: 14px;
  border: 1px solid var(--color-primary-lighter);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--color-primary-lighter);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
}

.feature-card h3 {
  text-align: left;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.feature-card p {
  margin: 0;
  font-size: 1rem;
}

/* How It Works Section */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.step-item .step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  background: var(--color-gradient-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color-white);
  font-size: 1.25rem;
}

.step-item h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: var(--color-gradient-secondary);
  color: var(--text-color-white);
  text-align: center;
}

.cta-section h2,
.cta-section .section-subtitle {
  color: var(--text-color-white);
}

.cta-section .waitlist-form-card {
  margin-top: 2rem;
}

/* Footer */
.main-footer {
  background: var(--color-primary-darker);
  color: var(--color-primary-lighter);
  text-align: center;
  padding: 1.25rem 1rem; /* 20px */
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .waitlist-form {
    flex-direction: column;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 14px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color-light);
  cursor: pointer;
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.modal-content p {
  margin-bottom: 2rem;
  color: var(--text-color-body);
}

#modal-waitlist-form .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

#modal-waitlist-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color-dark);
}

#modal-waitlist-form .waitlist-input {
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

#modal-waitlist-form .g-recaptcha {
  margin-bottom: 1.5rem;
  /* Center reCAPTCHA */
  display: flex;
  justify-content: center;
}

#modal-waitlist-form .btn {
  width: 100%;
  height: 44px;
}
