/* Note: I've prepended rules with .solar-calculator-wrapper to scope them */
.solar-calculator-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.solar-calculator-wrapper {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    max-width: 900px;
    margin: 2rem auto;
}

/* --- Header --- */
.solar-calculator-wrapper .header {
	  display: none;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.solar-calculator-wrapper .logo-section .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.solar-calculator-wrapper .logo i {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solar-calculator-wrapper .tagline {
    color: #555;
    font-style: italic;
    font-size: 1rem;
}

.solar-calculator-wrapper .calculator-container {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.solar-calculator-wrapper .main-title {
	  display: none !important;
    text-align: center;
    color: #2e7d32;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.solar-calculator-wrapper .main-title i {
    color: #ff9800;
}

.solar-calculator-wrapper .form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fdf8;
    border: 1px solid #e8f5e9;
    border-radius: 12px;
}

.solar-calculator-wrapper .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.solar-calculator-wrapper .step-number {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.solar-calculator-wrapper .input-options {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.solar-calculator-wrapper .option-card {
    flex: 1;
    min-width: 150px;
}

.solar-calculator-wrapper .option-card input[type="radio"] {
    display: none;
}

.solar-calculator-wrapper .option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #53b357;
    text-align: center;
    font-weight: 500;
}

.solar-calculator-wrapper .option-label:hover {
    border-color: #4caf50;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.solar-calculator-wrapper .option-card input[type="radio"]:checked + .option-label {
    border-color: #4caf50;
    background: #4caf50;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25);
}

.solar-calculator-wrapper .option-label i {
    font-size: 2.25rem;
    color: #4caf50;
    transition: color 0.3s ease;
}

.solar-calculator-wrapper .option-card input[type="radio"]:checked + .option-label i {
    color: white;
}

.solar-calculator-wrapper .or-divider {
    color: #555;
    font-weight: 600;
}

.solar-calculator-wrapper .dual-step-row {
    display: flex;
    
    gap: 2rem;
    align-items: end;
}

.solar-calculator-wrapper .step-column {
    display: flex;
    flex-direction: column;
}

.solar-calculator-wrapper #inputSection {
    display: none;
}

.solar-calculator-wrapper .select-group, .solar-calculator-wrapper .input-group {
    width: 100%;
}

.solar-calculator-wrapper .select-group select, .solar-calculator-wrapper .input-group input {
    width: 100%;
    padding: 0 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 52px;
    font-family: 'Poppins', sans-serif;
}

.solar-calculator-wrapper .select-group select:focus, .solar-calculator-wrapper .input-group input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.solar-calculator-wrapper .input-group {
    display: flex;
    align-items: center;
    height: 52px;
}

.solar-calculator-wrapper .input-group input {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.solar-calculator-wrapper .input-unit {
    background: #e9e9e9;
    color: #555;
    padding: 0 1rem;
    border-radius: 0 10px 10px 0;
    border: 2px solid #e0e0e0;
    border-left: none;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.9rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solar-calculator-wrapper .info-section {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    color: #1976d2;
    font-size: 0.9rem;
    margin: 1rem 0 2rem 0;
}

.solar-calculator-wrapper .info-section i {
    color: #2196f3;
}

.solar-calculator-wrapper .calculate-btn {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 0 17px 19px 0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.solar-calculator-wrapper .calculate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.solar-calculator-wrapper .calculate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.solar-calculator-wrapper .results-section {
    display: none;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9f0, #e8f5e8);
    border-radius: 16px;
    border: 1px solid #d4e9d5;
}

.solar-calculator-wrapper .results-title {
    text-align: center;
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.solar-calculator-wrapper .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.solar-calculator-wrapper .result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #4caf50;
}

.solar-calculator-wrapper .result-card h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.solar-calculator-wrapper .result-card .value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.2;
}

.solar-calculator-wrapper .result-card .unit {
    color: #666;
    font-size: 0.9rem;
}

.solar-calculator-wrapper .contact-section {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-top: 1rem;
}

.solar-calculator-wrapper .contact-section p {
    margin-bottom: 1rem;
    color: #444;
}

.solar-calculator-wrapper .contact-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.solar-calculator-wrapper .contact-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

/* These are globally positioned, so they don't need the wrapper class */
.popup-overlay {
/*     display: flex; */
		display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.popup-overlay.visible .popup-content {
    transform: scale(1);
}

.popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.popup-header h3 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-header h3 i {
    color: #ff9800;
}

.popup-header p {
    color: #666;
    font-size: 0.95rem;
}

.popup-form-group {
    margin-bottom: 1.5rem;
}

.popup-form-group label {
    display: block;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup-form-group input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.popup-button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-submit-btn, .popup-close-btn {
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-submit-btn {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.popup-close-btn {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.popup-close-btn:hover {
    background: #e0e0e0;
    border-color: #bdbdbd;
}

.solar-calculator-wrapper .disclaimer-row {
    width: 100%;
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    text-align: left;
}

.solar-calculator-wrapper .disclaimer-row i {
    color: #17a2b8;
    margin-right: 6px;
}

.solar-calculator-wrapper .disclaimer-row strong {
    color: #343a40;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.warning-toast {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff5722, #f44336);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
    animation: slideInRight 0.3s ease forwards;
}

.warning-toast.visible {
    display: block;
}

.warning-toast.slide-out {
    animation: slideOutRight 0.3s ease forwards;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.warning-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    line-height: 1;
}
.site-main .wp-block-group__inner-container {
    padding: 0px;
}
@media (max-width: 768px) {
    .solar-calculator-wrapper .calculator-container { padding: 1.5rem; }
    .solar-calculator-wrapper .main-title { font-size: 2rem; }
    .solar-calculator-wrapper .input-options { flex-direction: column; gap: 1rem; }
    .solar-calculator-wrapper .or-divider { margin: 0.5rem 0; }
    .solar-calculator-wrapper .dual-step-row { grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
}

@media (max-width: 480px) {
    .solar-calculator-wrapper .main-title { font-size: 1.75rem; }
    .solar-calculator-wrapper .results-grid { grid-template-columns: 1fr; }
    .solar-calculator-wrapper .calculate-btn { width: 100%; justify-content: center; }
    .popup-content { padding: 1.5rem; width: 95%; }
    .popup-header h3 { font-size: 1.5rem; }
    .popup-button-group { flex-direction: column; }
    .popup-submit-btn, .popup-close-btn { width: 100%; justify-content: center; }
}