/* Havenlytics Property Popups Styles */


.havenlytics_popup_overlay  h1, .havenlytics_popup_overlay  h2, .havenlytics_popup_overlay  h3, .havenlytics_popup_overlay  h4, .havenlytics_popup_overlay  h5, .havenlytics_popup_overlay  h6{
 
    font-family: var(--havenlytics-headingFont);
    font-weight: var(--havenlytics-fontWeight-semibold);
}


.havenlytics_popup_overlay p, .havenlytics_popup_overlay li, .havenlytics_popup_overlay span, .havenlytics_popup_overlay {
    font-family: var(--havenlytics-bodyFont);display: block;
}

.havenlytics-popup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.havenlytics-popup-trigger {
    background: linear-gradient(135deg, #4a69bd, #6a89cc);
    color: white;
    border: none;
    padding: 25px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.havenlytics-popup-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.havenlytics-popup-trigger:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.havenlytics-popup-trigger:hover::before {
    opacity: 1;
}


/* Popup Overlay */
.havenlytics_popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.havenlytics_popup_overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Popup Container */
.havenlytics_popup_container {
    position: relative;
    width: 80%;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    height: 85vh;
    transition: all 0.4s ease;
}

.havenlytics_popup_container.fullscreen {
    width: 98% !important;
    height: 96vh !important;
    max-height: 96vh;
    border-radius: 10px;
}

/* Popup Controls */
.havenlytics_popup_controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.havenlytics_popup_control_btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--havenlytics-primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.havenlytics_popup_control_btn:hover {
    transform: scale(1.1);
}

.havenlytics_popup_fullscreen:hover {
    background: var(--havenlytics-accent);
}

.havenlytics_popup_close:hover {
    background: rgba(255, 0, 0, 0.5);
}

/* Popup Content */
.havenlytics_popup_content {
    background: white;
    padding: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    height: 100%;
}

.havenlytics_popup_container.fullscreen .havenlytics_popup_content {
    max-height: calc(100vh - 40px);
}

.havenlytics_popup_title {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.havenlytics_popup_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--havenlytics-primary), var(--havenlytics-accent));
    border-radius: 2px;
}

/* Form Styles */
.havenlytics_popup_form {
    display: block;
    margin-top: 30px;
    max-width: 550px;
    margin: 0px auto;
}
#havenlytics_popup_enquiry .havenlytics_popup_content p.havenlytics_popup_sub_title,
#havenlytics_popup_agent .havenlytics_popup_content p.havenlytics_popup_sub_title,
#havenlytics_popup_viewing .havenlytics_popup_content p.havenlytics_popup_sub_title{text-align: center;}

/* #havenlytics_popup_enquiry .havenlytics_popup_content .havenlytics_popup_form p br,
#havenlytics_popup_agent .havenlytics_popup_content .havenlytics_popup_form p br,
#havenlytics_popup_viewing .havenlytics_popup_content .havenlytics_popup_form p br{display: none;} */

.havenlytics_popup_form_group {
    display: flex;
    flex-direction: column;
}

.havenlytics_popup_form_group.full-width {
    grid-column: span 2;
}

