.tmopt-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tmopt-gate-overlay.tmopt-gate-open { display: flex; }

.tmopt-gate-box {
    background: #fff;
    border-radius: 14px;
    max-width: 400px;
    width: 100%;
    padding: 30px 26px 26px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    text-align: center;
    font-family: inherit;
    box-sizing: border-box;
}

.tmopt-gate-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e9fbf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.tmopt-gate-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    color: #1a1a1a;
    padding: 0 14px;
}
.tmopt-gate-box p {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: #666;
    line-height: 1.55;
}

.tmopt-gate-field { margin-bottom: 14px; text-align: left; }
.tmopt-gate-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #888;
    margin-bottom: 5px;
}

.tmopt-gate-field select {
    width: 100%;
    height: 46px;
    padding: 0 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 46px;
    background: #fff;
    color: #222;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-appearance: menulist;
    appearance: menulist;
}
.tmopt-gate-field select:focus,
.tmopt-gate-field input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37,211,102,.15);
}
.tmopt-gate-row { display: flex; align-items: flex-end; gap: 8px; }
.tmopt-gate-row .tmopt-gate-field:first-child { flex: 0 0 108px; }
.tmopt-gate-row .tmopt-gate-field:last-child { flex: 1 1 auto; }

.tmopt-gate-field input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.tmopt-gate-error {
    color: #c0392b;
    background: #fdecea;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    margin: -4px 0 14px;
    text-align: left;
}

.tmopt-gate-submit {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    letter-spacing: .01em;
}
.tmopt-gate-submit:hover { background: #1ea952; }
.tmopt-gate-submit:active { transform: scale(.98); }
.tmopt-gate-submit:disabled { opacity: .6; cursor: default; transform: none; }

.tmopt-gate-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f2f2f2;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.tmopt-gate-close:hover { background: #e6e6e6; color: #333; }

@media (max-width: 420px) {
    .tmopt-gate-box { padding: 26px 20px 22px; }
    .tmopt-gate-row { flex-direction: column; gap: 14px; }
    .tmopt-gate-row .tmopt-gate-field:first-child { flex: 1 1 auto; }
}
