/**
 * Custom CSS for BMI Calculator Pro Theme
 * 
 * @package BMI_Calculator_Pro
 * @version 1.0
 */

/* FAQ Accordion (Bebek VKİ Persentil) */
.faq-accordion {
    margin-top: 1.5rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.faq-accordion .faq-item + .faq-item {
    border-top: 1px solid #e5e7eb;
}

.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    background: transparent;
    border: none;
    cursor: pointer;
}

.faq-toggle i {
    font-size: 1.25rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-toggle .icon-minus { display: none; }
.faq-toggle.open .icon-plus { display: none; }
.faq-toggle.open .icon-minus { display: inline-block; }

.faq-toggle[aria-expanded="true"] i {
    transform: rotate(45deg);
    color: #2563eb;
}

.faq-panel {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: #4b5563;
}

/* Responsive font sizing for FAQ titles */
@media (max-width: 576px) {
    .faq-toggle {
        font-size: 1.125rem;
    }
}

/* Emphasis block under FAQ */
.calculator-seo-content .notice {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    color: #374151;
}

/* Calculator Header Colors */
.calculator-page-hero {
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    /* Global brand header fallback */
    --hero-start: var(--brand-start);
    --hero-end: var(--brand-end);
    /* Force brand gradient on hero background */
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end)) !important;
}

/* Global Hero Unifier: apply brand gradient site-wide (includes all calculators) */
.page-hero,
.calculator-page-hero,
.hero-section,
.calculator-hero,
.hero {
    background: linear-gradient(135deg, var(--brand-start, #0EA5E9), var(--brand-end, #8B5CF6)) !important;
}

/* Calculators page: add breathing room between hero and section header */
.calculators-section .section-header { margin-top: 1.5rem; }

/* Brand Overrides: unify button styles site-wide */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-end), var(--brand-start));
}

.btn-outline {
    color: var(--brand-start);
    border-color: var(--brand-start);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: white;
    border-color: transparent;
}

.calculator-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Use global hero variables to ensure brand-colored headers */
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    z-index: -1;
}

/* Removed global hero overrides to prevent layout regressions on non-calculator pages */

/* Calculator-only hero enforcement (narrow scope) */
.hero-section.calculator-hero,
.calculator-hero {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end)) !important;
}

/* Calculator Page Layout & Typography (moved from inline CSS) */
.page-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.calculator-page-content {
    padding: 4rem 0;
    background: #f9fafb;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.calculator-main {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.calculator-wrapper {
    margin-bottom: 3rem;
}

.calculator-description {
    margin-top: 4rem;
    padding: 0;
    border-top: none;
}

/* Modern Content Styling */
.calculator-description h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827; /* readable dark text */
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.calculator-description h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    border-radius: 2px;
}

.calculator-description h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 1rem;
    border-left: 4px solid var(--hero-start);
    position: relative;
    overflow: hidden;
}

.calculator-description h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    z-index: -1;
}

.calculator-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    position: relative;
    transition: all 0.3s ease;
}

.calculator-description p:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e0f2fe;
}

.calculator-description p strong {
    color: #3b82f6;
    font-weight: 600;
    background: linear-gradient(135deg, #dbeafe, #f0f9ff);
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #bfdbfe;
}

.calculator-description ul {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* Reference Table (global) */
.reference-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.reference-table thead th {
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.reference-table tbody td {
    padding: 0.75rem 1rem;
    color: #374151;
    border-top: 1px solid #f3f4f6;
}

.reference-table tbody tr:nth-child(odd) td {
    background: #fafafa;
}

.reference-table tbody tr:hover td {
    background: #f0f9ff;
}

.reference-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #6b7280;
}

/* Result summary text */
.result-summary {
    margin-top: 0.75rem;
    color: #374151;
    list-style: none;
    padding-left: 0;
}

.result-summary li {
    margin: 2px 0;
}

.calculator-description ul li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border-left: 4px solid #10b981;
    position: relative;
    transition: all 0.3s ease;
}

.calculator-description ul li:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left-color: #059669;
}

