/* HCP Disclaimer Popup Styles */

/*
 * Color Variables (converted from SCSS):
 * $black: #000000
 * $accent: #007bff (you can change this to your brand color)
 * $text: #333333 (you can change this to your text color)
 * $white: #ffffff
 * $red: #dc3545
 * $light-red: #f8d7da
 * 
 * Font Variables (converted from SCSS):
 * $vertigo: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
 * $seven: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
 */

.fancybox__container.disclaimer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none; /* Initially hidden, shown by JavaScript */
    align-items: center;
    justify-content: center;
    font-family: Poppins,sans-serif;
}

.fancybox__container.disclaimer.is-idle {
    display: flex;
}

.fancybox__container.disclaimer .fancybox__backdrop {
    background: #0000009C !important;
    opacity: 1 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
}

.fancybox__carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fancybox__viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fancybox__track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fancybox__slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.disclaimer-popup.fancybox__content {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 8px;
    max-width: 640px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto;
}

.disclaimer-popup .tag {
    background: transparent;
    color: #666666;
    padding: 0;
    border-radius: 0;
    font-size: 14px!important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    display: block;
}

.disclaimer-popup.fancybox__content h2 {
    color: #1a365d; /* Dark blue color to match images */
    font-size: 44px;
    line-height: 52px;
    font-family: Poppins,sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    color: #002559;
    padding-top: 0;
}

.disclaimer-popup.fancybox__content p {
    text-align: center;
    font-family: Poppins,sans-serif;
    font-weight: 400;
    color: #333333;
    font-size: 18px;
    line-height: 1.5;
    position: relative;
    margin: 0;
    width: 100%;
    z-index: 3;
}

.disclaimer-popup.fancybox__content .buttons {
    padding-top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

.disclaimer-popup.fancybox__content .buttons .item {
    min-width: 84px;
    max-width: 385px;
    width: 100%;
}

.disclaimer-popup.fancybox__content .buttons a {
    border-radius: 4px;
    display: inline-block;
    padding: 12px 20px;
    font-family: Poppins,sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid;
}

.disclaimer-popup.fancybox__content .buttons a.hcp {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.disclaimer-popup.fancybox__content .buttons a.patient {
    background-color: #ffffff;
    color: #dc3545;
    border-color: #dc3545;
}

.disclaimer-popup.fancybox__content .buttons a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Image wrapper removed - not needed for this design */

/* Responsive Design */
@media (max-width: 768px) {
    .disclaimer-popup.fancybox__content {
        padding: 30px 20px;
        margin: 20px;
        max-width: none;
        width: 95%;
    }
    
    .disclaimer-popup.fancybox__content h2 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .disclaimer-popup.fancybox__content p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .disclaimer-popup.fancybox__content .buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .disclaimer-popup.fancybox__content .buttons .item {
        min-width: auto;
    }
    
    .disclaimer-popup.fancybox__content .buttons a {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .disclaimer-popup.fancybox__content {
        padding: 25px 15px;
        margin: 15px;
        width: 95%;
    }
    
    .disclaimer-popup.fancybox__content h2 {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .disclaimer-popup .tag {
        font-size: 12px;
    }
}

/* Animation for popup appearance */
.fancybox__container.disclaimer {
    opacity: 1;
    animation: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.disclaimer-popup {
    transform: none;
    animation: none;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

/* Hide popup when dismissed */
.fancybox__container.disclaimer.hidden {
    display: none;
}

/* Focus styles for accessibility */
.disclaimer-popup .g-btn:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .disclaimer-popup {
        border: 2px solid #000000;
    }
    
    .disclaimer-popup .g-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fancybox__container.disclaimer,
    .disclaimer-popup {
        animation: none;
    }
    
    .disclaimer-popup .g-btn {
        transition: none;
    }
}

/* Body scroll prevention when popup is open */
body.disclaimer-popup-open {
    overflow: hidden;
    height: 100%;
}

/* Ensure popup is always on top */
.fancybox__container.disclaimer {
    z-index: 999999 !important;
}

/* === Custom styling mapping to requested design === */
/* The requested styles target #confirmation-popup and related IDs.
   Since our markup uses .fancybox__container and .disclaimer-popup,
   we apply equivalent styles to the existing selectors below. */

/* Popup container box */
.disclaimer-popup.fancybox__content {
    padding: 50px 20px 50px 20px;
    background: #ffffff;
    max-width: 615px;
    width: 100%;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* Heading and body text (English mapping) */
.disclaimer-popup.fancybox__content .title,
.popup-heading-english {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
    color: #002559;
}

.disclaimer-popup.fancybox__content p,
.popup-link-text-english {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-align: center;
    color: #002559;
    max-width: 450px;
    margin: auto;
}

/* Close button styles placeholder (no visible X in current markup) */
#close-popup { position: absolute; top: 10px; right: 10px; cursor: pointer; font-size: 30px; }
#close-popup i { color: #002559; }


/* Base button styles to match requested look */
.disclaimer-popup.fancybox__content .buttons a {
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

/* Yes button (map to .g-btn.hcp) */
.disclaimer-popup.fancybox__content .buttons a.hcp {
    background: #002559;
    border: 1px solid #002559;
    color: #ffffff;
    transition: all 0.3s ease-in-out;
}
.disclaimer-popup.fancybox__content .buttons a.hcp:hover {
    background: transparent;
    color: #002559;
}

/* No button (map to .g-btn.patient) */
.disclaimer-popup.fancybox__content .buttons a.patient {
    border: 1px solid #002559;
    background: transparent;
    border-radius: 50px;
    color: #002559;
    transition: all 0.3s ease-in-out;
}
.disclaimer-popup.fancybox__content .buttons a.patient:hover {
    background: #002559;
    color: #ffffff;
}

/* Optional language toggles (included for compatibility) */
.popup-btn-wrapper-english { text-align: center; }
.popup-btn-wrapper { margin-top: 15px; }
.popup-link-text { margin-top: 10px; }
.not-french .popup-heading-french,
.not-french .popup-link-text-french,
.not-french .popup-btn-wrapper-french { display: none; }
.is-french .popup-heading-english,
.is-french .popup-link-text-english,
.is-french .popup-btn-wrapper-english { display: none; }

/* Form tweaks (kept as provided; only apply if those classes exist) */
.custom-contact-form .w-form-row.for_info p {
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
    line-height: 15px;
    color: #002559;
}
.custom-contact-form .w-form-row.for_submit button {
    width: 50%;
    font-size: 18px;
}

@media only screen and (max-width: 767.98px) {
    /* Container adjustments on small screens */
    .fancybox__container.disclaimer {
        overflow-y: auto;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
    }
    .popup-content-wrapper { margin-top: 20px; text-align: center; }
    .province-license-popup-wrapper { padding: 20px 15px; }
    #province-license-popup button { width: 90%; }
    .custom-contact-form .w-form-row.for_submit button { width: 100%; font-size: 16px; }
    .custom-contact-form input[type="text"],
    .custom-contact-form input[type="email"],
    .custom-contact-form select {
        min-height: 2rem;
        height: 100%;
        font-size: 16px;
    }
}