/* Global Styles */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --accent: #ec4899;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s;
}

.header-logo:hover {
  color: var(--primary);
}

.header-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1 {
  color: var(--gray-900);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}

li {
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

ul {
  margin-left: 1.5rem;
}

/* Sections */
.section {
  width: 100%;
  padding: 4rem 1rem;
  background: var(--white);
}

.section-alt {
  background: var(--gray-50);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.content-section {
  max-width: 800px;
  width: 100%;
}

.hero {
  width: 100%;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero .section-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1.2;
  text-align: left;
}

.hero-content {
  max-width: 560px;
  text-align: center;
  width: 100%;
}

.form-card {
  flex: 1;
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  max-width: 480px;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.section-title {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  flex: 1;
  min-width: 240px;
}

.footer-description {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 320px;
}

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

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.625rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: all 0.2s;
  appearance: none;
}

input[type="checkbox"], input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
}

input[type="checkbox"] {
  border-radius: 0.25rem;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-position: center;
  background-repeat: no-repeat;
}

input[type="radio"]:checked {
  background-color: var(--white);
  border-color: var(--primary);
  border-width: 5px;
}

input::placeholder, select::placeholder, textarea::placeholder {
  color: var(--gray-400);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: var(--white);
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Buttons */
button, [type="submit"] {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

button:hover, [type="submit"]:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
}

button:active, [type="submit"]:active {
  opacity: 0.95;
}

button:disabled, [type="submit"]:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* Messages */
.success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border: 2px solid #86efac;
  border-radius: 0.625rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--success);
}

.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #7f1d1d;
  border: 2px solid #fca5a5;
  border-radius: 0.625rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--error);
}


/* Index Page Specific Styles */
.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.1;
}

.subtitle {
  color: var(--gray-600);
  font-size: 1.5rem;
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 400;
  max-width: 500px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.125rem;
}

.checkbox-row label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
  line-height: 1.5;
}

.divider {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 1rem 0;
  position: relative;
}

.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: var(--gray-300);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.row {
  display: flex;
  gap: 1rem;
}

.row > div {
  flex: 1;
}

#result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  display: none;
}

.note {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.7;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 1.85rem;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
    text-align: center;
  }
  
  .subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin: 0 auto;
  }
  
  .hero {
    padding: 3rem 1rem;
  }

  .hero .section-container {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-text {
    text-align: center;
    min-width: auto;
  }
  
  .form-card {
    padding: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: none;
  }
  
  .header-nav {
    gap: 1.25rem;
  }
  
  .header-nav a {
    font-size: 0.85rem;
  }
  
  .row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tracking-mode-toggle {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-top {
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* Enhancement Specific Classes */
.input-hint {
  font-weight: 400;
  color: var(--gray-500);
  text-transform: none;
  font-size: 0.85rem;
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.82rem;
  margin-top: -0.75rem;
  margin-bottom: 0.75rem;
}

.upgrade-card {
  display: none;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 0.625rem;
  border-left: 4px solid var(--primary);
  text-align: center;
}

.upgrade-title {
  margin: 0 0 0.75rem 0;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1.1rem;
}

.upgrade-text {
  margin: 0 0 1.5rem 0;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-premium {
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.legal-label {
  font-size: 0.85rem;
  line-height: 1.4;
  text-transform: none;
  text-align: left;
}

.legal-link {
  color: #003da5;
  text-decoration: underline;
}

.tracking-mode-toggle {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.tracking-mode-toggle label {
  text-transform: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
}

.tracking-mode-toggle input[type="radio"] {
  /* Inherits custom radio styles from generic input[type="radio"] */
}
