/**
 * Counselor Contact Modal Styles
 * Based on pspopup module style
 */

/* Overlay - ciemny, na środku */
.counselor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.counselor-modal-overlay.counselor-modal-active {
    display: flex !important;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Container - modal na środku */
.counselor-modal-container {
    position: relative;
    pointer-events: auto;
    animation: counselor-modal-fade-in 0.3s ease-out;
    background-color: #ffffff;
    color: #000000;
    border-radius: 8px;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

@keyframes counselor-modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counselor-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #000;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counselor-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.counselor-modal-close svg {
    width: 16px;
    height: 16px;
}

.counselor-modal-inner {
    display: flex;
    flex-direction: column;
}

.counselor-modal-header {
    padding: 32px 32px 0 32px;
    text-align: center;
}

.counselor-modal-title {
    color: #000;
    font-family: var(--font-family-family-primary, Sora), sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    margin: 0 0 16px 0;
}

.counselor-modal-avatar {
    margin-bottom: 24px;
}

.counselor-modal-avatar .counselor-avatar {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
}

.counselor-modal-avatar .counselor-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E4FD71;
}

.counselor-modal-avatar .counselor-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #E4FD71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.counselor-modal-text {
    text-align: center;
    margin-bottom: 24px;
}

.counselor-modal-text strong {
    color: #000;
    font-family: var(--font-family-family-primary, Sora), sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    display: block;
    margin-bottom: 8px;
}

.counselor-modal-text p {
    color: #666;
    font-family: var(--font-family-family-primary, Sora), sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}

.counselor-modal-phone {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 32px;
}

.counselor-modal-phone .btn {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--background-color-brand-1-dark, #183030);
    background: var(--background-color-brand-1-dark, #183030);
    color: var(--text-color-dark-primary, #FFF);
    font-family: var(--font-family-family-primary, Sora);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.counselor-modal-phone .btn:hover {
    border-radius: 4px;
    border: 1px solid var(--color-brand-one-1-base, #183030);
    background: var(--color-brand-one-2, #354D39);
}

.counselor-modal-phone .btn svg {
    width: 20px;
    height: 20px;
}

.counselor-modal-phone p {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 12px;
    color: #666;
}

.counselor-modal-phone p a {
    color: #000;
    text-decoration: none;
}

.counselor-modal-form {
    padding: 0 32px 32px 32px;
}

.counselor-modal-form .form-label {
    color: #000;
    font-family: var(--font-family-family-primary, Sora), sans-serif;
    font-size: 14px;
    text-align: left;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 8px;
    display: block;
}

.counselor-modal-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-family: var(--font-family-family-primary, Sora), sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    background: #fff;
    transition: border-color 0.2s;
}

.counselor-modal-form .form-control:focus {
    outline: none;
    border-color: #E4FD71;
    box-shadow: 0 0 0 3px rgba(228, 253, 113, 0.1);
}

.counselor-modal-form .form-control::placeholder {
    color: #999;
}

.counselor-modal-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.counselor-modal-form .btn-primary {
    width: 100%;
    border-radius: var(--radius-x-small, 4px);
    border: 1px solid var(--color-brand-one-10, #F2FEBD);
    background: var(--color-brand-one-8-base, #E4FD71);
    color: var(--text-color-base-primary, #000);
    font-family: var(--font-family-family-primary, Sora);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    padding: 16px 0;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.counselor-modal-form .btn-primary:hover {
    color: var(--text-color-base-primary, #000);
    font-family: var(--font-family-family-primary, Sora);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    border-radius: var(--radius-x-small, 4px);
    border: 1px solid var(--color-brand-one-7, #C7E068);
    background: var(--color-brand-one-9, #EBFE97);
}

/* Responsive */
@media (max-width: 767px) {
    .counselor-modal-overlay {
        padding: 16px;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .counselor-modal-container {
        max-width: 100%;
        border-radius: 12px;
        max-height: calc(100vh - 32px);
        margin: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .counselor-modal-inner {
        min-height: auto;
    }

    .counselor-modal-header {
        padding: 24px 20px 0 20px;
    }

    .counselor-modal-title {
        font-size: 22px;
        line-height: 28px;
    }

    .counselor-modal-phone {
        padding: 0 20px;
    }

    .counselor-modal-form {
        padding: 0 20px 24px 20px;
    }
}

/* Hide body scroll when modal is open */
body.counselor-modal-open {
    overflow: hidden;
}

