signup-popup {
    transition: opacity 0.2s ease;
    opacity: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 46px 42px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

signup-popup label,
signup-popup b,
signup-popup small {
    color: var(--text-color);
}

signup-popup.in-page-popup {
    position: static;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1;
}

.signup-popup-wrapper {
    background-color: var(--background-color);
    border-radius: 26px;
    border: 1px solid var(--text-color);
    width: 670px;
    height: 100%;
    position: relative;
    padding: 32px 12px;
    max-height: 756px;
}

signup-popup.subscribe-success .signup-popup-wrapper {
    height: auto;
}

.signup-popup-inner {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 32px;
    position: relative;
}

signup-popup.subscribe-success .signup-popup-inner {
    overflow: hidden;
}

signup-popup.subscribe-success form,
signup-popup.subscribe-success .popup-heading {
    display: none;
}

.signup-popup-inner h2 {
    font-size: 46px;
    color: #002374;
    text-align: center;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.horizontal-inputs {
    display: flex;
    gap: 20px;
}

.horizontal-input {
    width: 100%;
}

.select-wrapper {
    position: relative;
    border: 1px solid var(--text-color);
    width: 100%;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  border: none !important;
  color: var(--text-color);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

.select-arrow .dropdown-arrow-svg {
    position: static;
    transform: translateX(0%);
    margin-top: 0px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.checkbox-wrapper {
    display: flex;
    gap: 10px;
}

.checkbox {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 0 !important;
    cursor: pointer;
}

.custom-checkbox {
    border: 1px solid var(--text-color);
    position: relative;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-top: 1px;
    cursor: pointer;
}

.checkbox-wrapper label {
    cursor: pointer;
}

.custom-checkbox .checkbox:checked + .checkmark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: var(--text-color);
  pointer-events: none;
}

.popup-form label {
    line-height: 140%;
}

.popup-form-button-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-form-button-wrapper button {
    margin-bottom: 10px;
}

.popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 6px;
    right: 18px;
    width: 18px;
    height: 18px;
    z-index: 4;
}

.signup-popup-inner::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.signup-popup-inner::-webkit-scrollbar-track {
  border-radius: 4px;
  background: var(--text-color-20);
}

.signup-popup-inner::-webkit-scrollbar-thumb {
  background: var(--text-color);
  border-radius: 4px;
}

.success-panel {
    display: none;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.success-panel button {
    margin-top: 10px;
}

signup-popup.subscribe-success .success-panel {
    display: flex;
}

signup-popup .form-alert {
    margin-bottom: 5px;
}

signup-popup b {
    line-height: 100%;
}

.in-page-popup .signup-popup-wrapper {
    max-height: unset !important;
}

@media (min-width: 1439px) {  
    signup-popup {
        padding: calc(3.2vw * var(--scale)) calc(2.92vw * var(--scale));
    }

    .signup-popup-wrapper {
        border-radius: calc(1.81vw * var(--scale));
        width: calc(46.5vw * var(--scale));
        padding: calc(2.22vw * var(--scale)) calc(0.83vw * var(--scale));
        max-height: calc(52.5vw * var(--scale));
    }

    .signup-popup-inner {
        padding: calc(1.25vw * var(--scale)) calc(2.22vw * var(--scale));
    }

    .signup-popup-inner h2 {
        font-size: calc(3.2vw * var(--scale));
    }

    .popup-form {
        gap: calc(1.04vw * var(--scale));
        margin-top: calc(1.39vw * var(--scale));
    }

    .horizontal-inputs {
        gap: calc(1.39vw * var(--scale));
    }

    .select-arrow {
        right: calc(0.97vw * var(--scale));
    }

    .form-group {
        gap: calc(0.97vw * var(--scale));
        margin-top: calc(1.11vw * var(--scale));
    }

    .checkbox-wrapper {
        gap: calc(0.69vw * var(--scale));
    }


    .custom-checkbox {
        width: calc(1.39vw * var(--scale));
        min-width: calc(1.39vw * var(--scale));
        height: calc(1.39vw * var(--scale));
    }

    .popup-form-button-wrapper button {
        margin-bottom: calc(0.69vw * var(--scale));
    }

    .popup-close {
        top: calc(0.42vw * var(--scale));
        right: calc(1.25vw * var(--scale));
        width: calc(1.25vw * var(--scale));
        height: calc(1.25vw * var(--scale));
    }

    .success-panel button {
        margin-top: calc(0.69vw * var(--scale));
    }
}

@media (max-width: 991px) { 
    .signup-popup-wrapper {
        width: 100%;
        max-width: 670px;
        padding: 0px;
    }

    .signup-popup-inner {
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 58px 44px;
    }

    .signup-popup-inner {
        -ms-overflow-style: none;  /* IE 10+ */
        scrollbar-width: none;     /* Firefox */
        overflow-y: auto;          /* still scrollable */
    }

    .signup-popup-inner::-webkit-scrollbar {
        display: none;
    }

    .popup-close {
        top: 38px;
        right: 32px;
    }
}

@media (max-width: 479px) { 
    signup-popup {
        padding: 28px 18px;
    }

    .signup-popup-wrapper {
        border-radius: 16px;
        padding: 0px 0px;
    }

    .signup-popup-inner {
        padding: 42px 18px;
    }

    .signup-popup-inner h2 {
        font-size: 32px;
    }

    .popup-form {
        gap: 12px;
        margin-top: 14px;
    }

    .horizontal-inputs {
        flex-direction: column;
        gap: 12px;
    }

    .checkbox-wrapper {
        gap: 8px;
    }

    .form-group {
        gap: 12px;
    }

    .custom-checkbox {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .popup-close {
        top: 22px;
        right: 18px;
        width: 14px;
        height: 14px;
    }

    .success-panel {
        gap: 6px;
    }

    .popup-form-button-wrapper button {
        margin-bottom: 8px;
    }

    .success-panel button {
        margin-top: 8px;
    }
}