/* Country code dropdown inside the contact form phone field */
.contact-form form .input-box.phone-box {
    position: relative;
}
.contact-form form .input-box.phone-box input[type="tel"] {
    position: relative;
    display: block;
    background: #ffffff;
    border: 1px solid #ededed;
    width: 100%;
    height: 60px;
    font-size: 15px;
    padding-left: 180px;
    padding-right: 20px;
    border-radius: 0px;
    margin-bottom: 30px;
    transition: all 500ms ease;
    color: #222222;
}
.contact-form form .input-box.phone-box input[type="tel"]:focus {
    border-color: #1d1d1d;
    outline: none;
}
.contact-form form .input-box.phone-box input[type="tel"]::placeholder {
    color: #828282;
}

.cc-select {
    position: absolute;
    top: 1px;
    left: 45px;
    height: 58px;
    z-index: 5;
}
.cc-toggle {
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 10px 0 6px;
    background: transparent;
    border: 0;
    border-right: 1px solid #ededed;
    color: #222222;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}
.cc-toggle:focus {
    outline: none;
    background: #f7f7f7;
}
.cc-toggle .fi {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    margin-right: 7px;
    flex: 0 0 auto;
}
.cc-toggle-iso {
    font-weight: 600;
    margin-right: 5px;
}
.cc-toggle-dial {
    color: #555555;
}
.cc-caret {
    width: 0;
    height: 0;
    margin-left: 7px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #828282;
}
.cc-select.is-open .cc-caret {
    border-top: 0;
    border-bottom: 5px solid #828282;
}

.cc-panel {
    position: absolute;
    top: 100%;
    left: -45px;
    width: 320px;
    max-width: calc(100vw - 50px);
    margin-top: 2px;
    background: #ffffff;
    border: 1px solid #ededed;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 50;
}
.cc-panel[hidden] {
    display: none;
}
.contact-form form .cc-panel input[type="text"].cc-search {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid #ededed;
    border-radius: 0;
    font-size: 14px;
    color: #222222;
    background: #ffffff;
}
.contact-form form .cc-panel input[type="text"].cc-search:focus {
    outline: none;
    border-bottom-color: #1d1d1d;
}
.cc-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 260px;
    overflow-y: auto;
}
.cc-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    color: #222222;
    cursor: pointer;
    line-height: 1.3;
}
.cc-item[hidden] {
    display: none;
}
.cc-item:hover,
.cc-item.is-selected {
    background: #f3f3f3;
}
.cc-item .fi {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    margin-right: 10px;
    flex: 0 0 auto;
}
.cc-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cc-iso {
    color: #828282;
    font-size: 12px;
    margin: 0 8px;
}
.cc-dial {
    color: #555555;
    flex: 0 0 auto;
}
.cc-divider {
    height: 1px;
    margin: 4px 0;
    background: #ededed;
}
.cc-divider[hidden] {
    display: none;
}

@media (max-width: 400px) {
    .contact-form form .input-box.phone-box input[type="tel"] {
        padding-left: 140px;
        font-size: 14px;
    }
    .cc-toggle {
        padding-right: 6px;
        font-size: 14px;
    }
    .cc-toggle-dial {
        display: none;
    }
    .cc-panel {
        width: 280px;
    }
}
