/* Bootstrap Modal Popup Styles */
.modal-dialog.modal-lg {
    max-width: 1030px;
    padding: 0 10px;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
}

.btn-close {
    width: 24px;
    height: 24px;
    background: #efefef;
    border-radius: 50%;
    opacity: 1;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.btn-close::before {
    content: '×';
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 1;
}

/* Modal Body Layout */
.modal-body {
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
}

/* Two-column layout */
.row.g-0 {
    min-height: 500px;
}

/* Left side - Image */
.popup-image-side {
    height: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.popup-background-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

.popup-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Right side - Content */
.popup-content-side {
    padding: 40px 40px 40px 50px;
    background: #ffffff;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-content {
    width: 100%;
}

.popup-header {
    margin-bottom: 30px;
    text-align: left;
}

.popup-title {
    font-size: 36px;
    font-weight: 600;
    color: #252525;
    margin: 0 0 10px 0;
    line-height: 100%;
}

.popup-description {
    font-size: 16px;
    font-weight: 400;
    color: #252525;
    margin: 0;
    line-height: 26px;
}

.popup-body {
    margin-bottom: 24px;
}

.popup-form {
    width: 100%;
}

/* Contact Form 7 Styles */
.popup-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup-form .wpcf7-form p {
    margin: 0;
}

.popup-form .wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    color: #252525;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

*::placeholder {
    color: #252525;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    font-family: 'Roboto', sans-serif;
    opacity: 0.4;
}

.popup-form .wpcf7-form input[type="text"],
.popup-form .wpcf7-form input[type="email"],
.popup-form .wpcf7-form input[type="tel"],
.popup-form .wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #0000001A;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.popup-form .wpcf7-form input[type="text"]:focus,
.popup-form .wpcf7-form input[type="email"]:focus,
.popup-form .wpcf7-form input[type="tel"]:focus,
.popup-form .wpcf7-form textarea:focus {
    outline: none;
    border-color: #19A7CE;
    box-shadow: 0 0 0 3px rgba(25, 167, 206, 0.1);
}

.popup-form .wpcf7-form textarea {
    min-height: 100px;
    resize: none;
}

/* Form wrapper */
.cf7-custom-form {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
  }
  
  /* Form rows */
  .cf7-custom-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  /* Form groups */
  .cf7-custom-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .cf7-custom-form .form-group.full {
    flex: 100%;
  }
  
  /* Labels */
  .cf7-custom-form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
  }
  
  /* Inputs & Textarea */
  .cf7-custom-form input[type="text"],
  .cf7-custom-form input[type="email"],
  .cf7-custom-form input[type="tel"],
  .cf7-custom-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Textarea height */
  .cf7-custom-form textarea {
    resize: none;
    height: 100px;
  }
  
  /* Submit button */
  .cf7-custom-form input[type="submit"] {
    background-color: #00bcd4; /* teal blue like in screenshot */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .cf7-custom-form input[type="submit"]:hover {
    background-color: #0097a7;
  }

.cf7-custom-form .form-row:last-child {
    margin-bottom: 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0px !important;
    padding: 8px !important;
    margin-top: 5px !important;
    border: 1px solid #dc3232 !important;
    font-size: 12px !important;
}

.popup-form .wpcf7-form input[type="submit"] {
    background: #19A7CE;
    color: #ffffff;
    border: 1px solid #19A7CE;
    padding: 10px 30px;
    margin-top: 15px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-form .wpcf7-form input[type="submit"]:hover {
    background: transparent;
    border: 1px solid #252525;
    color: #252525;
}

.popup-form .wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

.wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
    line-height: 100%;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.wpcf7-spinner {
    display: none;
}

@media (min-width: 768px){
    .modal-body .col-md-5{
        width: 48%;
    }
    .modal-body .col-md-7{
        width: 52%;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .popup-image-side {       
        display: none;
    }
    
    .col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .cf7-custom-form{
        max-width: 100%;
        font-family: 'Roboto', sans-serif;
    }
}

@media (max-width: 768px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        padding: 0 20px;
        margin: 20px auto;
    }
    
    .popup-content-side {
        padding: 20px;
        min-height: auto;
    }
    
    .popup-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .popup-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .popup-form .wpcf7-form {
        gap: 16px;
    }
    
    .popup-form .wpcf7-form input[type="submit"] {
        padding: 16px 24px;
        font-size: 16px;
        max-width: 100%;
    }
    
    .cf7-custom-form {
        max-width: 100%;
        font-family: 'Roboto', sans-serif;
    }
}

@media (max-width: 600px) {
    .modal-dialog.modal-lg {
        max-width: 98%;
        padding: 0 20px;
        margin: 10px auto;
    }
    
    .popup-content-side {
        padding: 20px;
    }
    
    .popup-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .popup-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .popup-form .wpcf7-form {
        gap: 14px;
    }
    
    .popup-form .wpcf7-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .popup-form .wpcf7-form input[type="text"],
    .popup-form .wpcf7-form input[type="email"],
    .popup-form .wpcf7-form input[type="tel"],
    .popup-form .wpcf7-form textarea {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .popup-form .wpcf7-form textarea {
        min-height: 80px;
    }
    
    .popup-form .wpcf7-form input[type="submit"] {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .modal-dialog.modal-lg {
        max-width: 100%;
        padding: 0 20px;
        margin: 5px auto;
    }
    
    .popup-content-side {
        padding: 20px;
    }
    
    .popup-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .popup-description {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .popup-form .wpcf7-form {
        gap: 12px;
    }
    
    .popup-form .wpcf7-form label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .popup-form .wpcf7-form input[type="text"],
    .popup-form .wpcf7-form input[type="email"],
    .popup-form .wpcf7-form input[type="tel"],
    .popup-form .wpcf7-form textarea {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .popup-form .wpcf7-form textarea {
        min-height: 70px;
    }
    
    .popup-form .wpcf7-form input[type="submit"] {
        padding: 12px 18px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .btn-close {
        width: 24px;
        height: 24px;
        top: 12px;
        right: 12px;
    }
    
    .btn-close::before {
        font-size: 16px;
    }
}

/* Success/Error messages */
.popup-form .wpcf7-response-output {
    margin: 16px 0 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.popup-form .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.popup-form .wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.popup-form .wpcf7-spam-blocked {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
