:root {
    --trl-bg: #021b37;
    --trl-panel: #052b52;
    --trl-panel2: #073761;
    --trl-border: rgba(137,181,225,.38);
    --trl-text: #fff;
    --trl-muted: #b9c9da;
    --trl-blue: #1478ff;
    --trl-blue2: #0c5fd8;
    --trl-red: #d92b35;
}

#tenor-rescue-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    background: rgba(0,8,22,.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#tenor-rescue-form-overlay.trl-open {
    display: flex;
}

.trl-shell {
    width: min(100%,520px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
    color: var(--trl-text);
    background:
        radial-gradient(circle at 70% 0,rgba(33,102,190,.20),transparent 34%),
        linear-gradient(180deg,#07345f,var(--trl-bg));
    border: 1px solid var(--trl-border);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,.60);
    font-family: Arial,Helvetica,sans-serif;
    -webkit-overflow-scrolling: touch;
}

.trl-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 12px 16px;
    background: rgba(3,32,63,.97);
    border-bottom: 1px solid var(--trl-border);
}

.trl-logo {
    width: 34px;
    height: 39px;
    flex: 0 0 auto;
}

.trl-title {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
}

.trl-private {
    display: block;
    margin-top: 3px;
    color: var(--trl-muted);
    font-size: 11px;
    font-weight: 500;
}

.trl-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--trl-border);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.05);
    font-size: 23px;
}

.trl-body {
    padding: 17px;
}

.trl-progress {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.trl-dot {
    width: 13px;
    height: 13px;
    border: 1px solid #4677a6;
    border-radius: 50%;
    background: #0a365f;
}

.trl-dot.on {
    border-color: var(--trl-blue);
    background: var(--trl-blue);
}

.trl-line {
    height: 2px;
    flex: 1;
    background: #365f86;
}

.trl-line.on {
    background: var(--trl-blue);
}

.trl-count {
    margin-left: 12px;
    color: var(--trl-muted);
    font-size: 12px;
    white-space: nowrap;
}

.trl-question {
    margin: 0 0 8px;
    font-size: clamp(21px,5.5vw,27px);
    line-height: 1.16;
}

.trl-guidance {
    margin: 0 0 16px;
    color: var(--trl-muted);
    font-size: 13px;
    line-height: 1.42;
}

.trl-options {
    display: grid;
    gap: 10px;
}

.trl-option {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--trl-border);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(180deg,var(--trl-panel2),var(--trl-panel));
    text-align: left;
    font-size: 15px;
    font-weight: 700;
}

.trl-option.primary {
    border-color: #4b9aff;
    background: linear-gradient(180deg,var(--trl-blue),var(--trl-blue2));
}

.trl-option.danger {
    border-color: #ff6067;
    background: linear-gradient(180deg,#e83a43,#c51f29);
}

.trl-icon {
    width: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    font-size: 27px;
}

.trl-write {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(137,181,225,.22);
}

.trl-label {
    display: block;
    margin-bottom: 7px;
    color: var(--trl-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.trl-input {
    width: 100%;
    min-height: 94px;
    padding: 13px;
    resize: vertical;
    border: 1px solid #4f7ca8;
    border-radius: 10px;
    outline: 0;
    color: #fff;
    background: #031d39;
    font: inherit;
}

.trl-submit {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 10px;
    margin-top: 11px;
}

.trl-btn {
    min-height: 49px;
    border: 1px solid #517ba4;
    border-radius: 9px;
    color: #fff;
    background: #062a4d;
    font-weight: 800;
}

.trl-btn.send {
    border-color: #4194ff;
    background: linear-gradient(180deg,var(--trl-blue),var(--trl-blue2));
}

.trl-summary {
    white-space: pre-wrap;
    padding: 13px;
    border: 1px solid var(--trl-border);
    border-radius: 11px;
    color: #eef6ff;
    background: #031d39;
    font-size: 13px;
    line-height: 1.42;
}

.trl-share-title {
    margin: 18px 0 5px;
    text-align: center;
    font-size: 19px;
}

.trl-share-note {
    margin: 0 0 13px;
    color: var(--trl-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.trl-contact-list {
    display: grid;
    gap: 7px;
    margin-bottom: 11px;
}

.trl-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 53px;
    padding: 8px 10px;
    border: 1px solid var(--trl-border);
    border-radius: 10px;
    background: #05294b;
}

.trl-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1765b3;
    font-weight: 800;
}

.trl-contact-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}

.trl-contact-number {
    display: block;
    margin-top: 2px;
    color: var(--trl-muted);
    font-size: 11px;
    font-weight: 400;
}

.trl-share-actions {
    display: grid;
    gap: 9px;
}

.trl-share {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--trl-border);
    border-radius: 11px;
    color: #fff;
    background: #05294b;
    text-align: left;
    font-weight: 800;
}

.trl-share.sms {
    border-color: #4a9eff;
    background: linear-gradient(180deg,#1678ff,#0e5fce);
}

.trl-share.wa {
    border-color: #52dc7a;
    background: linear-gradient(180deg,#2cc962,#20994b);
}

.trl-share small {
    display: block;
    margin-top: 3px;
    opacity: .86;
    font-size: 10px;
    font-weight: 500;
}

.trl-warning {
    padding: 10px 11px;
    margin-top: 11px;
    border: 1px solid rgba(255,190,66,.45);
    border-radius: 9px;
    color: #ffdf9b;
    background: rgba(115,72,0,.22);
    font-size: 11px;
    line-height: 1.4;
}

@media (min-width:600px) {
    #tenor-rescue-form-overlay {
        align-items: center;
    }
}
