/* Custom Modal CSS - Unique class names */
.custom-modal-overlay {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, .7);
    display: none;
}

.custom-modal-container {
    position: absolute;
    left: 50%;
    transition: all .8s ease;
    transform-style: preserve-3d;
    z-index: 9999;
    top: 5vw;
    width: auto;
    transform: translateX(-50%);
    text-align: center;
    margin-bottom: 0;
    border: 0;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 1.823vw;
}

.custom-modal-container .custom-modal-btn,
.custom-modal-container .custom-modal-form-group {
    width: 18.542vw;
    margin-bottom: 1.198vw;
}

.custom-modal-container .custom-modal-btn {
    padding: 0;
}

.custom-modal-close-btn {
    display: flex;
    position: absolute;
    top: 4.635vw;
    right: 4.427vw;
    width: 2.083vw;
    cursor: pointer;
    transition: .3s;
    z-index: 10000;
}

.custom-modal-close-btn:hover {
    opacity: 0.7;
}

/* Modal Call Specific */
.custom-modal-call {
    padding: 7.5vw 3.646vw 2.083vw 29.427vw;
    background: #f0f0f0 center no-repeat;
    background-size: cover;
    width: 60.9375vw;
    height: 39.0625vw;
    color: #333;
}

.custom-modal-call .custom-modal-mb {
    margin-bottom: 1.40625vw;
}

.custom-modal-call .custom-modal-close-btn {
    top: 2.865vw;
    right: 2.865vw;
}

.custom-modal-call-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-modal-call .custom-modal-btn,
.custom-modal-call .custom-modal-input,
.custom-modal-call .custom-modal-select {
    height: 5.208vw;
}

.custom-modal-input {
    background: #f4f5f6;
    box-shadow: inset 0 0 21px rgba(255, 255, 255, .4);
    border-radius: 500px;
    padding-left: 2.396vw;
    border: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
}

/* Form elements */
.custom-modal-form-group {
    margin-bottom: 1.198vw;
}

.custom-modal-btn {
    padding: 2.448vw 3.646vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    z-index: 6;
    cursor: pointer;
    background: #6cb644;
    box-shadow: inset 0 0 35px rgba(255, 255, 255, .25);
    border-radius: 500px;
    color: #fff;
    border: none;
    position: relative;
    letter-spacing: .03em;
    font-weight: 700;
    font-family: inherit;
}

.custom-modal-btn:hover {
    background: #5ea33a;
}

.custom-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-modal-btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    white-space: nowrap;
}

/* Policy checkbox */
.custom-modal-policy {
    display: flex;
    align-items: center;
    gap: .729vw;
    cursor: pointer;
}

.custom-modal-policy-check {
    width: 1.042vw;
    height: 1.042vw;
    border-radius: .26vw;
    background: #6cb644;
    border: 1px solid #6cb644;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.custom-modal-policy-check svg {
    display: none;
    width: .417vw;
}

.custom-modal-hidden-input:checked ~ .custom-modal-policy-check svg {
    display: block;
}

.custom-modal-policy-text {
    font-size: .573vw;
    line-height: 1.4;
}

.custom-modal-link {
    color: #6cb644;
    text-decoration: none;
    transition: all .3s;
}

.custom-modal-link:hover {
    color: #5ea33a;
}

.custom-modal-hidden-input {
    display: none;
}

/* Clients name pin */
.custom-modal-clients-name {
    position: absolute;
    left: 2.865vw;
    bottom: 1.823vw;
    top: unset;
    text-align: left;
    color: #fff;
}

.custom-modal-clients-pin {
    display: flex;
    width: .3125vw;
    height: .3125vw;
    background: #6cb644;
    border-radius: 50%;
    z-index: 1;
    position: absolute;
    left: .9vw;
    top: -1.9vw;
}

.custom-modal-clients-pin::before {
    content: '';
    position: absolute;
    top: -.85vw;
    left: -.85vw;
    width: 1.8vw;
    height: 1.8vw;
    border: .1rem solid #f5f5f5;
    border-radius: 50%;
    animation: custom-modal-pulse 2s linear infinite;
    z-index: -1;
}

@keyframes custom-modal-pulse {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

/* Font sizes */
.custom-modal-fz48 {
    font-size: 2.5vw;
}

.custom-modal-fz24 {
    font-size: 1.25vw;
}

.custom-modal-fz18 {
    font-size: .9375vw;
}

.custom-modal-fz14 {
    font-size: .729vw;
}

.custom-modal-fz11 {
    font-size: .573vw;
}

/* Font weights */
.custom-modal-fw3 {
    font-weight: 300;
}

.custom-modal-fw5 {
    font-weight: 500;
}

/* Text alignment */
.custom-modal-tac {
    text-align: center;
}

.custom-modal-tal {
    text-align: left;
}

/* Margins */
.custom-modal-mb {
    margin-bottom: 2.083vw;
}

.custom-modal-mbs {
    margin-bottom: .41vw;
}

/* Line heights */
.custom-modal-lh140 {
    line-height: 140%;
}

.custom-modal-lh120 {
    line-height: 120%;
}

/* Utility */
.custom-modal-stop {
    overflow: hidden !important;
}



/* Mobile styles */
@media (max-width: 767px) {
    .custom-modal-container {
        top: 5rem;
        border-radius: 2rem;
    }

    .custom-modal-container .custom-modal-btn,
    .custom-modal-container .custom-modal-form-group {
        width: 100%;
        margin-bottom: 1.6rem;
    }

    .custom-modal-call {
        padding: 2rem;
        background: #f0f0f0 center no-repeat;
        background-size: cover;
        width: 28.8rem;
        height: auto;
    }

    .custom-modal-call .custom-modal-mb {
        margin-bottom: 1.40625rem;
    }

    .custom-modal-call .custom-modal-close-btn {
        top: -.135rem;
        right: 1.865rem;
        width: 1rem;
    }

    .custom-modal-call br {
        display: none;
    }

    .custom-modal-call .custom-modal-btn,
    .custom-modal-call .custom-modal-input,
    .custom-modal-call .custom-modal-select {
        height: 6rem;
    }

    .custom-modal-call .custom-modal-clients-name {
        display: none;
    }

    .custom-modal-close-btn {
        top: 1rem;
        right: 1rem;
        width: 2rem;
    }

    .custom-modal-policy {
        gap: .729rem;
    }

    .custom-modal-policy-check {
        width: 2rem;
        min-width: 2rem;
        height: 2rem;
        border-radius: .5rem;
    }

    .custom-modal-policy-check svg {
        width: .8rem;
    }

    .custom-modal-policy-text {
        display: inline;
        font-size: 1rem;
    }

    .custom-modal-policy-text br {
        display: none;
    }

    .custom-modal-policy-text a {
        display: inline;
    }

    .custom-modal-fz48 {
        font-size: 2.5rem;
    }

    .custom-modal-fz24 {
        font-size: 1.8rem;
    }

    .custom-modal-fz18 {
        font-size: 1.8rem;
    }

    .custom-modal-fz14 {
        font-size: 1.2rem;
    }

    .custom-modal-fz11 {
        font-size: 1rem;
    }
}