.calculator-description ul li strong {
    color: #059669;
    font-weight: 600;
}

.calculator-description ul li:last-child {
    margin-bottom: 0;
}

.calculator-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #e0f2fe;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar Styles */
.calculator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.calculator-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calculator-links li {
    margin-bottom: 0.5rem;
}

.calculator-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.calculator-links li a:hover,
.calculator-links li.current a {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #3b82f6;
}

.calculator-links li a i {
    color: #3b82f6;
}

.health-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.health-tips-list li {
    margin-bottom: 0.75rem;
}

.health-tips-list li a {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.health-tips-list li a:hover {
    color: #3b82f6;
}

.health-tips-list li a i {
    color: #fbbf24;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.cta-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.cta-widget .btn-primary {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: white;
}

.cta-widget .btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-end), var(--brand-start));
}

/* SEO Content Styles */
.seo-content {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-top: 3rem;
    border-left: 4px solid #3b82f6;
}

.seo-content h2 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.seo-content h3 {
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.seo-content ul li {
    padding-left: 1.75rem; /* extra room for check icon */
    margin-bottom: 0.75rem;
    position: relative;
    color: #6b7280;
    line-height: 1.6;
}

.seo-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0.25rem; /* prevent overlap with container edge/border */
    top: 0.15em;   /* align vertically with first line */
    line-height: 1;
    color: #10b981;
    font-weight: bold;
}

.seo-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
    
    .calculator-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .seo-content {
        border-left: 0; /* remove vertical accent on mobile to reduce clutter */
        padding: 1.25rem;
    }
    .seo-content ul li {
        padding-left: 1.5rem; /* slightly tighter on mobile */
    }
    .seo-content ul li::before {
        left: 0;
    }
    .page-title {
        font-size: 2rem;
    }
    
    .calculator-main {
        padding: 1.5rem;
    }
    
    .calculator-info-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-sidebar {
        grid-template-columns: 1fr;
    }

    /* Flatten nested boxes in mobile content */
    .calculator-description h3 {
        margin: 1rem 0 0.5rem;
        padding: 0;
        background: transparent;
        border-left: 0;
    }

    .calculator-description p {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        margin-bottom: 1rem;
    }

    .calculator-description p strong {
        background: transparent;
        border: 0;
        padding: 0;
    }

    .calculator-description ul {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .calculator-description ul li {
        background: transparent;
        padding: 0.75rem 0;
        border: 0;
        transition: none;
    }
}

/* Default BMI Calculator Colors */
.calculator-type-bmi .calculator-page-hero,
body:not([class*="calculator-type-"]) .calculator-page-hero {
    --calculator-primary: #8b5cf6;
    --calculator-secondary: #a78bfa;
}

/* TDEE Calculator Colors */
.calculator-type-tdee .calculator-page-hero {
    --calculator-primary: #3b82f6;
    --calculator-secondary: #60a5fa;
}

/* Water Intake Calculator Colors */
.calculator-type-water-intake .calculator-page-hero {
    --calculator-primary: #06b6d4;
    --calculator-secondary: #22d3ee;
}

/* Calorie Goal Calculator Colors */
.calculator-type-calorie-goal .calculator-page-hero {
    --calculator-primary: #f59e0b;
    --calculator-secondary: #fbbf24;
}

