/* ============================================================
   The Flatpack Guy — Brand Stylesheet
   Color scheme: Warm orange (#f97316) primary, dark background
   ============================================================ */

:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --accent: #22c55e;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --bg: #f1f5f9;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Top Announcement Bar ── */
.top-info-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 8px 0;
  text-align: center;
}
.top-info-bar a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}
.top-info-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.info-divider-hide {
  color: #334155;
}

/* ── Header ── */
.main-header {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-html {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}
.logo-emoji {
  font-size: 1.8rem;
  line-height: 1;
}
.logo-text-group {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.logo-tagline {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0f00 0%, #2d1800 50%, #3d2400 100%);
  transition: opacity 1.5s ease;
  opacity: 0;
}
.hero-bg.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero-content {
  color: #ffffff;
}
.friendly-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.6;
}

/* ── Form Container ── */
.form-container {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}
.highlight-underline {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  position: relative;
}
.form-group-full {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Zip Validation */
.zip-input-wrapper {
  position: relative;
}
.zip-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.zip-suggestions.hidden {
  display: none;
}
.zip-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}
.zip-suggestion-item:hover {
  background: #f8fafc;
}
.zip-validation-msg,
.phone-validation-msg {
  font-size: 0.72rem;
  margin-top: 4px;
  min-height: 16px;
}
.zip-input-error,
.phone-input-error {
  border-color: var(--danger) !important;
}

/* File Upload */
.foldable-screenshots-content {
  display: none;
}
.foldable-screenshots-group.open .foldable-screenshots-content {
  display: block;
}
.fold-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
  color: var(--text-secondary);
}
.foldable-screenshots-group.open .fold-arrow {
  transform: rotate(180deg);
}
.file-drop-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.file-drop-area:hover,
.file-drop-area.highlight {
  border-color: var(--primary);
  background: rgba(249, 115, 22, 0.04);
}
.file-drop-text {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 4px;
}
.file-drop-browse {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.file-drop-subtext {
  font-size: 0.72rem;
  color: var(--text-light);
}
.file-input-hidden {
  display: none;
}
.file-list {
  margin-top: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 0.82rem;
}
.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  color: var(--text-light);
  font-size: 0.72rem;
}
.file-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary {
  background: var(--primary);
  color: #ffffff;
}
.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.btn-block {
  width: 100%;
}

/* Success State */
.hidden {
  display: none !important;
}
.form-success-message {
  text-align: center;
  padding: 24px 0;
}
.success-icon-ring {
  margin-bottom: 16px;
}
.success-celebration h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.success-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.success-contact-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
}
.success-contact-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.success-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.success-action-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.success-action-primary {
  background: var(--primary);
  color: #fff;
}
.success-action-primary:hover {
  background: var(--primary-dark);
}

/* Mobile Contact Bar */
.mobile-contact-bar {
  display: none;
  text-align: center;
  padding: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}
.mobile-contact-bar a {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

/* ── Services Section ── */
.services-section {
  padding: 80px 0;
  background: #ffffff;
}
.section-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works-section {
  padding: 80px 0;
  background: var(--bg);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}
.footer-tagline {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}
.footer-contact a {
  color: var(--primary-light);
  text-decoration: none;
}
.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary-light);
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #475569;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-notification {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  color: #f1f5f9;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.toast-notification.show {
  transform: translateX(0);
}
.toast-icon {
  color: var(--accent);
  font-weight: 700;
}

/* Draft save indicators */
.field-save-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.field-save-status.show {
  opacity: 1;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.checkmark {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mobile-contact-bar {
    display: block;
  }
  .info-divider-hide {
    display: none;
  }
  .info-text-middle {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-section {
    padding: 40px 0;
    min-height: auto;
  }
  .form-container {
    padding: 24px 20px;
  }
}

/* Success checkmark animation */
.success-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s ease forwards;
}
.success-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s ease 0.6s forwards;
}
@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
