/* ============================================================
   Tax Form Framework
   Reusable for W-9, W-8, 1099 previews, etc.
   The design principle: .tax-form-box borders ARE the field
   borders. Inputs inside are transparent and borderless.
   ============================================================ */

.tax-form {
  background: white;
  border: 2px solid #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #000;
  max-width: 820px;
  margin: 0 auto 2rem;
}

.tax-form-header {
  border-bottom: 2px solid #000;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  background: #f8f8f8;
}

.tax-form-header-title {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
  line-height: 1;
}

.tax-form-header-subtitle {
  font-size: 0.7rem;
  color: #333;
  max-width: 420px;
  margin-top: 2px;
}

.tax-form-header-meta {
  text-align: right;
  font-size: 0.65rem;
  color: #555;
  white-space: nowrap;
}

/* A row is a full-width horizontal band */
.tax-form-row {
  display: flex;
  border-bottom: 1px solid #000;
  min-height: 36px;
}

.tax-form-row:last-child {
  border-bottom: none;
}

/* A box is an individual labeled cell */
.tax-form-box {
  border-right: 1px solid #000;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.tax-form-box:last-child {
  border-right: none;
}

/* Size modifiers */
.tax-form-box--narrow  { flex: 0 0 90px;  }
.tax-form-box--medium  { flex: 0 0 180px; }
.tax-form-box--wide    { flex: 2; }
.tax-form-box--full    { flex: 1 0 100%;  }
.tax-form-box--tin     { flex: 0 0 200px; }

/* Small italic label at top of each box */
.tax-form-box-label {
  font-size: 0.6rem;
  color: #444;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 2px;
  display: block;
}

.tax-form-box-label strong {
  font-style: normal;
  font-weight: 700;
}

/* Inputs inside boxes — transparent, no border, fills the space */
.tax-form-box input[type="text"],
.tax-form-box input[type="date"],
.tax-form-box select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 1px 2px;
  color: #000;
  min-height: 20px;
}

.tax-form-box input[type="text"]:focus,
.tax-form-box input[type="date"]:focus,
.tax-form-box select:focus {
  background: #e8f0fe;
}

.tax-form-box input[type="text"]::placeholder {
  color: #bbb;
  font-style: italic;
  font-size: 0.75rem;
}

/* Read-only value display (used in dashboard show view) */
.tax-form-value {
  font-size: 0.85rem;
  padding: 1px 2px;
  min-height: 20px;
  display: block;
}

/* Radio and checkbox groups inside a box */
.tax-form-radio-group,
.tax-form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 2px 0;
  align-items: center;
}

.tax-form-radio-group label,
.tax-form-check-group label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  font-style: normal;
}

/* Black bar section dividers (e.g. "Part I") */
.tax-form-section {
  background: #000;
  color: white;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Instruction text */
.tax-form-instructions {
  font-size: 0.65rem;
  color: #444;
  padding: 4px 8px;
  line-height: 1.5;
  border-bottom: 1px solid #ccc;
}

.tax-form-instructions p {
  margin: 0 0 3px;
}

/* TIN display pair — SSN vs EIN, toggled by Stimulus */
.tax-form-tin-ssn,
.tax-form-tin-ein {
  display: none;
}

.tax-form-tin-ssn.visible,
.tax-form-tin-ein.visible {
  display: block;
}

/* Inline address row inside a box */
.tax-form-address-inline {
  display: flex;
  gap: 4px;
  align-items: center;
}

.tax-form-address-inline input {
  min-height: 20px;
}

/* Signature area */
.tax-form-signature-area {
  display: flex;
  gap: 0;
  min-height: 44px;
  align-items: stretch;
}

.tax-form-signature-block {
  flex: 2;
  border-right: 1px solid #000;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tax-form-signature-block input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #999;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  padding: 2px;
  font-family: "Georgia", serif;
}

.tax-form-signature-block input[type="text"]:focus {
  background: #e8f0fe;
}

.tax-form-date-block {
  flex: 0 0 140px;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Certification checkbox */
.tax-form-certification {
  padding: 6px 8px;
  border-top: 1px solid #ccc;
  font-size: 0.65rem;
  color: #444;
}

.tax-form-certification label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  line-height: 1.4;
}

.tax-form-certification input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

/* Error state — highlight boxes with errors */
.tax-form-box.field-with-error {
  background: #fff5f5;
}

.tax-form-box.field-with-error input {
  color: #dc2626;
}

/* Mobile — boxes stack vertically */
@media (max-width: 640px) {
  .tax-form-row {
    flex-wrap: wrap;
  }

  .tax-form-box,
  .tax-form-box--narrow,
  .tax-form-box--medium,
  .tax-form-box--tin {
    flex: 1 0 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #000;
  }

  .tax-form-box:last-child {
    border-bottom: none;
  }

  .tax-form-header {
    flex-direction: column;
  }

  .tax-form-signature-area {
    flex-direction: column;
  }

  .tax-form-signature-block {
    border-right: none;
    border-bottom: 1px solid #000;
  }

  .tax-form-date-block {
    flex: 1 0 100%;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::after {
  content: "👻";
  font-size: 1.3rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background: #2563eb;
  color: white;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.hero-ghost {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
}

.hero .btn-secondary:hover {
  background: white;
  color: #667eea;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: #f9fafb;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.7;
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
  background: white;
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.benefits-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.benefits-text p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  padding: 1rem 0;
  font-size: 1.1rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefits-list li::before {
  content: "✓";
  color: #10b981;
  font-size: 1.5rem;
  font-weight: bold;
}

.benefits-visual {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 3rem;
  color: white;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.benefits-visual h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefits-visual p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta .btn {
  background: white;
  color: #667eea;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.cta .btn:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #f9fafb;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .benefits-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}
