/* 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 h1,
.page-template-page-calculator h2,
.page-template-page-calculator h3,
.page-template-page-calculator h4,
.page-template-page-calculator h5,
.page-template-page-calculator h6,
.page-template-page-calculator p,
.page-template-page-calculator span,
.page-template-page-calculator div,
.page-template-page-calculator 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 a {
    color: #8b5cf6 !important;
}

.page-template-page-calculator a:hover {
    color: #a78bfa !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;
}