/* ====================================================================
   PROPERTY COST CALCULATOR STYLES - WEBSITE VERSION
   ==================================================================== */

/* Calculator Container */
.calculator-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Input Section */
.calc-section {
    margin-bottom: 35px;
}

.calc-section h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(6, 214, 160, 0.3);
}

.calc-section h3 i {
    color: var(--success-green);
}

/* Form Grid */
.calc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Input Group */
.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-label {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-input,
.calc-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.calc-input:focus,
.calc-select:focus {
    outline: none;
    border-color: var(--success-green);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.2);
}

.calc-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Toggle Buttons */
.calc-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.calc-toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.calc-toggle-btn.active {
    background: linear-gradient(135deg, #06D6A0, #28A745);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.3);
}

.calc-toggle-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

/* Range Slider */
.calc-slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06D6A0, #28A745);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(6, 214, 160, 0.4);
    transition: all 0.3s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.6);
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06D6A0, #28A745);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(6, 214, 160, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

/* Results Section */
.calc-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.calc-results h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.result-card.primary {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.15), rgba(40, 167, 69, 0.1));
    border-color: rgba(6, 214, 160, 0.3);
}

.result-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.result-amount {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.result-card.primary .result-amount {
    color: var(--success-green);
    font-size: 2rem;
}

.result-description {
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Breakdown Section */
.calc-breakdown {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.calc-breakdown h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-breakdown h4 i {
    color: var(--primary-blue);
}

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: var(--text-light);
    font-weight: 500;
}

.breakdown-value {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.1rem;
}

.breakdown-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(6, 214, 160, 0.3);
}

.breakdown-total .breakdown-label {
    color: var(--success-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.breakdown-total .breakdown-value {
    color: var(--success-green);
    font-size: 1.4rem;
}

/* Info Icon */
.calc-info-icon {
    color: var(--primary-blue);
    cursor: help;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.calc-info-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Disclaimer */
.calc-disclaimer {
    background: rgba(247, 127, 0, 0.1);
    border: 1px solid rgba(247, 127, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.calc-disclaimer p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.calc-disclaimer i {
    color: var(--gold-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-container {
        padding: 25px 20px;
    }
    
    .calc-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-amount {
        font-size: 1.5rem;
    }
    
    .calc-breakdown {
        padding: 20px;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .calc-section h3 {
        font-size: 1.2rem;
    }
    
    .calc-input,
    .calc-select,
    .calc-toggle-btn {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    
    .result-card {
        padding: 20px;
    }
}

/* Expandable Breakdown Sections */
.breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.breakdown-header:hover {
    opacity: 0.8;
}

.breakdown-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-toggle {
    color: var(--gold-accent);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.breakdown-toggle.collapsed {
    transform: rotate(-90deg);
}

.breakdown-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.breakdown-content.expanded {
    max-height: 2000px;
    opacity: 1;
}

.breakdown-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Subsection Styles */
.breakdown-subsection {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-subsection:last-of-type {
    border-bottom: none;
}

.subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(6, 214, 160, 0.1);
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--success-green);
}

.subsection-title {
    color: var(--success-green);
    font-weight: 700;
    font-size: 1rem;
}

.subsection-total {
    color: var(--success-green);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Sub-list Styles */
.breakdown-list.sub-list {
    margin-left: 0;
}

.breakdown-item.sub-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 2px solid rgba(6, 214, 160, 0.3);
}

.breakdown-item.sub-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Info Icon in Breakdown */
.breakdown-label .calc-info-icon {
    margin-left: 5px;
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .subsection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breakdown-item.sub-item {
        padding: 10px 12px;
    }
}

/* Empty State */
.calc-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-top: 30px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    opacity: 0.5;
}

.calc-empty-state h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.calc-empty-state p {
    color: var(--text-light);
    font-size: 1rem;
    opacity: 0.8;
}