/* Macro Distribution Calculator Colors */
.calculator-type-macro-distribution .calculator-page-hero {
    --calculator-primary: #10b981;
    --calculator-secondary: #34d399;
}
.macro-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
/* Daily Carbs Calculator Styles */
.calculator-type-daily-carbs .calculator-page-hero { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); }
.calculator-type-daily-carbs .result-card { border-left: 4px solid #0ea5e9; }
.calculator-type-daily-fat .calculator-page-hero { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.calculator-type-daily-fat .result-card { border-left: 4px solid #f59e0b; }
/* calculator-type-pace-speed */
.calculator-type-pace-speed .calculator-page-hero { background: linear-gradient(135deg, var(--brand-start), var(--brand-end)); }
.calculator-type-pace-speed .result-card { border-top: 3px solid var(--brand-end); }

/* calculator-type-one-rep-max */
.calculator-type-one-rep-max .calculator-page-hero {
  /* Hero artık global marka renk değişkenlerini kullanıyor */
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}
.calculator-type-one-rep-max .result-card {
  border-top: 3px solid var(--brand-end);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 16px 20px;
}
.calculator-type-one-rep-max .result-title {
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}
.calculator-type-one-rep-max .result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .calculator-type-one-rep-max .result-grid { grid-template-columns: repeat(4, 1fr); }
}
.calculator-type-one-rep-max .result-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
}
.calculator-type-one-rep-max .result-label {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: .02em;
}
.calculator-type-one-rep-max .result-value {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-end);
}
@media (min-width: 768px) {
  .calculator-type-one-rep-max .result-value { font-size: 34px; }
}

/* Modern form tasarımı */
.calculator-type-one-rep-max .calculator-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 24px;
}
.calculator-type-one-rep-max .calculator-form { display: grid; gap: 16px; }
.calculator-type-one-rep-max .form-grid { display:grid; grid-template-columns: 1fr; gap:16px; }
@media (min-width: 768px) {
  .calculator-type-one-rep-max .form-grid { grid-template-columns: 1fr 1fr; }
}
.calculator-type-one-rep-max .form-row label {
  display:block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.calculator-type-one-rep-max .input-group {
  display:flex;
  align-items:center;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.calculator-type-one-rep-max .input-group:focus-within {
  border-color: var(--brand-end);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.15); /* brand-end alpha */
}
.calculator-type-one-rep-max .input-group .input-icon {
  color:#9ca3af;
  font-size:18px;
  margin-right:8px;
}
.calculator-type-one-rep-max .input-group input {
  width:100%;
  border:0;
  outline:0;
  font-size:16px;
  padding:6px 0;
  background:transparent;
}
.calculator-type-one-rep-max .input-group .input-suffix {
  margin-left:8px;
  color:#6b7280;
  font-weight:600;
}
.calculator-type-one-rep-max .help-text {
  display:block;
  margin-top:6px;
  font-size:12px;
  color:#6b7280;
}
.calculator-type-one-rep-max .btn.brand {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color:#fff;
  border:0;
  border-radius:12px;
  padding:12px 16px;
  font-weight:700;
}
.calculator-type-one-rep-max .btn.brand:hover { opacity:.95; transform: translateY(-1px); }
.calculator-type-met-calories .calculator-page-hero {

/* MET Calories Calculator Colors */
.calculator-type-met-calories .calculator-page-hero {
    --calculator-primary: #ef4444;
    --calculator-secondary: #f87171;
}

/* Target Heart Rate Calculator Colors */
.calculator-type-target-heart-rate .calculator-page-hero {
    --calculator-primary: #b91c1c;
    --calculator-secondary: #ef4444;
}
/* Resting Heart Rate Calculator Colors */
.calculator-type-resting-heart-rate .calculator-page-hero {
    --calculator-primary: #991b1b;
    --calculator-secondary: #dc2626;
}

/* BMR Calculator Colors */
.calculator-type-bmr .calculator-page-hero {
    --calculator-primary: #8b5cf6;
    --calculator-secondary: #a78bfa;
}

/* Ideal Weight Calculator Colors */
.calculator-type-ideal-weight .calculator-page-hero {
    --calculator-primary: #ec4899;
    --calculator-secondary: #f472b6;
}

/* Body Fat Calculator Colors */
.calculator-type-body-fat .calculator-page-hero {
    --calculator-primary: #6366f1;
    --calculator-secondary: #818cf8;
}

/* WHR Calculator Colors */
.calculator-type-whr .calculator-page-hero {
    --calculator-primary: #84cc16;
    --calculator-secondary: #a3e635;
}

/* Protein Calculator Colors */
.calculator-type-protein .calculator-page-hero {
    --calculator-primary: #f97316;
    --calculator-secondary: #fb923c;
}

/* Calorie Calculator Colors */
.calculator-type-calorie .calculator-page-hero {
    --calculator-primary: #dc2626;
    --calculator-secondary: #ef4444;
}

.calculator-page-hero .page-title,
.calculator-page-hero .page-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Calculator description heading visibility (narrow scope to prevent regressions) */
.calculator-description h1,
.calculator-description h2,
.calculator-description h3,
.calculator-description h4 {
    color: #111827 !important; /* dark text for readability on light background */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Explicit override for Gutenberg h2 heading inside calculator descriptions */
.calculator-description h2.wp-block-heading {
    color: #111827 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Calculator Form Styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Police PFT specific modern styles */
#police-pft-calculator.calculator-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    border: 1px solid #eef2f7;
}

#police-pft-calculator .card-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

#police-pft-calculator .card-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}

#police-pft-calculator .time-inputs {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

#police-pft-calculator .time-inputs .form-input {
    max-width: 140px;
    text-align: center;
}

#police-pft-calculator .time-sep {
    font-weight: 700;
    color: #1f2937;
}

#police-pft-calculator .form-hint {
    display: block;
    margin-top: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
}