.havenlytics_popup_form_group label {
    text-align: left;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.havenlytics_popup_form_group input, 
.havenlytics_popup_form_group select, 
.havenlytics_popup_form_group textarea {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.havenlytics_popup_form_group input:focus, 
.havenlytics_popup_form_group select:focus, 
.havenlytics_popup_form_group textarea:focus {
    border-color: var(--havenlytics-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.havenlytics_popup_form_group textarea {
    min-height: 120px;
    resize: vertical;
}

.havenlytics_popup_submit {
    grid-column: span 2;
    background:linear-gradient(to right, var(--havenlytics-primary), var(--havenlytics-accent));
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 15px;
}

.havenlytics_popup_submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Virtual Tour Styles */
.havenlytics_popup_virtual_tour {
    height: 500px;
    background: #222;
    border-radius: 10px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #333, #111);
}

.virtual-tour-placeholder {
    color: #aaa;
    text-align: center;
    padding: 20px;
}

.virtual-tour-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--havenlytics-primary)
}

/* Brochure Styles */
.havenlytics_popup_brochure {
    height: auto;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: repeating-linear-gradient(-45deg, #f0f0f0, #f0f0f0 10px, #e0e0e0 10px, #e0e0e0 20px);
}

/* Map Styles */
.havenlytics_popup_map {
    max-height: 550px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: repeating-linear-gradient(45deg, #e0e0e0, #e0e0e0 10px, #d0d0d0 10px, #d0d0d0 20px);
}

/* Floorplan Styles */
.havenlytics_popup_floorplan {
    height: 500px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: repeating-linear-gradient(0deg, #f0f0f0, #f0f0f0 10px, #e0e0e0 10px, #e0e0e0 20px);
}

/* EPC Styles */
.havenlytics_popup_epc {
    height: 500px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

/* Animation Classes */
.havenlytics_popup_animate_flip {
    transform: rotateY(90deg) scale(0.8);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.havenlytics_popup_overlay.active .havenlytics_popup_animate_flip {
    transform: rotateY(0) scale(1);
}

.havenlytics_popup_animate_slide {
    transform: translateY(100px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.havenlytics_popup_overlay.active .havenlytics_popup_animate_slide {
    transform: translateY(0);
}

.havenlytics_popup_animate_zoom {
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.havenlytics_popup_overlay.active .havenlytics_popup_animate_zoom {
    transform: scale(1);
}

.havenlytics_popup_animate_rotate {
    transform: rotate(10deg) scale(0.9);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.havenlytics_popup_overlay.active .havenlytics_popup_animate_rotate {
    transform: rotate(0) scale(1);
}

.havenlytics_popup_animate_bounce {
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.havenlytics_popup_animate_3d {
    transform: perspective(1500px) rotateY(90deg) translateZ(300px) scale(0.7);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.8s ease;
}

.havenlytics_popup_overlay.active .havenlytics_popup_animate_3d {
    transform: perspective(1500px) rotateY(0) translateZ(0) scale(1);
    opacity: 1;
}

/* Fullscreen indicator */
.fullscreen-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--havenlytics-accent);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.fullscreen-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .havenlytics_popup_container {
        width: 90%;
        height: 80vh;
    }
    
    .havenlytics_popup_content {
        padding: 30px;
    }
    
    .havenlytics_popup_title {
        font-size: 1.8rem;
    }
    
    .havenlytics_popup_virtual_tour,
    .havenlytics_popup_floorplan,
    .havenlytics_popup_brochure,
    .havenlytics_popup_epc,
    .havenlytics_popup_map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .havenlytics-popup-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .havenlytics_popup_form {
        grid-template-columns: 1fr;
    }
    
    .havenlytics_popup_form_group.full-width, 
    .havenlytics_popup_submit {
        grid-column: span 1;
    }
    

}

@media (max-width: 480px) {
    .havenlytics-popup-grid {
        grid-template-columns: 1fr;
    }
    
    .havenlytics_popup_container {
        width: 95%;
        height: 90vh;
    }
    
    .havenlytics_popup_content {
        padding: 20px;
    }
    
    .havenlytics_popup_title {
        font-size: 1.6rem;
    }
    
    .havenlytics_popup_virtual_tour,
    .havenlytics_popup_floorplan,
    .havenlytics_popup_brochure,
    .havenlytics_popup_epc,
    .havenlytics_popup_map {
        height: 250px;
    }
    
    .havenlytics_popup_controls {
        top: 15px;
        right: 15px;
    }
    
    .havenlytics_popup_control_btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}





/* =============================
   GLOBAL FORM STYLING
   Applies to all form fields inside `.havenlytics_popup_form`
   Uses Havenlytics design tokens from :root
============================= */

/* ========== Container & Base Typography ========== */
.havenlytics_popup_form {
  font-family: var(--havenlytics-bodyFont);
  color: var(--havenlytics-text-primary);
}

/* ========== Form Layout ========== */
.havenlytics_popup_form form {
  /* display: flex;
  flex-direction: column;
  gap: 1.5rem; */
}

/* ========== Label Styling ========== */
.havenlytics_popup_form label {
  font-size: var(--havenlytics-labelSize);
  font-weight: var(--havenlytics-fontWeight-medium);
  color: var(--havenlytics-text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* ========== Input, Textarea, and Select Fields ========== */
.havenlytics_popup_form input[type="text"],
.havenlytics_popup_form input[type="email"],
.havenlytics_popup_form input[type="tel"],
.havenlytics_popup_form input[type="number"],
.havenlytics_popup_form input[type="url"],
.havenlytics_popup_form input[type="password"],
.havenlytics_popup_form input[type="search"],
.havenlytics_popup_form textarea,
.havenlytics_popup_form select {
  width: 100%;
  padding: 0.9rem 1rem !important;
  font-size: 1rem;
  font-family: var(--havenlytics-bodyFont);
  background-color: var(--havenlytics-bg-white);
  color: var(--havenlytics-text-primary);
  border: 1px solid var(--havenlytics-primary); /* <- Changed here */
  border-radius: var(--havenlytics-inputRadius);
  box-shadow: none;
  transition: border var(--havenlytics-transitionTime), box-shadow var(--havenlytics-transitionTime);
}

/* ========== Focus State ========== */
.havenlytics_popup_form input:focus,
.havenlytics_popup_form textarea:focus,
.havenlytics_popup_form select:focus {
  outline: none;
  border-color: var(--havenlytics-secondary) !important; /* <- Primary color for focus */
  box-shadow: 0 0 0 3px rgba(108, 96, 254, 0.1);
}

/* ========== Textarea Styling ========== */
.havenlytics_popup_form textarea {
  height: 100px;
  resize: vertical;
}

/* ========== Submit Button Styling ========== */
.havenlytics_popup_form input[type="submit"],
.havenlytics_popup_form button[type="submit"] {
  background-color: var(--havenlytics-btnPrimaryBg);
  color: var(--havenlytics-btnText);
  font-weight: var(--havenlytics-fontWeight-medium);
  font-family: var(--havenlytics-bodyFont);
  font-size: 1rem;
  padding: var(--havenlytics-btnPadding);
  border: none;
  border-radius: var(--havenlytics-btnRadius);
  cursor: pointer;
  transition: background-color var(--havenlytics-transitionTime);    padding: 15px 35px;
}

/* ========== Submit Button Hover State ========== */
.havenlytics_popup_form input[type="submit"]:hover,
.havenlytics_popup_form button[type="submit"]:hover {
  background-color: var(--havenlytics-btnPrimaryHover);
}

/* ========== Validation States ========== */
.havenlytics_popup_form input[aria-invalid="true"],
.havenlytics_popup_form textarea[aria-invalid="true"] {
  border-color: var(--havenlytics-alert);
}

.havenlytics_popup_form input:valid,
.havenlytics_popup_form textarea:valid {
  border-color: var(--havenlytics-primary)
}

/* ========== Spinner Styling ========== */
.havenlytics_popup_form .wpcf7-spinner {
  margin-left: 10px;
}

/* ========== Response Message Styling ========== */
.havenlytics_popup_form .wpcf7-response-output {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--havenlytics-alert);
}
