/* Стили для полей контактных телефонов в форме */

/* Иконка подсказки */
.job-phone-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #0073aa;
    font-size: 16px;
    cursor: help;
    position: relative;
}

.job-phone-tooltip-icon:hover {
    color: #005a87;
}

.job-phone-tooltip-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup tooltip для подсказки */
.job-phone-tooltip-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 280px;
    margin-top: 5px;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-contact-phones-wrapper {
    margin-top: 10px;
}

.job-contact-phone-item {
    margin-bottom: 15px !important;
    padding: 5px !important;
}

.job-contact-phone-item .jobsearch-row {
    margin: 0;
}

.job-contact-phone-item .jobsearch-column-5 {
    padding: 0 10px 0 0;
}

.job-contact-phone-item input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.job-contact-phone-item .jobsearch-column-2 {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-phone-add-btn,
.job-phone-remove-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s !important;
    margin-left: 5px !important;
}

.job-phone-add-btn:hover {
    background: #005a87;
}

.job-phone-remove-btn {
    background: #dc3232;
}

.job-phone-remove-btn:hover {
    background: #b32d2e;
}

.job-phone-help-text {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

/* ========== Блок "Связаться напрямую" под кнопками ========== */
.careerfy-contact-phones-sidebar.jobsearch_box_contact_phones .jobsearch_side_box_content {
    padding: 0 !important;
    border: none !important;
}

.careerfy-contact-phones-sidebar .careerfy-contact-phones-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
}

.careerfy-contact-phones-sidebar .careerfy-contact-phone-item {
    margin-bottom: 12px;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    list-style: none !important;
}

.careerfy-contact-phones-sidebar .careerfy-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.careerfy-contact-phones-sidebar .careerfy-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0A65FC !important;
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: 1.5em;
}

.careerfy-contact-phones-sidebar .careerfy-phone-link:hover {
    color: #0A65FC !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.careerfy-contact-phones-sidebar .careerfy-phone-masked-wrap {
    cursor: pointer;
    user-select: none;
    color: #0A65FC;
}

.careerfy-contact-phones-sidebar .careerfy-phone-masked-wrap .careerfy-phone-full {
    display: none;
}

.careerfy-contact-phones-sidebar .careerfy-phone-masked-wrap:hover .careerfy-phone-masked-text,
.careerfy-contact-phones-sidebar .careerfy-phone-masked-wrap.is-revealed .careerfy-phone-masked-text {
    display: none;
}

.careerfy-contact-phones-sidebar .careerfy-phone-masked-wrap:hover .careerfy-phone-full,
.careerfy-contact-phones-sidebar .careerfy-phone-masked-wrap.is-revealed .careerfy-phone-full {
    display: inline;
}

.careerfy-contact-phones-sidebar .careerfy-phone-messengers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.careerfy-contact-phones-sidebar .careerfy-messenger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    transition: opacity 0.2s;
}

.careerfy-contact-phones-sidebar .careerfy-messenger-icon:hover {
    opacity: 0.8;
}

.careerfy-contact-phones-sidebar .careerfy-messenger-icon svg,
.careerfy-contact-phones-sidebar .careerfy-messenger-svg {
    display: block;
    width: 35px;
    height: 35px;
}


.careerfy-contact-phones-sidebar .careerfy-phone-comment-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-left: 28px;
}

.careerfy-contact-phones-sidebar .careerfy-phone-comment-icon.careerfy-circle-info-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #0A65FC;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 101, 252, 0.1);
    border-radius: 50%;
    padding: 2px;
}

.careerfy-contact-phones-sidebar .careerfy-phone-comment-icon.careerfy-circle-info-icon svg,
.careerfy-contact-phones-sidebar .careerfy-phone-comment-icon.careerfy-circle-info-icon .careerfy-icon-tabler-user-circle {
    width: 18px;
    height: 18px;
    display: block;
}

.careerfy-contact-phones-sidebar .careerfy-phone-comment {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Стили для кнопки "Позвонить" на странице вакансии в стиле jobsearch_apply_job_wrap */
.careerfy-job-call-wrap {
    margin-top: 20px;
}

.careerfy-job-call-wrap .jobsearch_apply_job_wrap {
    margin-top: 0;
}

.careerfy-job-call-btn {
    text-decoration: none;
}

.careerfy-job-call-btn i {
    margin-right: 8px;
}

/* Попап с контактными телефонами */
.careerfy-job-call-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.careerfy-job-call-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.careerfy-job-call-popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.careerfy-job-call-popup-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.careerfy-job-call-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600 !important;
}

.careerfy-job-call-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0 !important;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s !important;
}.careerfy-job-call-popup-header h3

.careerfy-job-call-popup-close:hover {
    color: #000;
}

.careerfy-job-call-popup-body {
    padding: 20px;
}

.careerfy-job-call-phones-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.careerfy-job-call-phone-item {
    margin-bottom: 15px;
}

.careerfy-job-call-phone-item:last-child {
    margin-bottom: 0;
}

.careerfy-job-call-phone-link {
    display: flex;
    align-items: center;
    padding: 15px !important;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s !important;
    background-color: #f9f9f9 !important;
}

.careerfy-job-call-phone-link:hover {
    background: #0A65FC;
    color: #fff;
    border-color: #0A65FC;
    text-decoration: none;
}

.careerfy-job-call-phone-link i {
    font-size: 20px;
    margin-right: 15px;
    color: #0A65FC;
}

.careerfy-job-call-phone-link:hover i {
    color: #fff;
}

.careerfy-job-call-phone-number {
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
}

.careerfy-job-call-phone-comment {
    font-size: 14px;
    color: #666 !important;
    margin-left: auto !important;
}

.careerfy-job-call-phone-link:hover .careerfy-job-call-phone-comment {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .careerfy-job-call-popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .careerfy-job-call-phone-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .careerfy-job-call-phone-comment {
        margin-left: 35px;
        margin-top: 5px;
    }
}

/* ========== PHONE VALIDATION STYLES ========== */

.job-phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.job-phone-input-wrapper .job-phone-input {
    width: 100%;
    padding: 8px 35px 8px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.job-phone-input-wrapper .job-phone-status-icon {
    position: absolute;
    right: 8px;
    font-size: 18px;
}

.job-phone-input-wrapper.job-phone-valid .job-phone-input {
    border-color: #4caf50;
    background-color: #f1f8f6;
}

.job-phone-input-wrapper.job-phone-invalid .job-phone-input {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.job-phone-error-msg {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: #d32f2f !important;
}

.job-phone-help-text {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.job-phone-help-text strong {
    color: #333;
}
