/* ===============================================================
   POPUPS – Partner with Us + Unlock Deals (markup in popups.php)
   =============================================================== */
.gc-popup .modal-dialog{ padding: 0 16px; margin-left: auto; margin-right: auto; }
.gc-popup .modal-content{
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .25);
    overflow: hidden;
}
body .modal-backdrop.show{ opacity: .35; }
/* The site header sits at z-index 9999, so popups and their backdrop go above it */
body .modal-backdrop{ z-index: 10050; }
body .modal{ z-index: 10060; }
/* Blurs the page behind an open popup */
body.modal-open > *:not(.modal):not(.modal-backdrop):not(script){ filter: blur(6px); }
.gc-popup-close{
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #F5F5F5;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: .3s;
}
.gc-popup-close:hover{ background: var(--gray-200); color: var(--gray-900); }
.gc-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Form fields */
.gc-popup-form label{
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
    text-align: left;
}
.gc-popup-form label span{ color: var(--orange-600); }
.gc-popup-form input[type="text"],
.gc-popup-form input[type="tel"],
.gc-popup-form input[type="email"],
.gc-popup-form select,
.gc-popup-form textarea{
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 16px;
    color: var(--gray-900);
    background-color: #fff;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.gc-popup-form textarea{ height: auto; min-height: 88px; resize: vertical; }
.gc-popup-form select{
    appearance: none;
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%23535862' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
}
.gc-popup-form select:invalid,
.gc-popup-form select:disabled{ color: var(--gray-500); }
.gc-popup-form select:disabled{ background-color: var(--gray-50); cursor: not-allowed; }
.gc-popup-form ::placeholder{ color: var(--gray-500); }
.gc-popup-form input:focus,
.gc-popup-form select:focus,
.gc-popup-form textarea:focus{
    border-color: var(--success-600);
    box-shadow: 0 0 0 4px rgba(3, 152, 85, .12);
}
.gc-popup-form .is-invalid{ border-color: #D92D20 !important; }
.gc-form-error{
    margin: 12px 0 0;
    font-size: 14px;
    color: #D92D20;
    text-align: center;
}
.gc-form-error:empty{ margin: 0; }
.gc-submit-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid var(--success-600);
    border-radius: 8px;
    background: var(--success-600);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: .3s;
}
.gc-submit-btn:hover{ background: #027A48; border-color: #027A48; }
.gc-submit-btn:disabled{ opacity: .7; cursor: wait; }

/* Thank-you state */
.gc-popup-success{ text-align: center; padding: 24px 0 8px; }
.gc-success-icon{
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--success-600);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gc-popup-success h3{ font-size: 24px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; }
.gc-popup-success p{ font-size: 16px; color: var(--gray-600); margin-bottom: 24px; }

/* ---------- Partner with Us ---------- */
.gc-popup .partner-dialog{ max-width: 832px; }
.partner-popup-inner{
    padding: 40px 64px 36px;
    text-align: center;
    /* The dialog is capped to the screen height; the form scrolls inside it */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
/* Short screens (laptops, landscape phones): tighter spacing so more fits */
@media (max-height: 760px) {
    .partner-popup-inner{ padding-top: 28px; padding-bottom: 24px; }
    .partner-popup .partner-icon{ width: 52px; height: 52px; margin-bottom: 8px; }
    .partner-popup h2{ font-size: 30px; line-height: 38px; margin-bottom: 4px; }
    .partner-intro{ margin-bottom: 16px; }
    .partner-popup .row.g-3{ --bs-gutter-y: .75rem; }
    .gc-popup-form textarea{ min-height: 72px; }
    .partner-submit{ margin-top: 16px; }
}
/* Green handshake badge (assets/images/icons/partner-handshake.png – circle included) */
.partner-icon{
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
}
.partner-popup h2{
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.partner-intro{
    max-width: 660px;
    margin: 0 auto 24px;
    font-size: 16px;
    line-height: 24px;
    color: var(--gray-600);
}
.partner-submit{ width: 100%; max-width: 320px; margin-top: 24px; }
.partner-note{ font-size: 12px; line-height: 18px; color: var(--gray-600); margin: 12px 0 0; }

/* ---------- Unlock Deals ---------- */
.gc-popup .offer-dialog{ max-width: 960px; }
.offer-popup-grid{ display: grid; grid-template-columns: 1fr 1fr; min-height: 432px; }
.offer-brand{
    background: #E9853B;
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.offer-logo{
    width: 228px;
    max-width: 70%;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* white version of the logo */
}
.offer-brand h3{
    font-size: 38px;
    line-height: 46px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 24px;
}
.offer-brand ul{ list-style: none; padding: 0; margin: 0; }
.offer-brand li{
    position: relative;
    padding-left: 32px;
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 12px;
}
.offer-brand li:last-child{ margin-bottom: 0; }
.offer-brand li i{
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #E9853B;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offer-brand li strong{ font-size: 20px; font-weight: 600; margin-right: 2px; }
.offer-form-side{
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.offer-form-side h2{
    font-size: 38px;
    line-height: 44px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--gray-900);
    margin-bottom: 24px;
}
.offer-phone{
    display: flex;
    align-items: stretch;
    height: 48px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, .05);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.offer-phone:focus-within{ border-color: var(--success-600); box-shadow: 0 0 0 4px rgba(3, 152, 85, .12); }
.offer-phone.is-invalid{ border-color: #D92D20; }
.offer-code{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 12px;
    border-right: 1px solid var(--gray-300);
    font-size: 18px;
    font-weight: 500;
    color: var(--gray-900);
}
.offer-code svg{ border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.gc-popup-form .offer-phone input{
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    font-size: 18px;
    padding: 0 12px;
}
.gc-popup-form .offer-check{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-700);
    cursor: pointer;
}
.offer-check input{ position: absolute; opacity: 0; pointer-events: none; }
.offer-checkbox{
    flex: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: #fff;
    color: var(--orange-500);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offer-checkbox i{ opacity: 0; }
.offer-check input:checked + .offer-checkbox{ border-color: var(--orange-500); }
.offer-check input:checked + .offer-checkbox i{ opacity: 1; }
.offer-check input:focus-visible + .offer-checkbox{ box-shadow: 0 0 0 3px var(--orange-100); }
.offer-form-side .gc-form-error{ margin: 0 0 12px; }
.offer-form-side .gc-form-error:empty{ margin: 0; }
.offer-terms{
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--gray-600);
}
.offer-terms a{ color: var(--gray-700); text-decoration: underline; }
.offer-terms a:hover{ color: var(--orange-600); }

@media (max-width: 991px) {
    .offer-brand{ padding: 32px; }
    .offer-brand h3{ font-size: 30px; line-height: 38px; }
    .offer-form-side{ padding: 40px 32px; }
    .offer-form-side h2{ font-size: 30px; line-height: 38px; }
}
@media (max-width: 767px) {
    .partner-popup-inner{ padding: 32px 20px 24px; }
    .partner-popup h2{ font-size: 28px; line-height: 36px; }
    .partner-intro{ font-size: 14px; line-height: 22px; margin-bottom: 20px; }
    .partner-submit{ max-width: none; }

    /* Brand panel becomes a short header above the form */
    .offer-popup-grid{ grid-template-columns: 1fr; min-height: 0; }
    .offer-brand{ padding: 24px 20px; text-align: center; align-items: center; }
    .offer-logo{ width: 150px; margin-bottom: 8px; }
    .offer-brand h3{ font-size: 22px; line-height: 30px; margin-bottom: 0; }
    .offer-brand h3 br{ display: none; }
    .offer-brand ul{ display: none; }
    .offer-form-side{ padding: 24px 20px; }
    .offer-form-side h2{ font-size: 24px; line-height: 32px; margin-bottom: 20px; }
    .gc-popup-close{ top: 10px; right: 10px; width: 32px; height: 32px; }
    .offer-popup .gc-popup-close{ background: rgba(255,255,255,.25); color: #fff; }
}
