/* ===================================
   Health Calculators Page Styles
   Optimized for Performance & SEO
   =================================== */

/* Hero Section */
.calc-hero {
  background: linear-gradient(135deg, #3e5fa7 0%, #eff6ff 100%);
  color: #fff;
  padding: 60px 20px 40px;
  text-align: center;
  margin-top: -80px;
  padding-top: 140px;
}

.calc-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.calc-hero .hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

/* Introduction Section */
.intro-section {
  padding: 40px 20px;
  background: #fff;
  border-bottom: 3px solid #f5f7fa;
}

.intro-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
  text-align: center;
}

/* Calculator Section (Individual) */
.calc-section {
  padding: 60px 20px;
  background: #fff;
}

.calc-section.alt-bg {
  background: #f5f7fa;
}

.calc-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.calc-info {
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.calc-info h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
}

.calc-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.calc-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.calc-benefits li {
  padding: 10px 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Bridge CTA */
.bridge-cta {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  padding: 50px 20px;
  text-align: center;
  color: #fff;
}

.bridge-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 700;
}

.bridge-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.btn-bridge {
  display: inline-block;
  padding: 15px 35px;
  background: #fff;
  color: #4CAF50;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-bridge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #f8f9fa;
}

/* Calculator Card */
.calculator-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Calculator Header */
.calc-header {
  background: linear-gradient(135deg, #1a2d5a 0%, #274085 100%);
  color: #fff;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.calc-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.calc-header h2,
.calc-header h3 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

/* Calculator Body */
.calc-body {
  padding: 30px 25px;
}

/* Input Groups */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #274085;
  font-size: 0.95rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  color: #274085;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.input-group input::placeholder {
  color: #a0aec0;
}

/* Input Row (for side-by-side inputs) */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Calculate Button */
.btn-calculate {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-family: inherit;
}

.btn-calculate:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-calculate:active {
  transform: translateY(0);
}

/* Result Box */
.result {
  margin-top: 25px;
  min-height: 50px;
}

.result-box {
  padding: 20px;
  border-radius: 12px;
  background: #f8f9fa;
  border-right: 5px solid #4CAF50;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-box h3 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  color: #2c3e50;
  font-weight: 700;
}

.result-box strong {
  color: #4CAF50;
  font-size: 1.3em;
}

.result-box p {
  margin: 10px 0;
  line-height: 1.7;
  color: #555;
}

.result-box .category {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 5px 0;
}

.result-box .advice {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.95rem;
  border-right: 3px solid #4a90e2;
}

.result-box small {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 0.85rem;
}

/* Result Colors */
.result-box.underweight {
  border-right-color: #FFC107;
  background: #fffbf0;
}

.result-box.underweight strong {
  color: #FFC107;
}

.result-box.normal,
.result-box.success {
  border-right-color: #4CAF50;
  background: #f0f8f1;
}

.result-box.normal strong,
.result-box.success strong {
  color: #4CAF50;
}

.result-box.overweight,
.result-box.warning {
  border-right-color: #FF9800;
  background: #fff8f0;
}

.result-box.overweight strong,
.result-box.warning strong {
  color: #FF9800;
}

.result-box.obese,
.result-box.danger {
  border-right-color: #F44336;
  background: #fff0f0;
}

.result-box.obese strong,
.result-box.danger strong {
  color: #F44336;
}

/* Error Message */
.result .error {
  color: #F44336;
  background: #fff0f0;
  padding: 12px 15px;
  border-radius: 8px;
  border-right: 3px solid #F44336;
  margin: 0;
}

/* Info Section */
.info-section {
  padding: 60px 20px;
  background: #fff;
}

.info-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.info-card h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.info-card p {
  color: #555;
  line-height: 1.7;
}

/* Advanced Technology Section */
.advanced-tech-section {
  background: linear-gradient(to bottom, #f5f7fa 0%, #fff 100%);
  padding: 80px 20px;
}

.tech-content {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-header {
  text-align: center;
  margin-bottom: 40px;
}

.tech-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.tech-header h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  font-weight: 700;
  margin: 0;
}

.tech-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  border-right: 4px solid #4CAF50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tech-lead strong {
  color: #2c3e50;
  font-weight: 700;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.tech-item {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.tech-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tech-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.tech-item h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 12px;
  font-weight: 700;
}

.tech-item p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

/* Comparison */
.tech-comparison {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.comparison-item {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.comparison-item h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 700;
}

.comparison-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-item ul li {
  padding: 8px 0;
  padding-right: 25px;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.comparison-item ul li::before {
  content: 'âœ“';
  position: absolute;
  right: 0;
  color: #4CAF50;
  font-weight: bold;
}

.comparison-item.online {
  border: 2px solid #e0e6ed;
}

.comparison-item.clinic {
  border: 3px solid #4CAF50;
  position: relative;
}

.comparison-item.clinic::before {
  content: 'Ù¾ÛŒØ´Ù†Ù‡Ø§Ø¯ ÙˆÛŒÚ˜Ù‡';
  position: absolute;
  top: -12px;
  right: 20px;
  background: #4CAF50;
  color: #fff;
  padding: 4px 15px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.comparison-arrow {
  font-size: 2rem;
  color: #4CAF50;
  font-weight: bold;
}

/* Tech CTA */
.tech-cta {
  text-align: center;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 40px;
  border-radius: 20px;
  margin-top: 50px;
}

.tech-cta-text {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 25px;
  font-weight: 600;
}

.tech-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #2c3e50;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #274085 0%, #4a90e2 100%);
  color: #fff;
  padding: 70px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.7;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 30px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.cta-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.15rem;
  border-radius: 10px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #4CAF50;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-large:hover {
  background: #45a049;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #274085;
}

/* Responsive Design */
@media (max-width: 768px) {
  .calc-hero {
    padding: 50px 15px 30px;
    padding-top: 120px;
  }

  .calc-hero h1 {
    font-size: 1.7rem;
  }

  .calc-hero .hero-subtitle {
    font-size: 1rem;
  }

  .intro-section {
    padding: 30px 15px;
  }

  .intro-text {
    font-size: 1rem;
  }

  .calc-section {
    padding: 40px 15px;
  }

  .calc-info h2 {
    font-size: 1.5rem;
  }

  .calc-description {
    font-size: 1rem;
  }

  .calc-benefits li {
    font-size: 0.95rem;
  }

  .calculator-card {
    border-radius: 12px;
  }

  .calc-header {
    padding: 20px;
  }

  .calc-header h3 {
    font-size: 1.15rem;
  }

  .calc-body {
    padding: 25px 20px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bridge-cta {
    padding: 40px 15px;
  }

  .bridge-content h3 {
    font-size: 1.5rem;
  }

  .bridge-content p {
    font-size: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-card {
    padding: 25px;
  }

  .cta-section {
    padding: 50px 15px;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .cta-features {
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-large {
    width: 100%;
    max-width: 350px;
  }

  /* Advanced Tech Section Responsive */
  .advanced-tech-section {
    padding: 50px 15px;
  }

  .tech-header h2 {
    font-size: 1.6rem;
  }

  .tech-lead {
    font-size: 1rem;
    padding: 20px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech-comparison {
    flex-direction: column;
    gap: 20px;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .tech-cta {
    padding: 30px 20px;
  }

  .tech-cta-text {
    font-size: 1.1rem;
  }

  .tech-cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .calc-hero h1 {
    font-size: 1.5rem;
  }

  .calc-hero .hero-subtitle {
    font-size: 0.95rem;
  }

  .intro-text {
    font-size: 0.95rem;
  }

  .calc-info h2 {
    font-size: 1.3rem;
  }

  .calc-description {
    font-size: 0.95rem;
  }

  .calc-icon {
    width: 45px;
    height: 45px;
  }

  .calc-icon svg {
    width: 24px;
    height: 24px;
  }

  .input-group input,
  .input-group select {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .btn-calculate {
    padding: 12px 18px;
    font-size: 1rem;
  }

  .result-box {
    padding: 15px;
  }

  .result-box h3 {
    font-size: 1.1rem;
  }

  .bridge-content h3 {
    font-size: 1.3rem;
  }

  .btn-bridge {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .info-number {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .cta-section h2 {
    font-size: 1.4rem;
  }

  .cta-features {
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 14px 30px;
    font-size: 1rem;
  }

  /* Advanced Tech Mobile */
  .tech-header h2 {
    font-size: 1.4rem;
  }

  .tech-badge {
    font-size: 0.85rem;
    padding: 6px 15px;
  }

  .tech-lead {
    font-size: 0.95rem;
    padding: 18px;
  }

  .tech-item {
    padding: 25px 20px;
  }

  .tech-icon {
    width: 50px;
    height: 50px;
  }

  .tech-icon svg {
    width: 28px;
    height: 28px;
  }

  .tech-item h3 {
    font-size: 1.15rem;
  }

  .tech-item p {
    font-size: 0.95rem;
  }

  .comparison-item h4 {
    font-size: 1.05rem;
  }

  .tech-cta-text {
    font-size: 1rem;
  }
}

/* Print Styles (for saving results) */
@media print {
  .calc-hero,
  .cta-section,
  .btn-calculate,
  header,
  footer {
    display: none;
  }

  .calculator-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .result-box {
    border: 1px solid #ddd;
  }
}

/* Accessibility Improvements */
.input-group input:focus-visible,
.input-group select:focus-visible,
.btn-calculate:focus-visible {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
}

/* Loading State (if needed) */
.btn-calculate.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-calculate.loading::after {
  content: '...';
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

