/* Background styles */
.estimate-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/Construction/LuxuryHouse.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.estimate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

#estimateCalculator {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 1rem 0 4rem 0;
}

/* Description container - 60px padding bottom */
.description-container {
    padding-bottom: 60px !important;
}

/* Estimate badge - Transparent version */
.estimate-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(43, 108, 176, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.estimate-badge i {
    font-size: 1rem;
    color: rgb(43, 108, 176);
}

/* Description text */
.estimate-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    color: rgb(43, 108, 176);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Benefit badges - Transparent version */
.benefit-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    color: white;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.benefit-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.benefit-badge i {
    color: rgb(43, 108, 176);
    font-size: 0.85rem;
}

/* Card styles - Transparent version with UNIFORM HOVER (no blue) */
.estimate-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.estimate-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Calculator Icon - NO ANIMATION on hover */
.calculator-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* No transition for transform */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.estimate-card:hover .calculator-icon {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    /* No transform, no rotation, no scale */
    transform: none;
}

.calculator-icon i {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: color 0.3s ease;
}

.estimate-card:hover .calculator-icon i {
    color: rgb(43, 108, 176);
}

/* Card title and subtitle */
.calculator-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.estimate-card:hover .calculator-title {
    color: rgba(255, 255, 255, 1) !important;
    letter-spacing: 0.5px;
}

.calculator-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.estimate-card:hover .calculator-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Form labels */
.form-label {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.estimate-card:hover .form-label {
    color: rgba(255, 255, 255, 1) !important;
}

/* Transparent inputs */
.transparent-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    color: white !important;
    transition: all 0.3s ease;
}

.transparent-input:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15) !important;
    outline: none;
    background: rgba(255, 255, 255, 0.15) !important;
}

.estimate-card:hover .transparent-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.transparent-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Transparent select */
.transparent-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    color: white !important;
    transition: all 0.3s ease;
}

.transparent-select option {
    background: #1a1a1a;
    color: white;
}

.transparent-select:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15) !important;
    outline: none;
    background: rgba(255, 255, 255, 0.15) !important;
}

.estimate-card:hover .transparent-select {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Result Box - Transparent version with uniform hover */
.result-box {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease;
}

.estimate-card:hover .result-box {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.02);
}

.result-label {
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.estimate-card:hover .result-label {
    color: white !important;
    letter-spacing: 1.5px;
}

.price-value {
    color: rgb(43, 108, 176) !important;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.estimate-card:hover .price-value {
    color: rgb(63, 128, 196) !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.result-note {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.estimate-card:hover .result-note {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Range input styling - Keep blue for functionality */
input[type=range]::-webkit-slider-thumb {
    background: rgb(43, 108, 176);
    transition: all 0.3s ease;
}

.estimate-card:hover input[type=range]::-webkit-slider-thumb {
    background: rgb(63, 128, 196);
    transform: scale(1.1);
}

input[type=range] {
    accent-color: rgb(43, 108, 176);
}

.estimate-card:hover input[type=range] {
    accent-color: rgb(63, 128, 196);
}

/* Trust note */
.trust-note {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card body padding */
.card-body {
    padding: 2rem !important;
}

/* Responsive */
@media (max-width: 991px) {
    .description-container {
        padding-bottom: 50px !important;
    }
    .estimate-description {
        font-size: 1.1rem;
    }
    .price-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    #estimateCalculator {
        padding: 0.5rem 0 3rem 0;
    }
    .description-container {
        padding-bottom: 40px !important;
    }
    .card-body {
        padding: 1.5rem !important;
    }
    .price-value {
        font-size: 1.5rem;
    }
    .calculator-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .estimate-description {
        font-size: 1rem;
    }
    .estimate-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    .benefit-badge {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }
    .description-container {
        padding-bottom: 30px !important;
    }
    .price-value {
        font-size: 1.3rem;
    }
    .d-flex.align-items-center.mb-3 {
        flex-direction: column;
        gap: 10px;
    }
    #houseSizeInput {
        width: 100% !important;
    }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.estimate-badge, .estimate-description, .benefit-badge, .estimate-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.estimate-badge { animation-delay: 0.1s; }
.estimate-description { animation-delay: 0.2s; }
.benefit-badge { animation-delay: 0.3s; }
.estimate-card { animation-delay: 0.4s; }