/* ============ 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;
    padding: 32px 28px 28px;
    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,.18);
}
.tp-overlay.active .tp-modal {
    transform: translateY(0) scale(1);
}

.tp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color .15s, background .15s;
    line-height: 1;
}
.tp-close:hover { color: #374151; background: #f3f4f6; }

.tp-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    padding-right: 24px;
    line-height: 1.3;
}
.tp-desc {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 20px;
    line-height: 1.55;
}

/* Tabs */
.tp-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}
.tp-tab {
    background: none;
    border: none;
    padding: 8px 0;
    margin-right: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: color .15s;
}
.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-field {
    position: relative;
    margin-bottom: 12px;
}
.tp-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #d1d5db;
    font-size: 15px;
    pointer-events: none;
}
.tp-input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.tp-input:focus {
    outline: none;
    border-color: #f0cf4c;
    box-shadow: 0 0 0 3px rgba(240,207,76,.2);
}
.tp-input::placeholder { color: #9ca3af; }

/* Submit */
.tp-submit {
    width: 100%;
    padding: 15px;
    background: #f0cf4c;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 4px;
    transition: background .15s, transform .1s;
}
.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: 12px;
    font-size: 12px;
    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: 10px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}
.tp-message--ok  { color: #059669; }
.tp-message--err { color: #dc2626; }

@media (max-width: 480px) {
    .tp-modal { padding: 24px 18px 22px; border-radius: 12px; }
    .tp-title { font-size: 19px; }
}
