.rtp-page {
    --rtp-primary: #2c5cf0;
    --rtp-primary-dark: #1e46c9;
    --rtp-green: #1a9e5c;
    --rtp-amber: #c98a1a;
    --rtp-red: #c9391a;
    --rtp-border: #e3e6ec;
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1c1f26;
}

.rtp-hero {
    text-align: center;
    padding: 40px 20px 32px;
    background: linear-gradient(135deg, #2c5cf0 0%, #6a3cf0 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 28px;
}
.rtp-hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #fff;
}
.rtp-hero p {
    margin: 0 auto;
    font-size: 16px;
    opacity: 0.92;
    max-width: 560px;
}

.rtp-page-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 22px;
    align-items: start;
}
@media (max-width: 720px) {
    .rtp-page-grid {
        grid-template-columns: 1fr;
    }
}

.rtp-card {
    background: #fff;
    border: 1px solid var(--rtp-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(20, 20, 40, 0.04);
}
.rtp-card h2 {
    margin-top: 0;
    font-size: 18px;
}

.rtp-field {
    margin-bottom: 16px;
}
.rtp-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #444;
}
.rtp-field input[type="text"],
.rtp-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rtp-border);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}
.rtp-field input[type="text"]:focus,
.rtp-field select:focus {
    outline: none;
    border-color: var(--rtp-primary);
    box-shadow: 0 0 0 3px rgba(44, 92, 240, 0.12);
}

.rtp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .rtp-row {
        grid-template-columns: 1fr;
    }
}

.rtp-radio-group {
    display: flex;
    gap: 18px;
}
.rtp-radio {
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rtp-public-submit {
    width: 100%;
    padding: 12px 18px;
    background: var(--rtp-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s ease;
}
.rtp-public-submit:hover {
    background: var(--rtp-primary-dark);
}
.rtp-public-submit:disabled {
    opacity: 0.75;
    cursor: default;
}

.rtp-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rtp-spin 0.7s linear infinite;
}
.rtp-public-submit.rtp-loading .rtp-spinner {
    display: inline-block;
}
@keyframes rtp-spin {
    to { transform: rotate(360deg); }
}

.rtp-result {
    margin-top: 18px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.rtp-result a {
    word-break: break-all;
}
.rtp-result .rtp-position-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 20px;
    padding: 2px 10px;
    border-radius: 6px;
    margin: 0 2px;
}
.rtp-result.rtp-good {
    background: #eaf8f0;
    border: 1px solid #bfe8d0;
}
.rtp-result.rtp-good .rtp-position-badge {
    background: var(--rtp-green);
    color: #fff;
}
.rtp-result.rtp-ok {
    background: #fbf3e4;
    border: 1px solid #ecd8a7;
}
.rtp-result.rtp-ok .rtp-position-badge {
    background: var(--rtp-amber);
    color: #fff;
}
.rtp-result.rtp-none {
    background: #fbeae4;
    border: 1px solid #f0c3b0;
    color: #7a3218;
}
.rtp-result.rtp-error {
    background: #fdeaea;
    border: 1px solid #f3b6b6;
    color: #7a1c1c;
}

.rtp-info-card ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.rtp-info-card li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.rtp-note {
    font-size: 13px;
    color: #666;
    border-top: 1px solid var(--rtp-border);
    padding-top: 14px;
    margin-bottom: 0;
}
