.twa-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(30, 30, 30, .75);
    font-family: 'Roboto', Arial, sans-serif;
}
.twa-overlay.twa-show { display: flex; }

.twa-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-left: 6px solid #ffcc00;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    animation: twaIn .22s ease-out;
}
@keyframes twaIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .twa-modal { animation: none; } }

.twa-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}
.twa-close:hover { background: #fff3b0; }

.twa-title {
    margin: 0 28px 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}
.twa-sub {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}

.twa-row { display: flex; gap: 14px; }
.twa-field { flex: 1; min-width: 0; margin-bottom: 14px; }
.twa-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}
.twa-field input,
.twa-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.twa-field input:focus,
.twa-field select:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .3);
}
.twa-field .twa-invalid { border-color: #d93025; }

.twa-error {
    min-height: 18px;
    margin: 0 0 10px;
    font-size: 13px;
    color: #d93025;
}

.twa-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #ffcc00;
    color: #222;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.twa-submit:hover { background: #f2c200; }
.twa-submit:focus-visible { outline: 3px solid #333; outline-offset: 2px; }

@media (max-width: 520px) {
    .twa-modal { padding: 24px 18px 20px; }
    .twa-row { flex-direction: column; gap: 0; }
    .twa-title { font-size: 21px; }
}