/* Vostok CF7 Country Phone */
.vcp-control-wrap,
.vcp-field {
    display: block;
    width: 100%;
}

.vcp-field {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid rgba(17, 24, 39, 0.22);
    border-radius: 6px;
    background: #fff;
    overflow: visible;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.vcp-field:focus-within {
    border-color: currentColor;
    box-shadow: 0 0 0 1px currentColor;
}

.vcp-field.vcp-is-invalid {
    border-color: #dc3232;
}

.vcp-country-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 7px;
    min-width: 112px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-right: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 6px 0 0 6px;
    background: rgba(17, 24, 39, 0.035);
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.vcp-country-button:hover,
.vcp-country-button:focus {
    background: rgba(17, 24, 39, 0.065);
    outline: none;
}

.vcp-selected-flag {
    font-size: 20px;
    line-height: 1;
}

.vcp-selected-dial {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.vcp-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .62;
    transition: transform .18s ease;
}

.vcp-country-button[aria-expanded="true"] .vcp-chevron {
    transform: rotate(180deg);
}

.vcp-number.wpcf7-form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 46px;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    background: transparent !important;
    color: inherit;
    font: inherit;
    line-height: 1.35;
    box-shadow: none !important;
    outline: none !important;
}

.vcp-number::placeholder {
    color: inherit;
    opacity: .48;
}

.vcp-full-number {
    display: none !important;
}

.vcp-control-wrap > .wpcf7-not-valid-tip {
    margin-top: 6px;
}

.vcp-dropdown {
    position: fixed;
    z-index: 2147483647;
    display: none;
    overflow: hidden;
    max-height: min(430px, calc(100vh - 24px));
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 9px;
    background: #fff;
    color: #111827;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
    font-family: inherit;
    line-height: 1.3;
}

.vcp-dropdown.vcp-open {
    display: flex;
    flex-direction: column;
}

.vcp-search-wrap {
    flex: 0 0 auto;
    padding: 10px;
    border-bottom: 1px solid rgba(17, 24, 39, .1);
    background: #fff;
}

.vcp-search {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid rgba(17, 24, 39, .2);
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    outline: none;
}

.vcp-search:focus {
    border-color: #111827;
}

.vcp-country-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
}

.vcp-country-option {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111827;
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none;
}

.vcp-country-option:hover,
.vcp-country-option:focus,
.vcp-country-option[aria-selected="true"] {
    background: #f1f3f5;
    outline: none;
}

.vcp-option-flag {
    font-size: 20px;
    line-height: 1;
}

.vcp-option-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcp-option-dial {
    color: #4b5563;
    font-weight: 600;
    white-space: nowrap;
}

.vcp-section-label {
    padding: 8px 12px 5px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vcp-empty {
    padding: 18px 12px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 480px) {
    .vcp-country-button {
        min-width: 104px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .vcp-dropdown {
        max-height: min(390px, calc(100vh - 16px));
    }
}
