/* =============================================================================
   Growleads AGS Strategy Service - Premium B2B Landing Page
   ============================================================================= */

:root {
  --page-bg: #ffffff;
  --surface-bg: #f8fafc;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --brand-color: #0A66C2;
  --brand-light: #dbeafe;
  --brand-hover: #0856A3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.5;
}

/* =============================================================================
   Page Structure
   ============================================================================= */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.header {
  padding: 20px 48px;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border-subtle);
}

.brand img {
  height: 36px;
  width: auto;
}

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

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 48px 60px;
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--surface-bg) 100%);
}

.hero-inner {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* =============================================================================
   Left Column - Content
   ============================================================================= */

.hero-content {
  padding-top: 8px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-color);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 520px;
}

/* Info Card */
.info-card {
  background: var(--page-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row:first-child {
  padding-top: 0;
}

.info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 80px;
  padding-top: 2px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Feature List */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 12px;
  height: 12px;
}

.feature-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-top: 4px;
}

/* =============================================================================
   Right Column - Booking Card
   ============================================================================= */

.booking-card {
  background: var(--page-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

#my-cal-inline-30min {
  min-height: 680px;
  max-height: none;
  height: auto;
  overflow-y: auto;
  border-radius: calc(var(--radius-xl) - 4px);
}

/* =============================================================================
   Animations
   ============================================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  animation: fadeUp 0.6s var(--ease-out) backwards;
}

.hero-headline {
  animation: fadeUp 0.6s var(--ease-out) 0.1s backwards;
}

.hero-description {
  animation: fadeUp 0.6s var(--ease-out) 0.15s backwards;
}

.info-card {
  animation: fadeUp 0.6s var(--ease-out) 0.2s backwards;
}

.feature-item:nth-child(1) {
  animation: fadeUp 0.6s var(--ease-out) 0.25s backwards;
}

.feature-item:nth-child(2) {
  animation: fadeUp 0.6s var(--ease-out) 0.3s backwards;
}

.feature-item:nth-child(3) {
  animation: fadeUp 0.6s var(--ease-out) 0.35s backwards;
}

.booking-card {
  animation: fadeUp 0.6s var(--ease-out) 0.2s backwards;
}

/* =============================================================================
   Responsive - Tablet
   ============================================================================= */

@media (max-width: 1100px) {
  .hero {
    padding: 40px 32px 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 680px;
  }

  .booking-card {
    position: static;
  }

  #my-cal-inline-30min {
    min-height: 600px;
    max-height: 650px;
  }
}

/* =============================================================================
   Responsive - Mobile
   ============================================================================= */

@media (max-width: 768px) {
  .header {
    padding: 16px 20px;
  }

  .brand img {
    height: 30px;
  }

  .hero {
    padding: 24px 20px 40px;
  }

  .hero-headline {
    font-size: 26px;
  }

  .hero-description {
    font-size: 15px;
  }

  .info-card {
    padding: 20px;
  }

  #my-cal-inline-30min {
    min-height: 550px;
    max-height: 600px;
  }
}

/* =============================================================================
   Accessibility
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--text-primary);
  color: var(--page-bg);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* =============================================================================
   Form Styles
   ============================================================================= */

.form-container {
  padding: 24px;
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--page-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group input:focus,
.form-group select:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
  outline: none;
}

.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================================================
   Success Page Styles
   ============================================================================= */

.success-container {
  padding: 40px 32px;
  text-align: center;
}

.success-content {
  max-width: 400px;
  margin: 0 auto;
}

.success-icon {
  margin-bottom: 24px;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.success-message {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-details {
  background: var(--surface-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.success-details p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.success-details p:last-child {
  margin-bottom: 0;
}

.success-details strong {
  color: var(--text-primary);
}

.success-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================================================
   What Happens Next Section
   ============================================================================= */

.what-happens-next {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.next-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.next-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.next-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--brand-light);
  border-radius: 50%;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.required {
  color: #ef4444;
}

.form-submit-btn {
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--brand-color);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.form-submit-btn:hover:not(:disabled) {
  background: var(--brand-hover);
}

.form-submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

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

.form-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* =============================================================================
   Calendar Container (after form submission)
   ============================================================================= */

.calendar-container {
  display: flex;
  flex-direction: column;
}

.cal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-bg);
  border-radius: calc(var(--radius-xl) - 4px) calc(var(--radius-xl) - 4px) 0 0;
}

.cal-header .cal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cal-header .cal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.change-user-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.change-user-btn:hover {
  background: var(--surface-bg);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* =============================================================================
   Standalone Thank You Page
   ============================================================================= */

.thank-you-page {
  background: linear-gradient(180deg, var(--page-bg) 0%, var(--surface-bg) 100%);
}

.thank-you-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 72px;
}

.thank-you-panel {
  width: 100%;
  max-width: 660px;
  text-align: center;
  background: var(--page-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px;
  animation: fadeUp 0.6s var(--ease-out) backwards;
}

.thank-you-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.thank-you-message {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto 32px;
}

.thank-you-next {
  max-width: 480px;
  margin: 0 auto;
  padding: 22px 24px;
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.thank-you-next-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-color);
  margin-bottom: 8px;
}

.thank-you-next p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .thank-you-main {
    align-items: flex-start;
    padding: 36px 20px 48px;
  }

  .thank-you-panel {
    padding: 40px 24px;
  }

  .thank-you-title {
    font-size: 28px;
  }

  .thank-you-message {
    font-size: 16px;
  }
}
