/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999; /* Ensure it's above other elements */
    overflow-y: auto;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 4px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #2C9212;
}

.popup-header {
    margin-bottom: 30px;
}

.popup-header h2 {
    color: #2C9212;
    margin-bottom: 15px;
}

.popup-services {
    margin: 30px 0;
}

.popup-services ul {
    list-style: none;
    padding: 0;
}

.popup-services li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.popup-services li strong {
    font-weight: 600;
    color: #333;
}

.popup-services li:before {
    content: "•";
    color: #2C9212;
    position: absolute;
    left: 0;
}

.popup-blog {
    margin: 30px 0;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-post {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.blog-post h4 {
    margin: 10px 0;
    color: #333;
}

.blog-post p {
    margin-bottom: 15px;
    color: #666;
}

.popup-cta {
    text-align: center;
    margin-top: 30px;
}

.popup-cta .btn {
    background: #2C9212;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.popup-cta .btn:hover {
    background: #217a0e;
}

.popup-image {
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 4px;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-all-link {
    color: #2C9212;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #217a0e;
}

.contact-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.contact-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
}

.contact-popup-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.contact-popup-content h4 {
    text-align: center;
    margin-bottom: 30px;
    color: #2C9212;
}

.contact-popup-form input,
.contact-popup-form textarea {
    width: 100%;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    padding: 12px 15px;
}

.contact-popup-form .btn {
    width: 100%;
    background: #2C9212;
    color: white;
}

/* Popup container */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above other elements */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Popup content */
.popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Popup title */
.popup-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Form styles */
.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
}

.popup-form textarea {
    resize: vertical;
    min-height: 120px;
}

.popup-form button {
    background: var(--secondary-green);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    transition: background-color 0.3s ease;
}

.popup-form button:hover {
    background: var(--primary-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content {
        padding: 25px;
        width: 95%;
    }

    .popup-title {
        font-size: 24px;
    }

    .popup-form input[type="text"],
    .popup-form input[type="email"],
    .popup-form textarea,
    .popup-form button {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 20px;
        width: 98%;
    }

    .popup-form button {
        font-size: 12px;
    }
}

/* Service Popup Styles */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 99999; /* Ensure it's above other elements */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 800px; /* Adjust as needed */
    width: 90%;
    max-height: 90vh;  /* Limit height, allow scrolling */
    overflow-y: auto;  /* Allow scrolling within the popup */
    padding: 40px;
}

.popup-close {
    position: absolute;
    top:.5px;
    right: 2px;
    font-size: 30px;
    cursor: pointer;
    color: #020000;
    z-index: 1000; /* Ensure close button is above other content */
}
.popup-close:hover{
    color: var(--secondary-green);
}

.popup-image img {
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 300px; /* Adjust as needed */
    object-fit: cover; /* Ensure image covers the space */
    width: 100%;
}

.popup-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--neutral-dark);
}

.popup-header .intro {
    font-size: 16px;
    color: var(--neutral-medium);
    margin-bottom: 20px;
}

.popup-services h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--neutral-dark);
}

.popup-services ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.popup-services ul li {
    margin-bottom: 8px;
    color: var(--neutral-medium);
    padding-left: 25px;
    position: relative;
}
/* Bullet points for services */
.popup-services ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-green); /* Or your desired bullet color */
    font-size: 20px;
    line-height: 1;
}

.popup-blog h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--neutral-dark);
}

.popup-blog .blog-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.popup-blog .blog-post {
    width: 48%; /* Adjust for spacing */
    margin-bottom: 15px;
}

.popup-blog .blog-post h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--neutral-dark);
}

.popup-blog .blog-post p {
    font-size: 14px;
    color: var(--neutral-medium);
}

.popup-cta .btn {
  /* Using the general .btn class */
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
    }

    .popup-image img {
        max-height: 200px;
    }

    .popup-header h2 {
        font-size: 24px;
    }

    .popup-services h3,
    .popup-blog h3 {
        font-size: 20px;
    }

    .popup-blog .blog-post {
        width: 100%; /* Full width on smaller screens */
    }
} 