/* Background image layer */
.contact-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;
}

/* Dark overlay for better readability - Lighter to let image show through */
.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Section positioning */
#contact {
    position: relative;
    overflow: hidden;
}

/* Description container - 60px padding bottom */
.description-container {
    padding-bottom: 60px !important;
}

/* Contact badge - Transparent version */
.contact-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);
}

.contact-badge i {
    font-size: 1rem;
    color: rgb(43, 108, 176);
}

/* Contact description */
.contact-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);
}

/* Response pills - Updated to uniform hover */
.response-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    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);
}

.response-pill i {
    color: rgb(43, 108, 176);
}

.response-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* TRANSPARENT CONTACT INFO CARDS - UNIFORM HOVER (NO BLUE) */
.contact-info-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !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 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.contact-info-card:hover {
    transform: translateY(-10px) scale(1.02);
    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.18) !important;
}

.info-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-info-card:hover .info-title {
    color: rgba(255, 255, 255, 1) !important;
    letter-spacing: 0.5px;
}

.info-text {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-info-card:hover .info-text {
    color: rgba(255, 255, 255, 1) !important;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon-circle i {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contact-info-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-info-card:hover .icon-circle i {
    color: rgb(43, 108, 176);
}

/* TRANSPARENT FORM CARD - UNIFORM HOVER (NO BLUE) */
.form-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.form-card-header {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.form-card:hover .form-card-header {
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.form-card-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.form-card:hover .form-card-title {
    letter-spacing: 0.5px;
}

.form-card-icon {
    color: rgb(43, 108, 176) !important;
    transition: all 0.3s ease;
}

.form-card:hover .form-card-icon {
    color: rgb(63, 128, 196) !important;
}

.form-body {
    background: transparent !important;
}

/* Form input styling - Transparent version */
.form-label {
    color: white !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.form-card:hover .form-label {
    color: rgba(255, 255, 255, 1) !important;
}

.transparent-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    color: white !important;
}

.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;
}

.form-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;
}

/* Radio button styling for transparent background */
.form-check-label {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.form-card:hover .form-check-label {
    color: rgba(255, 255, 255, 1) !important;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: rgb(43, 108, 176);
    border-color: rgb(43, 108, 176);
}

.form-check-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
}

/* Contact button - Updated to uniform hover */
.contact-btn {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 14px 50px !important;
}

.contact-btn:hover {
    background: white !important;
    border-color: white !important;
    color: rgb(43, 108, 176) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Security icon */
.security-icon {
    color: rgb(43, 108, 176);
    transition: all 0.3s ease;
}

.form-card:hover .security-icon {
    color: rgb(63, 128, 196);
}

/* Text colors for security message */
.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .description-container {
        padding-bottom: 50px !important;
    }
    .contact-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .contact-background {
        background-attachment: scroll;
    }
    
    .description-container {
        padding-bottom: 40px !important;
    }
    
    .contact-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .response-pill {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem;
    }
    
    .contact-btn {
        padding: 12px 40px !important;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .description-container {
        padding-bottom: 30px !important;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .d-flex.gap-4 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-badge, .contact-description, .response-pill, .contact-info-card, .form-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.contact-badge { animation-delay: 0.1s; }
.contact-description { animation-delay: 0.2s; }
.response-pill { animation-delay: 0.3s; }
.contact-info-card { animation-delay: 0.4s; }
.form-card { animation-delay: 0.5s; }