/* TEG login / signup / forgot-password popups — matches quote modal + site theme */

body.show-popup .teg-global-fabs {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sig-up .overlay {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(1, 43, 80, 0.62);
    z-index: 1020;
    transition: opacity 0.16s ease, visibility 0s linear 0.16s;
}

.sig-up .overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.16s ease, visibility 0s linear 0s;
}

.sig-up .popup,
.sig-up .popup1,
.sig-up .popup2 {
    display: none;
    z-index: 1030;
    color: #1d1e27;
    padding: 20px 16px;
    align-items: center;
    justify-content: center;
    contain: layout style;
}

.sig-up .popup.is-open,
.sig-up .popup1.is-open,
.sig-up .popup2.is-open {
    display: flex;
}

.sig-up .popup .popup-wrap,
.sig-up .popup1 .popup-wrap,
.sig-up .popup2 .popup-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 0;
    margin: auto;
    overflow: hidden;
    border: none;
    border-radius: 16px;
    background: #fafbfc;
    box-shadow:
        0 4px 6px rgba(1, 43, 80, 0.04),
        0 16px 36px rgba(1, 43, 80, 0.16);
    transform-origin: center center;
    contain: layout paint;
}

.sig-up .popup.is-open .popup-wrap,
.sig-up .popup1.is-open .popup-wrap,
.sig-up .popup2.is-open .popup-wrap {
    animation: tegAuthPopIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sig-up .popup .popup-wrap {
    max-width: 680px;
}

@keyframes tegAuthPopIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sig-up .form-wrap {
    position: relative;
    padding: 1.15rem 1.25rem 0.35rem;
    background: #fff;
}

.sig-up .popup-wrap::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #012b50 0%, #0d4a82 45%, #ffa701 100%);
}

.sig-up .title_sec {
    padding-right: 2rem;
    margin-bottom: 1rem;
}

.sig-up .popup1 .title_sec {
    padding-right: 0;
    text-align: center;
}

.sig-up .teg-auth-logo {
    display: block;
    width: 230px;
    max-width: calc(100% - 72px);
    height: auto;
    margin: 0.15rem auto 1rem;
    object-fit: contain;
}

.sig-up .title_sec h4 {
    margin: 0;
    color: #ffa701;
    font-size: 26px;
    font-weight: 500;
    font-family: "P-Regular", "Poppins", sans-serif;
    line-height: 1.15;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
}

.sig-up .popup1 .title_sec h4,
.sig-up .popup1 .teg-auth-lead {
    text-align: center;
}

.sig-up .teg-auth-lead {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: "P-Regular", "Poppins", sans-serif;
    line-height: 1.4;
    text-transform: none;
}

.sig-up .close,
.sig-up .close1,
.sig-up .close2 {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    background: #f1f5f9;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.sig-up .close:hover,
.sig-up .close1:hover,
.sig-up .close2:hover,
.sig-up a.close:hover,
.sig-up a.close1:hover,
.sig-up a.close2:hover {
    color: #012b50;
    background: #e2e8f0;
    transform: scale(1.05);
}

.sig-up #form_signup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 0.85rem;
}

.sig-up #form_signup .form-check,
.sig-up #form_signup .teg-auth-actions {
    grid-column: 1 / -1;
}

.sig-up .form-group {
    margin-bottom: 0.85rem;
}

.sig-up label,
.sig-up .form-group > label:not(.form-check-label) {
    display: block;
    margin-bottom: 0.25rem;
    padding: 0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: "P-SemiBold", "Poppins", sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: none;
}

.sig-up .teg-auth-req {
    color: #e67e22;
    font-weight: 700;
}

.sig-up .form-control,
.sig-up select.form-control,
.sig-up .iti input.form-control {
    min-height: 42px;
    padding: 0.5rem 0.8rem;
    color: #0f172a;
    font-size: 0.875rem;
    font-family: "P-Regular", "Poppins", sans-serif;
    line-height: 1.35;
    background-color: #fff;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    box-shadow: none;
}

.sig-up .form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.sig-up .form-control:hover:not(:disabled),
.sig-up select.form-control:hover:not(:disabled) {
    border-color: #cbd5e1;
}

.sig-up .form-control:focus,
.sig-up select.form-control:focus,
.sig-up .iti input.form-control:focus {
    color: #0f172a;
    background-color: #fff;
    border-color: #012b50;
    box-shadow: 0 0 0 3px rgba(1, 43, 80, 0.1);
    outline: none;
}

.sig-up select.form-control,
.sig-up select.my-signup-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px 8px;
    padding-right: 2.25rem;
}

.sig-up select option {
    color: #1d1e27;
    background-color: #fff;
}

.sig-up .invalid-feedback,
.sig-up .teg-phone-feedback {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-family: "P-Regular", "Poppins", sans-serif;
    line-height: 1.25;
    color: #dc3545;
}

