/* RST Training – Public Form Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.rst-public-page {
    background: #f0f3fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1a1a2e;
    min-height: 100vh;
}

.rst-public-wrapper { max-width: 740px; margin: 0 auto; padding: 0 16px 60px; }

/* Header */
.rst-pub-header {
    background: #0a1628;
    padding: 16px 24px;
    display: flex; align-items: center;
    margin: 0 -16px 0; /* full-width */
}
.rst-pub-logo { display: flex; align-items: center; gap: 12px; }
.rst-pub-logo img { height: 36px; }
.rst-pub-logo span { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.3px; }

/* Hero */
.rst-pub-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6b 55%, #c0392b 100%);
    padding: 48px 36px 40px;
    border-radius: 0 0 20px 20px;
    margin: 0 -16px 0;
    color: #fff;
    text-align: center;
}
.rst-pub-badge {
    display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
    padding: 5px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px;
}
.rst-pub-hero h1 { font-size: clamp(22px, 5vw, 34px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }

.rst-pub-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.rst-pub-meta-item {
    background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 20px; font-size: 13px;
}
.rst-pub-desc { font-size: 15px; opacity: .9; max-width: 520px; margin: 0 auto; line-height: 1.6; }

/* Form card */
.rst-pub-form-wrap {
    background: #fff; border-radius: 16px; padding: 36px;
    margin-top: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.rst-pub-form-title { font-size: 20px; font-weight: 800; color: #0a1628; margin-bottom: 6px; }
.rst-pub-form-sub { font-size: 14px; color: #5a6a8a; margin-bottom: 28px; }
.rst-pub-form-sub .req { color: #c0392b; font-weight: 700; }

/* Grid */
.rst-pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.rst-pub-field { display: flex; flex-direction: column; gap: 6px; }
.rst-pub-field--full { grid-column: 1 / -1; }

.rst-pub-field label { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.rst-pub-field .req { color: #c0392b; }

.rst-pub-field input,
.rst-pub-field textarea {
    padding: 11px 14px; border: 1.5px solid #dde3f0; border-radius: 8px;
    font-size: 14px; color: #1a1a2e; background: #fafbff; transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}
.rst-pub-field input:focus,
.rst-pub-field textarea:focus {
    outline: none; border-color: #1a3a6b; box-shadow: 0 0 0 3px rgba(26,58,107,.12);
}
.rst-pub-field input.error { border-color: #c0392b; }
.rst-pub-field textarea { resize: vertical; min-height: 80px; }

/* Error */
.rst-pub-error {
    margin: 16px 0; padding: 12px 16px; background: #fdf0ee; border: 1px solid #f5c6c2;
    border-radius: 8px; color: #c0392b; font-size: 14px;
}

/* Submit */
.rst-pub-submit-wrap { margin-top: 24px; text-align: center; }
.rst-pub-submit-wrap button {
    background: #c0392b; color: #fff; border: none; padding: 14px 48px;
    border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer;
    width: 100%; max-width: 320px; transition: background .2s, transform .1s;
    letter-spacing: -.2px;
}
.rst-pub-submit-wrap button:hover:not(:disabled) { background: #a93226; transform: translateY(-1px); }
.rst-pub-submit-wrap button:disabled { opacity: .6; cursor: not-allowed; }
.rst-pub-privacy { font-size: 11px; color: #8a9ab8; margin-top: 12px; line-height: 1.5; }

/* Notices */
.rst-pub-notice {
    text-align: center; padding: 40px 28px; border-radius: 12px; margin-bottom: 12px;
}
.rst-pub-notice span { font-size: 48px; display: block; margin-bottom: 16px; }
.rst-pub-notice h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.rst-pub-notice p { font-size: 15px; color: #5a6a8a; }

.rst-pub-notice--full { background: #fdf0ee; border: 1px solid #f5c6c2; }
.rst-pub-notice--full h2 { color: #c0392b; }
.rst-pub-notice--success { background: #eef9f0; border: 1px solid #b7e4c7; }
.rst-pub-notice--success h2 { color: #1e7e34; }

.rst-pub-btn {
    display: inline-block; background: #c0392b; color: #fff; padding: 12px 28px;
    border-radius: 8px; font-weight: 700; text-decoration: none; margin-top: 16px; font-size: 14px;
}

/* Footer */
.rst-pub-footer {
    text-align: center; margin-top: 36px; padding-top: 24px;
    border-top: 1px solid #dde3f0; color: #8a9ab8; font-size: 13px;
    line-height: 1.8;
}
.rst-pub-footer a { color: #8a9ab8; }

@media (max-width: 560px) {
    .rst-pub-grid { grid-template-columns: 1fr; }
    .rst-pub-hero { padding: 32px 20px 28px; }
    .rst-pub-form-wrap { padding: 24px 20px; }
}
