/*
 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);
    }
}

/* Practice Areas, Practice Location & Other Practice Areas Section */
.lp-practice-areas-section,
.lp-practice-location-section,
.lp-all-practice-areas-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lp-practice-areas-section .post-row-header h3,
.lp-practice-location-section .post-row-header h3,
.lp-all-practice-areas-section .post-row-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007cba;
}

.lp-practice-areas-grid .row,
.lp-practice-location-grid .row {
    margin-left: -10px;
    margin-right: -10px;
}

/* Plain text style for Practice Areas (parent categories) - 3 per row */
.lp-practice-area-item-plain {
    padding: 0 15px;
    margin-bottom: 15px;
    text-align: left;
}

.lp-practice-area-text {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    line-height: 1.6;
    display: block;
}

/* Plain text style for Practice Location */
.lp-practice-location-item-plain {
    padding: 0 15px;
    margin-bottom: 15px;
    text-align: left;
}

.lp-practice-location-text {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    line-height: 1.6;
    display: block;
}

/* Button/box style for Other Practice Areas (all categories) - 5 per row */
.lp-practice-area-item {
    padding: 0 10px;
    margin-bottom: 20px;
}

.lp-practice-area-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 15px;
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    min-height: 70px;
}

.lp-practice-area-link:hover {
    background: #007cba;
    border-color: #007cba;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.lp-practice-area-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .lp-practice-area-item {
        /* 3 items per row on tablets */
    }
}

@media (max-width: 767px) {
    .lp-practice-areas-section,
    .lp-practice-location-section,
    .lp-all-practice-areas-section {
        padding: 20px 15px;
    }
    
    .lp-practice-areas-section .post-row-header h3,
    .lp-practice-location-section .post-row-header h3,
    .lp-all-practice-areas-section .post-row-header h3 {
        font-size: 20px;
    }
    
    /* Plain text style for mobile */
    .lp-practice-area-text,
    .lp-practice-location-text {
        font-size: 16px;
    }
    
    /* Button style for mobile */
    .lp-practice-area-link {
        padding: 15px 10px;
        min-height: 65px;
    }
    
    .lp-practice-area-name {
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    /* Plain text - 2 items per row on mobile */
    .lp-practice-area-text,
    .lp-practice-location-text {
        font-size: 15px;
    }
    
    /* Button style - 2 items per row on mobile */
    .lp-practice-area-link {
        padding: 12px 8px;
        min-height: 60px;
    }
    
    .lp-practice-area-name {
        font-size: 12px;
    }
}