/* ===== BASE & VARIABLES ===== */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #7209b7;
  --accent: #f72585;
  --success: #06d6a0;
  --warning: #ffd166;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(67,97,238,0.06) 0%, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(114,9,183,0.06) 0%, transparent 25%);
}

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

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ===== HEADER ===== */
.main-header {
  background: white;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.main-header.minimal {
  box-shadow: none;
  background: transparent;
  padding: 1.5rem 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.logo .highlight {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 0.95rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.btn-login {
  background: var(--gradient-1);
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(67,97,238,0.3);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67,97,238,0.4);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 5rem 0 4rem;
  background: var(--gradient-2);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2%, 2%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: white;
  color: var(--primary);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.disclaimer-small {
  font-size: 0.85rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

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

.service-card {
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== COMPLIANCE BANNER ===== */
.compliance-banner {
  background: linear-gradient(135deg, #06d6a0, #118ab2);
  color: white;
  padding: 1.2rem 0;
  text-align: center;
  font-weight: 500;
}

.compliance-banner p {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.main-footer.minimal {
  background: transparent;
  color: var(--gray);
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
}

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

.footer-col h5 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-col a[href^="tel"] {
  color: var(--success);
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

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

.small {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  background: var(--gradient-2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  max-width: 480px;
  width: 100%;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.login-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.forgot-link {
  color: var(--primary);
  font-weight: 500;
}

.full-width {
  width: 100%;
}

.login-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.9rem;
}

.login-footer a {
  color: var(--primary);
  font-weight: 600;
}

.security-note {
  margin-top: 1rem;
  color: var(--gray);
  font-size: 0.85rem;
  font-style: italic;
}

/* ===== UTILITIES ===== */
.highlight { font-weight: 700; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .hero-sub {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
/* ===== CALCULATOR SECTION ===== */
.calculator-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.calculator-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray);
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Calculator Result Styles */
.calc-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed #e2e8f0;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-result h4 {
  color: var(--dark);
  margin-bottom: 1.2rem;
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-item {
  text-align: center;
  padding: 1rem;
  background: var(--light);
  border-radius: 8px;
}

.result-item.total {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  grid-column: span 3;
}

.result-label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.3rem;
}

.result-item.total .result-label {
  color: rgba(255,255,255,0.9);
}

.result-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.result-item.total .result-value {
  color: white;
  font-size: 1.8rem;
}

.result-note {
  text-align: center;
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.result-note a {
  color: var(--primary);
  font-weight: 500;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Calculator */
@media (max-width: 600px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
  .result-item.total {
    grid-column: span 1;
  }
  .calculator-card {
    padding: 1.8rem;
  }
}