/* Pregnancy Calculator — page specific overrides (uses variables from main.css) */
.pregnancy-container { 
  padding: 80px 0; 
  min-height: calc(100vh - 200px); 
}

.pregnancy-header { 
  text-align: center; 
  margin-bottom: 40px; 
}

.pregnancy-header h1 { 
  font-size: 2.2rem; 
  margin-bottom: 8px; 
  color: var(--text); 
}

.pregnancy-header p { 
  color: var(--text-light); 
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 60px;
}

.input-section, .results-section {
  display: flex;
  flex-direction: column;
}

.input-card, .results-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}

.input-card h2 {
  margin-bottom: 8px;
  color: var(--text);
}

.subtitle {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.input-group select, .input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.input-group select:focus, .input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227,6,19,.1);
}

.calculate-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 1.05rem;
}

/* Results Section */
.results-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.results-placeholder i {
  font-size: 3rem;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.results-placeholder h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.result-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(227,6,19,.2);
}

.result-header h2 {
  margin-bottom: 4px;
  color: var(--text);
}

#result-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

.key-dates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.date-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.date-icon {
  width: 50px;
  height: 50px;
  background: rgba(227,6,19,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.date-info h4 {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.date-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

/* Pregnancy Progress */
.pregnancy-progress {
  margin-bottom: 28px;
}

.pregnancy-progress h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.progress-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
  width: 0%;
  transition: width 0.8s ease;
}

.progress-text {
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Trimester Cards */
.trimester-info h3 {
  margin-bottom: 16px;
  color: var(--text);
}

.trimester-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trimester-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: var(--transition);
}

.trimester-card h4 {
  margin-bottom: 6px;
  color: var(--text);
}

.trimester-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.trimester-status {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
}

.trimester-status.completed {
  background: rgba(34,197,94,.1);
  color: var(--accent);
}

.trimester-status.current {
  background: rgba(227,6,19,.1);
  color: var(--primary);
}

.trimester-status.upcoming {
  background: rgba(107,114,128,.1);
  color: var(--text-light);
}

/* Development Section */
.development-section {
  margin-bottom: 60px;
}

.development-section h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.development-card {
  display: flex;
  gap: 30px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  align-items: center;
}

.development-image {
  flex: 0 0 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(227,6,19,.1) 0%, rgba(34,197,94,.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.development-image i {
  font-size: 3rem;
  color: var(--primary);
}

.development-content {
  flex: 1;
}

.development-content h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.development-content p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text);
}

.development-stats {
  display: flex;
  gap: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.stat-value {
  font-weight: 600;
  color: var(--text);
}

/* Info Section */
.info-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.info-section h2 {
  margin-bottom: 16px;
  color: var(--text);
}

.info-section p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text);
}

.info-section h3 {
  margin: 24px 0 12px;
  color: var(--primary);
}

.info-section ul, .info-section ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.info-section li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}

.disclaimer {
  background: rgba(227,6,19,.05);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 4px;
  margin-top: 24px;
}

.disclaimer h3 {
  margin-top: 0;
  color: var(--primary);
}

.disclaimer p {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  
  .key-dates {
    grid-template-columns: 1fr;
  }
  
  .trimester-cards {
    grid-template-columns: 1fr;
  }
  
  .development-card {
    flex-direction: column;
    text-align: center;
  }
  
  .development-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .input-card, .results-card, .info-section {
    padding: 20px;
  }
  
  .pregnancy-header h1 {
    font-size: 1.8rem;
  }
}