body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Table of Contents Styling */
.table-of-contents {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-of-contents h3 {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.table-of-contents li:last-child {
    margin-bottom: 0;
}

.feature-note {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* CTA Box Styling */
.cta-box {
    background-color: #fff0f3;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    border-left: 4px solid #d63384;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 12px;
}

.cta-button {
    background-color: #d63384;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #be2d73;
}

/* Highlight Box Styling */
.highlight-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #d63384;
    border-radius: 8px;
    margin: 25px 0;
}

.calculator-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1em;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.calculator {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
button {
    background-color: #d63384;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s, box-shadow 0.3s;
}
button:hover {
    background-color: #be2d73;
    box-shadow: 0 3px 8px rgba(214, 51, 132, 0.3);
}
.results {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f4fc;
    border-radius: 8px;
}
.macronutrients {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    text-align: center;
}
.macro {
    flex: 1;
    padding: 15px;
    margin: 0 5px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}
.protein { background-color: #e74c3c; }
.carbs { background-color: #2ecc71; }
.fat { background-color: #f39c12; }
.info {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.7;
}
.units-toggle {
    display: flex;
    margin-bottom: 20px;
}
.units-toggle button {
    flex: 1;
    margin: 0 5px;
    padding: 8px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}
.units-toggle button.active {
    background-color: #d63384;
    color: white;
    border-color: #be2d73;
}
/* This class is now deprecated - use .hidden instead */
.imperial-height {
    display: none;
}
@media (max-width: 600px) {
    .macronutrients {
        flex-direction: column;
    }
    .macro {
        margin: 5px 0;
    }
}

/* Additional styles for better SEO and UX */
h2, h3 {
    color: #2c3e50;
    margin-top: 20px;
}
ul {
    padding-left: 20px;
}
li {
    margin-bottom: 8px;
}

/* Ad Unit Styles */
.adunit-top, .adunit-mid, .adunit-bottom {
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.adunit-top {
    margin: 20px 0;
}

.adunit-mid, .adunit-bottom {
    margin: 40px 0;
}

.adunit-top::before {
    content: "Advertisement Placeholder (Top)";
}

.adunit-mid::before {
    content: "Advertisement Placeholder (Middle)";
}

.adunit-bottom::before {
    content: "Advertisement Placeholder (Bottom)";
}

/* Description and Medical Disclaimer Styles */
.description {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.7;
}

.description p {
    margin-bottom: 15px;
    text-align: justify;
}

.medical-disclaimer {
    background-color: #fff8f8;
    border-left: 4px solid #d63384;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9em;
    border-radius: 0 4px 4px 0;
}

.medical-disclaimer p {
    margin: 0;
    color: #555;
}

/* Reusable styled pink box for disclaimers and important notices */
.pink-box {
    background-color: #fff2f8; 
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #d63384;
}

.pink-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

/* Blue-themed CTA box */
.cta-box.blue-box {
    background-color: #f0f4ff;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    border-left: 4px solid #3f51b5;
}

.cta-box.blue-box h3 {
    margin-top: 0;
    color: #333;
}

.cta-box.blue-box p {
    margin-bottom: 0;
}

/* Table of Contents Styles */
.table-of-contents {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-of-contents h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.table-of-contents li::before {
    content: "•";
    color: #d63384;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
}

.table-of-contents a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #d63384;
}

.section-icon {
    margin-right: 10px;
    color: #d63384;
    vertical-align: middle;
}

.faq-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Botox Calculator Specific Styles */
.intensity-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.intensity-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.intensity-option:hover {
    border-color: #d63384;
}

.intensity-option.active {
    background-color: #fff0f3;
    border-color: #d63384;
}

.intensity-option input {
    display: none;
}

.treatment-areas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.treatment-area {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
}

.treatment-area input {
    width: auto;
    margin-right: 8px;
}

.treatment-area label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Standard Result Display */
.result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Use .hidden class to hide result elements */

.result h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Highlighted Information Box */
.highlight {
    background-color: #fffde7;
    padding: 15px;
    border-left: 4px solid #ffd600;
    margin: 20px 0;
    border-radius: 4px;
}

/* Unit Toggle Styles */
.unit-toggle {
    display: flex;
    margin-top: 8px;
    margin-bottom: 15px;
}

.unit-btn {
    padding: 6px 10px;
    font-size: 13px;
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex: 1;
}

.unit-btn.active {
    background-color: #d63384;
    color: white;
    border-color: #d63384;
}

.unit-btn:hover {
    background-color: #f0f0f0;
}

.macro-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.unit-active {
    background-color: #d63384;
    color: white;
    border-color: #d63384;
}

/* Alternative Unit Button Style */
.unit-button {
    flex: 1;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background-color: #f0f0f0;
    color: #d63384;
    transition: background-color 0.2s;
}

.unit-button:hover {
    background-color: #f7d0e1;
}

.unit-button.active {
    background-color: #d63384;
    color: white;
}

/* Hydration Tips and Info Sections */
.hydration-tips h4, .info h4 {
    margin-top: 15px;
    margin-bottom: 8px;
}

.hydration-tips ul, .info ul {
    margin-top: 8px;
    padding-left: 20px;
}

.hydration-tips li, .info li {
    margin-bottom: 6px;
}

/* Height Input Group */
.height-group, .height-input {
    display: flex;
    gap: 10px;
}

.height-group div, .height-input input {
    flex: 1;
}

.result-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.result-label {
    font-weight: 600;
}

.total-cost {
    font-size: 18px;
    font-weight: bold;
    color: #d63384;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #f8d7da;
    display: flex;
    justify-content: space-between;
}

.disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: #777;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-answer {
    color: #555;
    line-height: 1.6;
}

/* Header Styles */
.site-header {
  padding: 20px 30px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Navigation Styles */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-right: 20px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.nav-link:last-child {
  margin-right: 0;
}

.nav-link:hover {
  color: #d63384;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #111;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.back-link-wrapper {
  padding: 10px 30px;
  background-color: #f9f9f9;
}

.back-home-link {
  color: #d63384;
  text-decoration: none;
  font-weight: 500;
}

/* Calculator Card V2 Styles - Redesigned calculator cards */
.calculator-card-v2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  padding: 24px 24px 20px;
  background-color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  border-top: 5px solid var(--card-color, #d63384); /* default pink */
  min-height: 220px;
  height: 100%;
  transition: transform 0.2s ease;
}

.calculator-card-v2:hover {
  transform: translateY(-4px);
}

.calculator-card-v2 a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.calculator-card-v2 .card-icon {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.calculator-card-v2 .card-icon svg,
.calculator-card-v2 .card-icon img {
  vertical-align: middle;
}

.calculator-card-v2 .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.calculator-card-v2 .card-summary {
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1;
  margin-bottom: 12px;
}

.calculator-card-v2 .cta-arrow {
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d63384;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.calculator-card-v2:hover .cta-arrow {
  transform: translateX(4px);
}

/* Card Color Utility Classes */
.card-color-pink { --card-color: #d63384; }
.card-color-blue { --card-color: #3b82f6; }
.card-color-green { --card-color: #10b981; }
.card-color-purple { --card-color: #a855f7; }
.card-color-yellow { --card-color: #f59e0b; }
.card-color-red { --card-color: #ef4444; }
.card-color-orange { --card-color: #f97316; }
.card-color-teal { --card-color: #14b8a6; }

/* Common Section Spacing and Styles */
.section-spacing {
  margin-top: 60px;
}

.section-divider {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid #eee;
  width: 100%;
}

/* Calculator Container and Layout */
.calculator-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}

.calculator {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

/* Calculator Button Styles */
#calculate-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background-color: #d63384;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 15px 0;
  transition: background-color 0.2s ease;
}

#calculate-btn:hover {
  background-color: #be2d73;
}

/* Homepage Header Styles */
.homepage-header {
  text-align: center;
  margin: 40px 0;
}

.homepage-header h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: #333;
}

.homepage-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Calculator Grid Layout */
.calculator-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.calculator-grid > .calculator-card-v2 {
  flex: 1 1 calc(50% - 30px);   /* Two per row with gap accounted */
  max-width: 500px;
  min-height: 260px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .calculator-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .calculator-grid > .calculator-card-v2 {
    flex: 1 1 100%;
  }
}

/* Footer Disclaimer */
.footer-disclaimer {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 40px;
  padding: 0 20px;
}

.medical-disclaimer {
  margin-top: 20px;
  max-width: 700px;
  margin-inline: auto;
  font-size: 13px;
  color: #999;
}

/* Back to Calculators Link */
.back-to-calculators {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #d63384;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-to-calculators:hover {
  color: #be2d73;
}

/* Ad Unit Spacing */
.ad-spacing {
  margin: 20px 0;
}

.mid-ad-spacing {
  margin: 40px 0;
}

.bottom-ad-spacing {
  margin: 40px 0;
}

/* Resources Section Styles */
.resources-section {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.resources-section h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: #333;
}

.resources-section p {
  margin-bottom: 20px;
  color: #555;
}

.resources-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: #d63384;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.resources-link:hover {
  background-color: #be2d73;
}

/* Page Subtitle */
.subtitle {
  font-weight: 400;
  font-size: 1.1rem;
  color: #666;
  margin-top: 10px;
  margin-bottom: 30px;
}

/* Medical Disclaimer Box */
.medical-disclaimer {
  background-color: #fff5f5;
  padding: 16px 20px;
  margin-top: 30px;
  margin-bottom: 40px;
  border-left: 4px solid #d63384;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #555;
}

/* How-To-Use Section */
.how-it-works {
  margin-top: 60px;
}

/* Table of Contents */
.table-of-contents {
  background-color: #f9f9f9;
  padding: 20px;
  margin: 30px 0;
  border-radius: 6px;
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.table-of-contents ul {
  margin-top: 10px;
  padding-left: 20px;
}

.table-of-contents li {
  margin-bottom: 5px;
}

.table-of-contents a {
  color: #d63384;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* Results section */
.results {
  background-color: #f9f9f9;
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chart-container {
  margin-top: 20px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Link Styles */
.pink-link {
  color: #d63384;
  text-decoration: underline;
  transition: color 0.2s;
}

.pink-link:hover {
  color: #be2d73;
}

/* Spacing Utility Classes */
.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-60 {
  margin-top: 60px;
}

/* Text Alignment */
.text-center {
  text-align: center;
}

/* Footer Styles */
footer {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 40px;
}

/* Units Toggle Enhanced Styles */
.units-toggle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}

.units-toggle .unit-button {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.units-toggle .unit-button:hover {
  background-color: #f0f0f0;
}

.units-toggle .unit-button.active {
  background-color: #d63384;
  color: white;
  border-color: #d63384;
}
