/* ============ TIMED POPUP ============ */
.tp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.tp-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tp-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: translateY(16px) scale(.97);
    transition: transform .25s ease;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    overflow: hidden;
}
.tp-overlay.active .tp-modal {
    transform: translateY(0) scale(1);
}

/* Close */
.tp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.15);
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .15s;
    line-height: 1;
    z-index: 2;
}
.tp-close:hover { background: rgba(255,255,255,.25); }

/* Header block */
.tp-header {
    background: #3a4148;
    padding: 24px 24px 20px;
    position: relative;
}

.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0cf4c;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.tp-badge i { font-size: 11px; }

.tp-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
    padding-right: 32px;
}

.tp-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    margin: 0;
    line-height: 1.5;
}
.tp-subtitle strong { color: #f0cf4c; font-weight: 700; }

/* Manager */
.tp-manager {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tp-manager__photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0cf4c;
    flex-shrink: 0;
}

.tp-manager__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tp-manager__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.tp-manager__role {
    font-size: 12px;
    color: #6b7280;
}

.tp-manager__status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #059669;
    font-weight: 500;
    margin-top: 2px;
}

.tp-manager__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: tpPulse 1.8s ease infinite;
}

@keyframes tpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* Form area */
.tp-form-area {
    padding: 20px 24px 24px;
}

/* Tabs */
.tp-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 24px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 16px;
}
.tp-tab {
    background: none;
    border: none;
    padding: 8px 4px 10px;
    margin-right: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: color .15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tp-tab i { font-size: 13px; }
.tp-tab::after {
    content: ;
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f0cf4c;
    transform: scaleX(0);
    transition: transform .2s;
}
.tp-tab--active { color: #1a1a1a; }
.tp-tab--active::after { transform: scaleX(1); }

/* Fields */
.tp-form {
    padding: 0 24px 24px;
}

.tp-field {
    position: relative;
    margin-bottom: 10px;
}
.tp-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #d1d5db;
    font-size: 14px;
    pointer-events: none;
}
.tp-input {
    width: 100%;
    padding: 13px 16px 13px 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.tp-input:focus {
    outline: none;
    border-color: #f0cf4c;
    box-shadow: 0 0 0 3px rgba(240,207,76,.18);
}
.tp-input::placeholder { color: #9ca3af; }

/* Submit */
.tp-submit {
    width: 100%;
    padding: 14px;
    background: #f0cf4c;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .03em;
    cursor: pointer;
    margin-top: 4px;
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}
.tp-submit:hover { background: #e0bf3c; transform: translateY(-1px); }
.tp-submit:active { transform: translateY(0); }
.tp-submit:disabled { opacity: .7; cursor: wait; }

.tp-privacy {
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
}
.tp-privacy a { color: #6586d5; text-decoration: none; }
.tp-privacy a:hover { text-decoration: underline; }

.tp-message {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}
.tp-message--ok  { color: #059669; }
.tp-message--err { color: #dc2626; }

@media (max-width: 480px) {
    .tp-header  { padding: 20px 18px 16px; }
    .tp-manager { padding: 14px 18px; }
    .tp-tabs    { padding: 14px 18px 0; }
    .tp-form    { padding: 0 18px 20px; }
    .tp-title   { font-size: 19px; }
}
