/* Calculator Dark Theme Fix */
/* This file specifically addresses white background issues on calculator page */

/* Force transparent background for calculator section */
.calculator-section {
    background: transparent !important;
    background-color: transparent !important;
}

/* Override any white backgrounds on calculator page */
.page-template-page-calculator .calculator-section,
.page-template-page-calculator .calculator-section * {
    background-color: transparent !important;
}

/* Remove white background from any element with inline styles */
.page-template-page-calculator [style*="background: white"],
.page-template-page-calculator [style*="background-color: white"],
.page-template-page-calculator [style*="background:#fff"],
.page-template-page-calculator [style*="background-color:#fff"],
.page-template-page-calculator [style*="background: #ffffff"],
.page-template-page-calculator [style*="background-color: #ffffff"] {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure calculator form maintains dark theme */
.calculator-form {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Calculator form inputs dark theme */
.calculator-form input,
.calculator-form textarea,
.calculator-form select,
.calculator-form button {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Calculator options dark theme */
.calculator-options,
.option-group {
    background: transparent !important;
}

/* Calculator result card dark theme */
.calculator-result .result-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact form section dark theme */
.contact-form-section {
    background: transparent !important;
}

/* Override WordPress default white backgrounds */
.page-template-page-calculator .has-white-background-color,
.page-template-page-calculator .wp-block-group.has-white-background-color {
    background-color: transparent !important;
}

/* Force dark theme for any container */
.page-template-page-calculator .container,
.page-template-page-calculator .calculator-container {
    background: transparent !important;
    background-color: transparent !important;
}/* Text vi
sibility improvements for dark theme */

/* Calculator section text colors */
.page-template-page-calculator .calculator-section,
.page-template-page-calculator .calculator-section * {
    color: #ffffff !important;
}

/* Calculator form text colors */
.calculator-form h2,
.calculator-form h3,
.calculator-form label,
.calculator-form p,
.calculator-form span {
    color: #ffffff !important;
}

/* Option group titles */
.option-group h3 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Option labels and text */
.option-item label,
.option-item span {
    color: #ffffff !important;
}

/* Radio button and checkbox labels */
.calculator-form input[type="radio"] + span,
.calculator-form input[type="checkbox"] + span {
    color: #ffffff !important;
}

/* Price text */
.option-item .price {
    color: #8b5cf6 !important;
    font-weight: 600;
}

/* Calculator result text */
.result-card h3,
.result-card .total-amount,
.result-card .currency {
    color: #ffffff !important;
}

/* Step cards text */
.step-card h3,
.step-card p {
    color: #ffffff !important;
}

/* Contact form text */
.contact-form-section h2,
.contact-form-section p,
.contact-form-section label {
    color: #ffffff !important;
}

/* Form group labels */
.form-group label {
    color: #ffffff !important;
    font-weight: 500;
}

/* Placeholder text */
.calculator-form input::placeholder,
.calculator-form textarea::placeholder {
    color: #9ca3af !important;
}

/* Button text */
.calculator-form button,
.calculator-form .btn-primary,
.calculator-form .btn-secondary {
    color: #ffffff !important;
}

/* Override any dark text that might be hard to read */
.page-template-page-calculator [style*="color: black"],
.page-template-page-calculator [style*="color: #000"],
.page-template-page-calculator [style*="color:#000000"] {
    color: #ffffff !important;
}

/* Ensure good contrast for all text elements */
.page-template-page-calculator .calculator-steps h1,
.page-template-page-calculator .calculator-steps h2,
.page-template-page-calculator .calculator-steps h3,
.page-template-page-calculator .calculator-steps h4,
.page-template-page-calculator .calculator-steps h5,
.page-template-page-calculator .calculator-steps h6,
.page-template-page-calculator .calculator-steps p,
.page-template-page-calculator .calculator-steps span,
.page-template-page-calculator .calculator-steps div,
.page-template-page-calculator .calculator-steps label,
.page-template-page-calculator .calculator-section h1,
.page-template-page-calculator .calculator-section h2,
.page-template-page-calculator .calculator-section h3,
.page-template-page-calculator .calculator-section h4,
.page-template-page-calculator .calculator-section h5,
.page-template-page-calculator .calculator-section h6,
.page-template-page-calculator .calculator-section p,
.page-template-page-calculator .calculator-section span,
.page-template-page-calculator .calculator-section div,
.page-template-page-calculator .calculator-section label {
    color: #ffffff !important;
}

/* Special styling for important text */
.calculator-form .total-amount {
    color: #8b5cf6 !important;
    font-size: 2rem;
    font-weight: bold;
}

/* Links styling */
.page-template-page-calculator .calculator-steps a,
.page-template-page-calculator .calculator-section a {
    color: #8b5cf6 !important;
}

.page-template-page-calculator .calculator-steps a:hover,
.page-template-page-calculator .calculator-section a:hover {
    color: #a78bfa !important;
}

/* Keep header menu colors consistent with main page */
.page-template-page-calculator .header .nav a,
.page-template-page-calculator .header .logo-link,
.page-template-page-calculator .header .email {
    color: #ffffff !important;
}

.page-template-page-calculator .header .nav a:hover {
    color: #8b5cf6 !important;
}

/* Exception for CTA button - keep white text */
.page-template-page-calculator .cta-button,
.page-template-page-calculator a.cta-button {
    color: #ffffff !important;
}

.page-template-page-calculator .cta-button:hover,
.page-template-page-calculator a.cta-button:hover {
    color: #ffffff !important;
}

/* Crisp checkbox tick (SVG) — replaces jagged CSS border trick from calculator.css */
.page-template-page-calculator .calculator-section .option-item input[type="checkbox"] + .checkmark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
}

.page-template-page-calculator .calculator-section .option-item input[type="checkbox"]:checked + .checkmark {
    background: #8b5cf6;
    border-color: #a78bfa;
}

.page-template-page-calculator .calculator-section .option-item input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: 0;
    border: none;
    transform: translate(-50%, -50%);
    background: center / contain no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}