.gr-tel-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 0 !important;
}

.gr-tel-wrapper input.gr-tel-input {
    width: 100%;
    padding: 12px 37px 12px 90px;
    border-radius: 0;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.gr-tel-wrapper input.gr-tel-input:focus {
    border-color: #737373;
    outline: 0;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px hsl(0deg 0% 45% / 60%);
}

.gr-tel-wrapper.has-feedback{
    margin-bottom: 0 !important;
}

.gr-asterisk.error-highlight {
    color: #d9534f !important;
    /* bootstrap danger red */
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.gr-tel-selected-flag {
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.gr-tel-selected-flag:hover {
    background: #e9ecef;
}

.gr-tel-flag {
    width: 24px;
    height: 18px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.gr-tel-country-code {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.gr-tel-arrow {
    border: 4px solid transparent;
    border-top-color: #666;
    margin-left: 4px;
    margin-top: 4px;
    transition: transform 0.2s;
}

.gr-tel-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    margin-top: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 360px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 999;
}

.gr-tel-dropdown.gr-tel-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 0;
    border-top: 0;
}

.gr-tel-dropdown.gr-tel-open .gr-tel-country-item:nth-child(2) {
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.gr-tel-dropdown.gr-remove-border-margin .gr-tel-country-item:nth-child(2) {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.gr-tel-search-box {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.gr-tel-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.gr-tel-search-input:focus {
    border-color: #737373;
    outline: 0;
}

.gr-tel-country-list {
    max-height: 300px;
    overflow-y: auto;
}

.gr-tel-country-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.gr-tel-country-item:hover,
.gr-tel-country-item.gr-tel-selected {
    background: #f1f5f9;
}

.gr-tel-country-name {
    flex: 1;
    margin-left: 10px;
    font-size: 14px;
    color: rgb(33, 37, 41)
}

.gr-tel-country-code {
    color: #666;
    font-size: 13px;
    margin-left: 8px;
}

.gr-tel-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Scrollbar styling (optional) */
.gr-tel-country-list::-webkit-scrollbar {
    width: 8px;
}

.gr-tel-country-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gr-tel-country-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

.gr-tel-wrapper span.help-block{
  margin-bottom: 0px !important;
}

.gr-tel-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                margin-top 0.3s ease;
    transform: rotate(0deg);
    margin-top: 4px;
}

.gr-tel-arrow.open {
    transform: rotate(180deg);
    margin-top: -4px;
}

/* media query for screen 768 to 991 */
@media (max-width: 991px) and (min-width: 768px) {
    .gr-contact-form-fields .vc_col-sm-4 {
        width: 100% !important;
    }

}
/* media query for screen 768 to 991 */
@media (max-width: 1165px) and (min-width: 768px) {
    #popmake-719 .gr-contact-form-fields .vc_col-sm-4 {
        width: 100% !important;
    }

}