.sig-up .form-check {
    display: flex;
    align-items: flex-start;
    min-height: 1.5rem;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.sig-up .form-check .form-check-input {
    float: none;
    position: static;
    width: 1.05em;
    height: 1.05em;
    margin-top: 0.15em;
    margin-left: 0;
    margin-right: 0.5rem;
    border-radius: 3px;
    border-color: #cbd5e1;
    flex-shrink: 0;
}

.sig-up .form-check-input:checked {
    background-color: #012b50;
    border-color: #012b50;
}

.sig-up .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(1, 43, 80, 0.12);
}

.sig-up .form-check-label {
    padding: 0;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: "P-Regular", "Poppins", sans-serif;
    line-height: 1.4;
    text-transform: none;
}

.sig-up p,
.sig-up a {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: "P-Regular", "Poppins", sans-serif;
    text-transform: none;
}

.sig-up a {
    color: #012b50;
}

.sig-up a:hover {
    color: #ffa701;
}

.sig-up .form-check-label a {
    color: #012b50;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sig-up .form-check-label a:hover {
    color: #ffa701;
}

.sig-up .teg-auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin: 0 0 0.85rem;
}

.sig-up .teg-auth-links a,
.sig-up a.lostbtn,
.sig-up a.createbtn,
.sig-up a.backlogin,
.sig-up a.loginbtn {
    color: #012b50;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.sig-up .teg-auth-links a:hover,
.sig-up a.lostbtn:hover,
.sig-up a.createbtn:hover,
.sig-up a.backlogin:hover,
.sig-up a.loginbtn:hover {
    color: #ffa701;
}

.sig-up .teg-auth-switch {
    margin: 0;
    padding: 0.85rem 1.25rem 1.1rem;
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e8edf3;
}

.sig-up .teg-auth-switch a {
    color: #012b50;
    font-weight: 600;
}

.sig-up .teg-auth-switch a:hover {
    color: #ffa701;
}

.sig-up .alert {
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
    font-family: "P-Regular", "Poppins", sans-serif;
    line-height: 1.35;
    border-radius: 10px;
}

.sig-up .alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.sig-up .alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.sig-up .bbtn,
.sig-up #btnSignUp,
.sig-up #btnLogin,
.sig-up #btnReset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 0.6rem 1.5rem;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    font-family: "P-Regular", "Poppins", sans-serif;
    line-height: 1.25;
    text-transform: none;
    border: 1px solid transparent;
    border-radius: 30px;
    background-color: var(--c2, #ffa701);
    filter: drop-shadow(0 4px 10px rgba(255, 167, 1, 0.35));
    box-shadow: none;
    transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}

.sig-up .bbtn:hover,
.sig-up .bbtn:focus-visible,
.sig-up #btnSignUp:hover,
.sig-up #btnLogin:hover,
.sig-up #btnReset:hover {
    color: #000;
    border: 1px solid #000;
    background-color: #fff;
    transform: translateY(-1px);
}

.sig-up .bbtn:disabled {
    cursor: wait;
    opacity: 0.9;
    transform: none;
}

.sig-up .iti {
    width: 100%;
}

@media (max-width: 767px) {
    .sig-up #form_signup {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sig-up .popup,
    .sig-up .popup1,
    .sig-up .popup2 {
        padding: 12px 10px 24px;
    }

    .sig-up .popup .popup-wrap,
    .sig-up .popup1 .popup-wrap,
    .sig-up .popup2 .popup-wrap {
        width: 100%;
        max-width: 100%;
        margin: auto;
        border-radius: 14px;
    }

    .sig-up .form-wrap {
        padding: 1rem 1rem 0.25rem;
    }

    .sig-up .title_sec h4 {
        font-size: 22px;
        letter-spacing: 0.08em;
    }

    .sig-up .teg-auth-logo {
        width: 200px;
        margin-bottom: 0.85rem;
    }

    .sig-up .teg-auth-switch {
        padding: 0.75rem 1rem 1rem;
    }

    .sig-up label,
    .sig-up p,
    .sig-up a {
        font-size: 0.8125rem;
    }

    .sig-up .form-group > label:not(.form-check-label) {
        font-size: 0.75rem;
    }

    .sig-up .bbtn,
    .sig-up #btnSignUp,
    .sig-up #btnLogin,
    .sig-up #btnReset {
        font-size: 16px;
        min-height: 46px;
    }
}

@media (max-width: 430px) {
    .sig-up .popup,
    .sig-up .popup1,
    .sig-up .popup2 {
        padding: 8px 8px 20px;
    }

    .sig-up .form-control,
    .sig-up select.form-control,
    .sig-up .iti input.form-control {
        min-height: 40px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sig-up .overlay {
        transition: none;
    }

    .sig-up .popup.is-open .popup-wrap,
    .sig-up .popup1.is-open .popup-wrap,
    .sig-up .popup2.is-open .popup-wrap {
        animation: none;
    }
}