#police-pft-calculator fieldset.penalties {
    border: none;
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
}

#police-pft-calculator fieldset.penalties legend {
    font-weight: 700;
    color: #1f2937;
    padding: 0 0.5rem;
}

#police-pft-calculator .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

@media (max-width: 768px) {
    #police-pft-calculator .grid-2 { grid-template-columns: 1fr; }
}

#police-pft-calculator .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#police-pft-calculator .result-details {
    margin-top: 1rem;
    color: #374151;
}

#police-pft-calculator .result-note { color: #6b7280; }

.result-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.badge-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.badge-error   { background: #fef2f2; color: #7f1d1d; border: 1px solid #fca5a5; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 24, 40, 0.15);
}

.btn-primary:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 24, 40, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--brand-start);
    border: 2px solid var(--brand-start);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    color: white;
    border-color: transparent;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Calculator Result Styles */
.calculator-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.result-content {
    text-align: center;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.result-main {
    margin-bottom: 1.5rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.result-category {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-description {
    color: #6b7280;
    font-size: 0.875rem;
}

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

.result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.result-card .result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* Daily Creatine Dose: enforce 3rem for main result value */
.daily-creatine-dose-calculator .result-main .result-value {
    font-size: 3rem;
}

/* Gebelik sonuç kartı değeri (genel kullanım için) */
.result-card-value {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.result-card .result-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.result-advice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.result-advice h4 {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.result-advice p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
}

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

.reference-card {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.75rem;
    padding: 1rem;
}

.reference-card h4 {
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.reference-card p {
    color: #0c4a6e;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

/* Gauge Chart Container */
.gauge-container {
    margin-top: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

/* Modal Styles */
#calculator-modal {
    backdrop-filter: blur(4px);
}

#calculator-modal .bg-white {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#modal-title {
    color: #1f2937;
    font-weight: 700;
}

#close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-modal:hover {
    color: #374151;
}

/* Notification Styles */
#notification {
    z-index: 9999;
    max-width: 400px;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-references {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .result-value {
        font-size: 2.5rem;
    }
    
    .result-card .result-value {
        font-size: 1.5rem;
    }
    
    .result-card-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .calculator-form {
        gap: 1rem;
    }
    
    .form-input {
        padding: 0.875rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .result-title {
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Focus States */
.form-input:focus.success {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:focus.error {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Print Styles */
@media print {
    .btn,
    .calculator-form,
    #calculator-modal {
        display: none !important;
    }
    
    .calculator-result {
        border: 1px solid #000;
        background: white !important;
    }
}

/* Blog Archive Styles */
.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    line-height: 1.2;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    background: #fff;
}
.pagination a:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}
.pagination .current {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

/* Mobile overflow fixes: box-sizing and width clamps */
*, *::before, *::after { box-sizing: border-box; }

/* Ana wrapper için */
.calculator-wrapper {
  max-width: 100%;
  overflow-x: hidden;
  padding: 1rem; /* Mobilde daha küçük padding */
}

/* Card için (yalnızca hesaplayıcı sayfaları) */
.calculator-page-content .calculator-card {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Container (yalnızca hesaplayıcı sayfaları) */
.calculator-page-hero .container,
.calculator-page-content .container {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Tüm içerik öğeleri için */
.calculator-main,
.calculator-description,
.calculator-info-grid {
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobil için özel medya sorgusu */
@media (max-width: 768px) {
  .calculator-wrapper {
    padding: 0.5rem;
  }
  
  .calculator-page-content .calculator-card {
    margin: 0;
    border-radius: 0; /* Blog kartlarını etkilememek için hesaplayıcı sayfalarıyla sınırlı */
  }
  
  .calculator-info-grid {
    grid-template-columns: 1fr; /* Tek sütun yapın */
    gap: 1rem;
  }
  
  /* Input ve select öğeleri */
  input, select, button {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Responsive tables within calculator results */
.calculator-result .result-details {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  display: block;
  contain: layout paint;
  padding-bottom: 4px; /* keep scrollbar from overlapping content */
}

/* Ensure reference tables fit within viewport */
.calculator-result .reference-table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}

@media (max-width: 768px) {
  /* Ensure vaccination table never exceeds viewport on small screens */
  .calculator-result .reference-table {
    width: 100% !important;
    table-layout: fixed;
  }

  /* Global clamp for mobile overflow */
  html, body { overflow-x: hidden !important; }
  .calculator-page-content, .calculator-layout, .calculator-page-content .calculator-card, #vaccination-result, .modern-result {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .calculator-result .result-details { overflow-x: hidden; }

  /* Vaccination table as stacked cards on <=640px */
  #vac-table { width: 100% !important; border: 0; }
  #vac-table thead { display: none; }
  #vac-table tbody, #vac-table tr, #vac-table td { display: block; }
  #vac-table tr {
    margin: 0 0 0.75rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
  }
  #vac-table td {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  #vac-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
  }
  #vac-table td:last-child .badge { justify-self: start; }
}

/* Prevent calculator cards causing page-level horizontal overflow (only on calculator pages) */
.calculator-page-content .calculator-card { overflow-x: hidden; }

/* Vaccination page: hard-stop any horizontal overflow from result block */
#vaccination-result { overflow-x: hidden; }
@supports (overflow: clip) {
  #vaccination-result { overflow-x: clip; }
}

/* Vaccine list styling inside table cells */
.vac-list { margin: 0; padding: 0; list-style: none; }
.vac-list li { margin: 0; line-height: 1.4; word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }

/* Mobile-friendly table layout for vaccination preview */
@media (max-width: 768px) {
  #vac-table { width: 100%; table-layout: fixed; }
  #vac-table th, #vac-table td { padding: 0.5rem 0.625rem; font-size: 0.9375rem; }
  #vac-table th, #vac-table td { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }
  #vac-table th:nth-child(3), #vac-table td:nth-child(3) { white-space: nowrap; }
}
@media (max-width: 480px) {
  /* Make vaccination table fully fit within viewport */
  .calculator-result .reference-table { width: 100% !important; table-layout: fixed; }

  /* Mobilde tabloyu kart liste görünümüne dönüştür */
  #vac-table { width: 100% !important; border: 0; }
  #vac-table thead { display: none; }
  #vac-table tbody, #vac-table tr, #vac-table td { display: block; }
  #vac-table tr {
    margin: 0 0 0.75rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
  }
  #vac-table td {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  /* Varsayılan etiketler (data-label yoksa çalışır) */
  #vac-table td:nth-child(1)::before { content: 'Aşı'; }
  #vac-table td:nth-child(2)::before { content: 'Doz'; }
  #vac-table td:nth-child(3)::before { content: 'Yaş'; }
  #vac-table td:nth-child(4)::before { content: 'Tarih'; }
  #vac-table td:nth-child(5)::before { content: 'Durum'; }
  /* data-label varsa onunla etiketle */
  #vac-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
  }
  #vac-table td:last-child .badge { justify-self: start; }
}

/* Slightly more room for the internal scrollbar */
#vaccination-result .result-details { padding-bottom: 8px; }

/* (Reverted) Mobil alternatif kart listesi kaldırıldı; tablo görünümü geri getirildi. */


/* Vaccination schedule status badges (used by JS: class="badge status-*") */
.badge {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}
.badge.status-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.badge.status-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.badge.status-info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }
.badge.status-neutral { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }

.result-advice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.result-advice h4 {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.result-advice p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
}

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

.reference-card {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.75rem;
    padding: 1rem;
}

.reference-card h4 {
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.reference-card p {
    color: #0c4a6e;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

/* Gauge Chart Container */
.gauge-container {
    margin-top: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

/* Modal Styles */
#calculator-modal {
    backdrop-filter: blur(4px);
}

#calculator-modal .bg-white {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#modal-title {
    color: #1f2937;
    font-weight: 700;
}

#close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-modal:hover {
    color: #374151;
}

/* Notification Styles */
#notification {
    z-index: 9999;
    max-width: 400px;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-references {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .result-value {
        font-size: 2.5rem;
    }
    
    .result-card .result-value {
        font-size: 1.5rem;
    }
    
    .result-card-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .calculator-form {
        gap: 1rem;
    }
    
    .form-input {
        padding: 0.875rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .result-title {
        font-size: 1.25rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Focus States */
.form-input:focus.success {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:focus.error {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Print Styles */
@media print {
    .btn,
    .calculator-form,
    #calculator-modal {
        display: none !important;
    }
    
    .calculator-result {
        border: 1px solid #000;
        background: white !important;
    }
}

/* Blog Archive Styles */
.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

/* Unified pagination styling across templates */
.pagination,
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Style both WordPress page-numbers and plain anchors */
.pagination a,
.pagination span,
.pagination .page-numbers,
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    text-decoration: none !important;
    background: #fff;
    line-height: 1.2;
}

.pagination a:hover,
.pagination .page-numbers:hover,
.pagination-wrapper .page-numbers:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important;
}

.pagination a:visited,
.pagination .page-numbers:visited,
.pagination-wrapper .page-numbers:visited {
    color: var(--text-primary) !important;
}

.pagination .current,
.pagination .page-numbers.current {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--secondary-color);
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* Emphasize prev/next controls */
.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Contact Form 7 — Brand Styles */
.wpcf7 {
  --cf7-border: var(--border-color);
  --cf7-bg: var(--bg-primary, #ffffff);
  --cf7-muted: var(--text-secondary, #6b7280);
}

.wpcf7-form p { margin: 0 0 1rem; }

.wpcf7-form label {
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--cf7-border);
  border-radius: 12px;
  background: var(--cf7-bg);
  font-size: 1rem;
  color: var(--text-primary, #1f2937);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: var(--cf7-muted); opacity: .85; }

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--brand-start);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 24, 40, 0.15);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.wpcf7 input[type="submit"]:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.20);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.15);
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--danger-color, #EF4444);
  background: #fff5f5;
}

.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--danger-color, #EF4444);
}

.wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-primary, #1f2937);
}

.wpcf7 form.invalid .wpcf7-response-output {
  border-color: var(--danger-color, #EF4444);
  background: #fff5f5;
  color: #991b1b;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--secondary-color, #10B981);
  background: #ecfdf5;
  color: #065f46;
}

/* Optional two-column layout class */
@media (min-width: 768px) {
  .wpcf7 .form-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .wpcf7 .form-two-cols p { margin: 0; }
}
