/* ==========================================================================
   css/popups-v2.css — Pixel-accurate Popups & "You're in!" Success State
   Exact Figma dimensions from 3562:7996 & 3563:8440:
     Modal: 626px wide, 39px top / 41px bottom padding, 16px radius
     Inputs & CTA: 412px wide x 60px tall, 10px gap, 30px radius
     Checkbox: 20x20px circle (resets legacy form.css transform: scale(1.8)!)
   ========================================================================== */

.popup.popup-v2 {
    width: calc(100% - 32px) !important;
    max-width: 626px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    box-shadow: 0 20px 56px rgba(0, 12, 61, 0.16) !important;
    font-family: "TT Comons", "TT Commons", Arial, sans-serif !important;
    overflow: hidden !important;
}

.popup.popup-v2 .popup-in {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 39px 48px 41px !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.popup.popup-v2 .close {
    position: absolute !important;
    top: 30px !important;
    right: 31px !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    color: #000C3D !important;
    transform: none !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
    transition: opacity 0.15s ease;
}

.popup.popup-v2 .close:hover {
    opacity: 1 !important;
}

.popup.popup-v2 .popup-v2-form {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.popup.popup-v2 h3 {
    margin: 0 0 10px !important;
    padding: 0 24px !important;
    font-family: "TT Comons", "TT Commons", Arial, sans-serif !important;
    font-size: 27px !important;
    line-height: 29px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    color: #000C3D !important;
    text-align: center !important;
}

.popup.popup-v2 small {
    display: block !important;
    margin: 0 auto 25px !important;
    max-width: 454px !important;
    font-family: "TT Comons", "TT Commons", Arial, sans-serif !important;
    font-size: 22px !important;
    line-height: 25px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    color: #000C3D !important;
    text-align: center !important;
}

/* Pill inputs & select — exact 412x60 track matching Figma */
.popup.popup-v2 .subform-top,
.popup.popup-v2 .popup-report-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 412px !important;
    margin: 0 auto 18px !important;
}

.popup.popup-v2 .popup-twoinputs {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 412px !important;
    margin: 0 !important;
}

.popup.popup-v2 .subform-top input[type="email"],
.popup.popup-v2 .subform-top input[type="text"],
.popup.popup-v2 .subform-top select,
.popup.popup-v2 .popup-report-top input[type="email"],
.popup.popup-v2 .popup-report-top input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 1px solid #EBF1F7 !important;
    border-radius: 30px !important;
    background-color: #FFFFFF !important;
    color: #000C3D !important;
    font-family: "TT Comons", "TT Commons", Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 58px !important;
    box-shadow: 0 2px 12px rgba(209, 221, 229, 0.45) !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.popup.popup-v2 .subform-top input::placeholder,
.popup.popup-v2 .popup-report-top input::placeholder {
    color: #566D82 !important;
    opacity: 1 !important;
}

.popup.popup-v2 .subform-top input:focus,
.popup.popup-v2 .subform-top select:focus,
.popup.popup-v2 .popup-report-top input:focus {
    border-color: #1152F7 !important;
    box-shadow: 0 0 0 3px rgba(17, 82, 247, 0.12) !important;
}

.popup.popup-v2 .subform-top .select-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.popup.popup-v2 .subform-top .select-wrap::before,
.popup.popup-v2 .subform-top .select-wrap::after {
    display: none !important;
    content: none !important;
}

.popup.popup-v2 .subform-top select,
.popup.popup-v2 select,
#subform-select,
#symposium-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23000C3D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 22px center !important;
    background-size: 10px 6px !important;
    padding: 0 44px 0 24px !important;
    line-height: 58px !important;
    color: #566D82 !important;
    cursor: pointer !important;
}

.popup.popup-v2 select::-ms-expand,
#subform-select::-ms-expand {
    display: none !important;
}

.popup.popup-v2 .subform-top select:valid,
.popup.popup-v2 .subform-top select option {
    color: #000C3D !important;
}

/* Unbolded, subtle consent line with vertically centered 18x18 circular checkbox */
.popup.popup-v2 .subform-mid.popup-v2-consent,
.popup-v2-consent {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 412px !important;
    margin: 0 auto 22px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.popup.popup-v2 .subform-mid.popup-v2-consent input[type="checkbox"],
.popup-v2-consent input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    transform: none !important;
    display: inline-block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid #98A2B3 !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    position: relative !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.popup.popup-v2 .subform-mid.popup-v2-consent input[type="checkbox"]:checked,
.popup-v2-consent input[type="checkbox"]:checked {
    background-color: #000C3D !important;
    border-color: #000C3D !important;
}

.popup.popup-v2 .subform-mid.popup-v2-consent input[type="checkbox"]:checked::after,
.popup-v2-consent input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #FFFFFF !important;
    border-width: 0 1.75px 1.75px 0 !important;
    transform: rotate(45deg) !important;
}

.popup.popup-v2 .subform-mid.popup-v2-consent label,
.popup-v2-consent label {
    font-family: "TT Comons", "TT Commons", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 21px !important;
    font-weight: 400 !important;
    color: #475467 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Pill primary CTA button — exact 412x60 */
.popup.popup-v2 .popup-v2-btn,
.popup.popup-v2 input[type="submit"].popup-v2-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 412px !important;
    height: 60px !important;
    margin: 0 auto !important;
    padding: 0 28px !important;
    border: none !important;
    border-radius: 30px !important;
    background: #1152F7 !important;
    color: #FFFFFF !important;
    font-family: "TT Comons", "TT Commons", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.popup.popup-v2 .popup-v2-btn:hover,
.popup.popup-v2 input[type="submit"].popup-v2-btn:hover {
    background: #0B40CC !important;
}

.popup.popup-v2 .popup-v2-btn:disabled,
.popup.popup-v2 input[type="submit"].popup-v2-btn:disabled {
    opacity: 0.65 !important;
    cursor: wait !important;
}

/* Error message */
.popup.popup-v2 .formmessage {
    display: none;
    max-width: 412px;
    margin: 0 auto 14px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    background: #FEF3F2 !important;
    color: #B42318 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

/* Success state ("You're in!") — exact Figma 3563:8440 (626 x 469) */
.popup.popup-v2 .popup-v2-success {
    text-align: center !important;
    padding: 0 !important;
}

.popup.popup-v2 .popup-v2-success h3 {
    font-size: 27px !important;
    line-height: 29px !important;
    font-weight: 500 !important;
    margin: 0 0 15px !important;
}

.popup.popup-v2 .popup-v2-success-img {
    display: block !important;
    width: 100% !important;
    max-width: 362px !important;
    height: auto !important;
    margin: 0 auto 20px !important;
    border-radius: 12px !important;
}

.popup.popup-v2 .popup-v2-success-text {
    margin: 0 auto 23px !important;
    max-width: 460px !important;
    font-family: "TT Comons", "TT Commons", Arial, sans-serif !important;
    font-size: 22px !important;
    line-height: 25px !important;
    font-weight: 400 !important;
    color: #000C3D !important;
    text-align: center !important;
}

.popup.popup-v2 .popup-v2-success-text strong {
    font-weight: 600 !important;
    color: #000C3D !important;
}

.popup.popup-v2 .popup-v2-success .popup-v2-btn {
    max-width: 412px !important;
    margin-bottom: -10px !important;
}

@media (max-width: 600px) {
    .popup.popup-v2 .popup-in {
        padding: 32px 22px 28px !important;
    }
    .popup.popup-v2 h3 {
        font-size: 21px !important;
        line-height: 26px !important;
    }
    .popup.popup-v2 small {
        font-size: 15px !important;
        line-height: 22px !important;
    }
}
