/* Premium CSS for Compliance Patent Cost Estimator */
:root {
  --bg-dark: #030712;
  --panel-bg: rgba(17, 24, 39, 0.75);
  --primary-glow: #3b82f6;
  --secondary-glow: #10b981;
  --accent-purple: #8b5cf6;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f9fafb;
  --text-muted: #9ca3af;
  --success: #10b981;
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.1);
  --font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip Navigation Link */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-glow);
  color: #white;
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}

header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .tool-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.calculator-card, .results-card, .info-section {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.calculator-card:hover, .results-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(139, 92, 246, 0.12);
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(135deg, #60a5fa, #34d399, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

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

.input-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.4rem;
  margin-bottom: 0.6rem;
}

select, input[type="number"], input[type="range"] {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-family);
  box-sizing: border-box;
  transition: all 0.3s;
}

select:focus, input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
  background: rgba(0, 0, 0, 0.45);
}

.btn-calculate {
  width: 100%;
  padding: 1.1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  transition: all 0.3s;
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

/* Results Display */
.cost-summary-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

.total-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.total-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-glow);
  margin-top: 0.25rem;
}

.cost-breakdown-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.cost-label-group {
  display: flex;
  flex-direction: column;
}

.cost-label-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.cost-label-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cost-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary-glow);
}

/* Dynamic CSS Chart */
.chart-container {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.chart-bar-group {
  margin-bottom: 1rem;
}

.chart-bar-group:last-child {
  margin-bottom: 0;
}

.chart-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.chart-bar-outer {
  background: rgba(255, 255, 255, 0.05);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.chart-bar-inner {
  height: 100%;
  border-radius: 6px;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-filing { background: #3b82f6; }
.bar-legal { background: #8b5cf6; }
.bar-maintenance { background: #10b981; }

/* Info and Content Sections */
.info-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}

.faq-card {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.faq-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Link Wall / Navigation Grid */
.link-wall {
  margin-top: 5rem;
  padding: 3rem;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.link-wall h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.programmatic-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.programmatic-link:hover {
  color: var(--primary-glow);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

footer {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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