@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --tax-green: #16A34A;
  --tax-green-dark: #15803D;
  --tax-green-light: #DCFCE7;
  --tax-green-mid: #22C55E;
  --black: #0A0A0A;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-400: #9CA3AF;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --success: #16A34A;
  --info: #2563EB;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Button States */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  transition: all 200ms ease;
  cursor: pointer;
  border: 2px solid transparent;
  outline: none;
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled, .btn.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--tax-green);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--tax-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--tax-green);
  border-color: var(--tax-green);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--tax-green-light);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover:not(:disabled) {
  background-color: #B91C1C;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--gray-700);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

/* Spinners */
.spinner-icon {
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
  height: 1rem;
  width: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  max-width: 28rem;
  width: 100%;
  margin: 1rem;
  padding: 1.5rem;
  transform: scale(0.95);
  transition: transform 200ms ease-out;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 24rem;
  transform: translateX(120%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--info);
}

.toast.toast-show {
  transform: translateX(0);
}

.toast-success { background-color: #ECFDF5; border-left-color: #10B981; }
.toast-error { background-color: #FEF2F2; border-left-color: #EF4444; }
.toast-warning { background-color: #FFFBEB; border-left-color: #F59E0B; }
.toast-info { background-color: #EFF6FF; border-left-color: #3B82F6; }

/* Input Fields */
.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.input-field {
  width: 100%;
  border: 1px solid var(--gray-400);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 150ms ease;
  outline: none;
  background-color: white;
}

.input-field:focus {
  border-color: var(--tax-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.input-error .input-field {
  border-color: var(--danger);
  background-color: rgba(254, 242, 242, 0.5);
}

.input-error .input-field:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.input-success .input-field {
  border-color: var(--tax-green);
  padding-right: 2.5rem;
  /* checkmark is added via js or background-image */
}

.error-message {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.input-error .error-message {
  display: block;
}

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

.shake {
  animation: shake 0.4s ease-in-out;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

/* Patterns */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pattern-auth {
  background-color: var(--tax-green-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Glassmorphism nav */
.nav-blur {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* Hero Canvas */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.auth-bg {
  background: linear-gradient(135deg, var(--tax-green-dark) 0%, #064E3B 100%);
}

.password-strength-bar {
  height: 4px;
  width: 32%;
  border-radius: 2px;
  background-color: var(--gray-100);
  transition: background-color 0.3s ease;
}

/* Utility to style the active tab pill */
.industry-tab.active {
  background-color: var(--tax-green);
  color: white;
}

.pricing-card-popular {
  transform: scale(1.05);
  border: 2px solid var(--tax-green);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1024px) {
  .pricing-card-popular {
    transform: scale(1);
  }
}

/* Redesign & Interactive Questionnaire */
.glass-modal {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mini-table thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    padding: 8px 12px;
    border-bottom: 2px solid #F1F5F9;
}

.mini-table tbody td {
    padding: 10px 12px;
    font-size: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.mini-table tr:last-child td {
    border-bottom: none;
}

.question-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Pulse animation for 'Action Required' items */
.pulse-amber {
    animation: p-amber 2s infinite;
}

@keyframes p-amber {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
