.guide-popup-content {
    background: #fff;
    padding: 40px; /* Increased padding for more breathing room */
    max-width: 1000px; /* Slightly wider for more content on larger screens */
    margin: 40px auto;
    position: relative;
    border-radius: 0; /* No rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* More pronounced, yet subtle shadow for depth */
    font-family: 'Questrial', sans-serif; /* Consistent with skin.css, if applicable */
    text-align: center; /* Center align all content within the popup */
}

.guide-popup-content h2 { /* This is now h3, but keeping the h2 selector for consistency in my mental model */
    color: #272727; /* Darker color for headings */
    font-size: 2.5em; /* Larger heading */
    margin-bottom: 15px;
    font-weight: 900; /* Bolder */
    line-height: 1.2;
}

.guide-popup-content h3 {
    color: #272727; /* Darker color for headings */
    font-size: 2em; /* Adjusted to fit the new hierarchy */
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.guide-popup-content .popup-image-container {
    padding: 20px; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Changed to transparent */
    border-radius: 0;
    flex-shrink: 0; /* Prevent the image container from shrinking */
}

.guide-popup-image {
    max-width: 90%; /* Slightly smaller to give more internal padding */
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: contain; /* Ensure the entire image is visible without cropping */
}

.tagline { /* This element is removed based on the last instruction, but keeping the style just in case */
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1em;
}

.details-text {
    margin-top: 15px;
    margin-bottom: 30px; /* More space below text before form */
    font-size: 1.1em; /* Slightly larger text for readability */
    line-height: 1.7;
    color: #444;
}

.guide-download-form {
    width: 100%;
    max-width: 400px; /* Wider form */
    margin-top: 25px;
}

.guide-download-form .form-group {
    margin-bottom: 25px; /* Increased spacing between form groups */
}

.guide-download-form .form-control {
    width: 100%;
    padding: 14px 18px; /* Larger padding for inputs */
    border: 1px solid #B0B0B0; /* Slightly darker border for better definition */
    background-color: #fcfcfc; /* Subtle off-white background */
    border-radius: 0;
    font-size: 1.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333; /* Ensure input text is dark and readable */
}
.guide-download-form .form-control::placeholder {
    color: #888; /* Lighter color for placeholders */
    opacity: 1; /* Ensure full opacity across browsers */
}
.guide-download-form .form-control:-ms-input-placeholder {
    color: #888;
}
.guide-download-form .form-control::-ms-input-placeholder {
    color: #888;
}

.guide-download-form .form-control:focus {
    border-color: #6A4D8F; /* Highlight on focus, consistent with theme */
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 77, 143, 0.3); /* More defined outline effect */
}

.guide-download-form .btn-primary {
    width: 100%;
    padding: 15px 25px; /* Increased padding */
    background-color: #6A4D8F; /* Theme color for button */
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 0.5px; /* Added letter spacing */
    text-transform: uppercase; /* Added uppercase text */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.guide-download-form .btn-primary:hover {
    background-color: #573e75; /* Darker theme color on hover */
    transform: translateY(-3px); /* More pronounced lift effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .guide-popup-content {
        max-width: 800px;
        padding: 30px;
    }
    .guide-popup-content h2 {
        font-size: 2em;
    }
    .guide-popup-content h3 {
        font-size: 1.6em;
    }
    .guide-popup-content .popup-image-container {
        padding: 15px;
    }
    .guide-popup-content .popup-details-container {
        padding: 20px 15px;
    }
}

@media (max-width: 767px) {
    .guide-popup-content {
        max-width: 95%;
        margin: 20px auto;
        padding: 20px;
        border-radius: 0;
    }
    .guide-popup-content .row {
        flex-direction: column;
    }
    .guide-popup-content .col-md-6 {
        width: 100%;
        margin-bottom: 25px;
    }
    .guide-popup-content .col-md-6:last-child {
        margin-bottom: 0;
    }
    .guide-popup-content .popup-image-container {
        padding: 15px;
    border-radius: 0;
    }
    .guide-popup-content .popup-details-container {
        padding: 20px 15px 0;
    }
    .guide-popup-content h2 {
        font-size: 1.8em;
    }
    .guide-popup-content h3 {
        font-size: 1.4em;
    }
    .guide-download-form {
        max-width: 100%;
    }
    .guide-download-form .form-control,
    .guide-download-form .btn-primary {
        padding: 12px 15px;
        font-size: 1em;
    }
}


/* Animation for the popup */
.mfp-fade-in-scale {
    /* start state */
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.3s ease-out !important;
}
.mfp-fade-in-scale.mfp-ready {
    /* end state */
    opacity: 1 !important;
    transform: scale(1) !important;
}
.mfp-fade-in-scale.mfp-removing {
    /* exit animation */
    opacity: 0 !important;
    transform: scale(0.8) !important;
}


.mfp-bg {
    background-color: transparent !important; /* Completely transparent background */
    opacity: 0 !important; /* Ensure it's invisible */
    transition: opacity 0.3s ease-out !important;
}


/* Blur effect for content behind popup */
html.mfp-with-blur body > *:not(.mfp-wrap):not(.mfp-bg) {
    filter: blur(5px);
    transition: filter 0.3s ease-out;
}
/* Ensure Magnific Popup elements are not blurred */
.mfp-wrap, .mfp-bg {
    filter: none;
}

/* Styling for the close button inside the popup */
.mfp-close {
    color: #333 !important; /* Dark color for visibility */
    background: #fff !important; /* White background for contrast */
    border-radius: 50% !important; /* Make it circular */
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    text-align: center !important;
    font-size: 20px !important;
    position: absolute !important; /* Override Magnific Popup's fixed positioning */
    top: 10px !important;
    right: 10px !important;
    cursor: pointer !important;
    z-index: 1050 !important; /* Ensure it's above other popup content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; /* Subtle shadow */
    opacity: 1 !important; /* Ensure visibility */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important; /* Added smooth transition for multiple properties */
}

.mfp-close:hover {
    background-color: #eee !important; /* Slight hover effect */
}