:root {
  --primary: #1A1AFF;
  --accent: #6C63FF;
  --background: #F5F7FA;
  --card: #FFFFFF;
  --success: #00C896;
  --error: #FF4B5C;
  --text: #222B45;
  --text-secondary: #6B7A90;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(28, 36, 58, 0.06);
  --gradient: linear-gradient(90deg, var(--primary), var(--accent));
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

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

.site-header {
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}


.logo-link {
  display: flex;
  align-items: center;
  margin-right: 24px;
}

nav {
  margin-left: auto; /* Pushes navigation to the right if desired */
}

.brand-name {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--primary);
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--primary);
}

.hero {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 64px 0 48px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e0e6f7;
}
.cta-button {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius);
  border: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.cta-button:hover {
  background: var(--primary);
  color: #fff;
}

.card, .panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin: 32px 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
}

dl dt {
  font-weight: 600;
  margin-top: 1rem;
}
dl dd {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

.site-footer {
  background: var(--card);
  color: var(--text-secondary);
  text-align: center;
  padding: 24px 0 16px 0;
  font-size: 0.95rem;
  border-top: 1px solid #e5e9f2;
}
.site-footer .disclosure {
  display: block;
  margin-top: 8px;
  font-size: 0.9em;
}

/* --- Calculator Form Styles --- */
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-row label {
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-row input,
.form-row select {
  padding: 10px 12px;
  border: 1px solid #e5e9f2;
  border-radius: var(--radius);
  font-size: 1rem;
  background: #f9fbfd;
  color: var(--text);
  transition: border 0.2s;
}
.form-row input:focus,
.form-row select:focus {
  border-color: var(--primary);
  outline: none;
}
.form-row .cta-button {
  margin-top: 8px;
  width: 100%;
}

.results-panel {
  margin-top: 24px;
  background: #f7faff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 1px 6px rgba(28,36,58,0.04);
}
.results-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.results-row.total {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

/* Autocomplete styles */
.autocomplete-wrapper {
  position: relative;
}
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: white;
  border: 1px solid #ddd;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.autocomplete-result {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.autocomplete-result:last-child {
  border-bottom: none;
}
.autocomplete-result:hover {
  background: #f0f8ff;
}

/* Hide helper */
.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .container { padding: 0 8px; }
  .card, .panel { padding: 18px 8px; }
  .hero { padding: 36px 0 24px 0; }
  .hero h1 { font-size: 1.5rem; }
}