/*
 Theme Name:   Listingpro Child
 Theme URI:    http://studio.cridio.com/listingpro/
 Description:  Listingpro Child Theme
 Author:       cridio team
 Author URI:   http://cridio.com/
 Template:     listingpro
 Version:      1.0.0
 Tags:         listingpro, directory, listing, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  listingpro
*/

/* Contact Me Now Button - matches existing action buttons style */
.lp-listing-action-btns .lp-contact-me-now-btn {
    /* Inherits the default link styles from parent theme */
    text-decoration: none;
}

.lp-listing-action-btns .lp-contact-me-now-btn i {
    margin-right: 5px;
}

/* Contact Form Popup Modal Styles */
.lp-contact-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lp-contact-popup-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: lp-popup-fade-in 0.3s ease-out;
}

@keyframes lp-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lp-contact-popup-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-contact-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.lp-contact-popup-close {
    font-size: 28px;
    color: #999999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.lp-contact-popup-close:hover {
    color: #333333;
}

.lp-contact-popup-body {
    padding: 25px;
}

.lp-listing-leadform-popup {
    margin: 0;
}

.lp-listing-leadform-popup .form-group {
    margin-bottom: 20px;
}

.lp-listing-leadform-popup .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.lp-listing-leadform-popup .form-control:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.lp-listing-leadform-popup .form-group-icon {
    position: relative;
}

.lp-listing-leadform-popup .form-group-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 16px;
}

.lp-listing-leadform-popup .form-group-icon .form-control {
    padding-left: 45px;
}

.lp-listing-leadform-popup .lp-review-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.lp-listing-leadform-popup .lp-review-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    transform: translateY(-1px);
}

.lp-listing-leadform-popup .lp-review-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.lp-listing-leadform-popup .lp-privacy_policy_Wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.lp-listing-leadform-popup .lp-privacy_policy_Wrap input[type="checkbox"] {
    margin-top: 2px;
}

.lp-listing-leadform-popup .lp-privacy_policy_Wrap label {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

.lp-listing-leadform-popup .lp-privacy_policy_Wrap label a {
    color: #007cba;
    text-decoration: none;
}

.lp-listing-leadform-popup .lp-privacy_policy_Wrap label a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lp-contact-popup-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .lp-contact-popup-header {
        padding: 15px 20px 10px;
    }
    
    .lp-contact-popup-header h3 {
        font-size: 18px;
    }
    
    .lp-contact-popup-body {
        padding: 20px;
    }
    
    .lp-contact-me-now-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Form Highlighting Animation */
.lp-listing-leadform.highlighted {
    animation: lp-form-highlight 2s ease-in-out;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 15px;
    background-color: rgba(0, 124, 186, 0.05);
}

@keyframes lp-form-highlight {
    0% {
        background-color: rgba(0, 124, 186, 0.2);
        transform: scale(1);
    }
    50% {
        background-color: rgba(0, 124, 186, 0.1);
        transform: scale(1.02);
    }
    100% {
        background-color: rgba(0, 124, 186, 0.05);
        transform: scale(1);
    }
}