/* Round 76: Forms & ID photos (regional_forms) - country pages, index, hub sections.
   Uses the site's own colour variables so light/dark themes both work. */
.rf h1 { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 10px; color: var(--text); line-height: 1.2; }
.rf h2 { font-size: 20px; margin: 0 0 12px; }
.rf-hero { background: linear-gradient(135deg, rgba(31,56,100,.07), rgba(46,83,149,.03)); }
.rf-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary, #2E5395); margin: 0; letter-spacing: .02em; }
.rf-flag { font-size: 1.35em; line-height: 1; }
.rf-lead { font-size: 17px; color: var(--text-muted); max-width: 780px; margin: 0 0 12px; line-height: 1.55; }
.rf-trust { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); margin: 4px 0 0; }
.rf-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--text-muted); margin: 0 0 8px; padding: 0; list-style: none; }
.rf-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.rf-crumbs a { color: inherit; text-decoration: none; }
.rf-crumbs a:hover { text-decoration: underline; }

.rf-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rf-country-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rf-country-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,.12); border-color: var(--primary, #2E5395); }
.rf-country-card .rf-cc-head { display: flex; align-items: center; gap: 10px; }
.rf-country-card h3 { margin: 0; font-size: 18px; }
.rf-country-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }
.rf-country-card .rf-cc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-muted); }
.rf-open { font-weight: 600; color: var(--primary, #2E5395); display: inline-flex; align-items: center; gap: 4px; }
[dir="rtl"] .rf-open .icon, [dir="rtl"] .rf-country-card .ic-arrow-right { transform: scaleX(-1); }

.rf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rf-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.rf-card h3 { margin: 0; font-size: 16.5px; line-height: 1.35; overflow-wrap: anywhere; }
.rf-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.rf-card dt { color: var(--text-muted); }
.rf-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rf-card .rf-variant { color: var(--text-muted); font-size: 13px; margin: -4px 0 0; }
.rf-card .rf-note { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; margin: 0; font-style: italic; }
.rf-card .btn { margin-top: auto; justify-content: center; }
.rf-card.rf-active { border-color: var(--primary, #2E5395); box-shadow: 0 0 0 2px rgba(46,83,149,.18); }

.rf-steps { margin: 0; padding-inline-start: 22px; line-height: 1.8; }
.rf-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .rf-grid2 { grid-template-columns: 1fr; } }
.rf-faq { border-bottom: 1px solid var(--border); padding: 10px 0; }
.rf-faq summary { cursor: pointer; font-weight: 600; }
.rf-faq p { margin: 8px 0 0; color: var(--text-muted); line-height: 1.6; }
.rf-also { margin: 0 0 10px; font-size: 14px; color: var(--text-muted); }

/* resizer inside a country page */
.rf-tool select { width: 100%; max-width: 560px; }
.rf-tool .rf-two { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.rf-tool .rf-frame { width: 280px; max-width: 100%; }
.rf-tool .rf-out { flex: 1; min-width: 220px; }
@media (max-width: 480px) { .rf-tool .rf-frame { width: 100%; } }

/* Hub sections (tools_hub_localised.html + hub.html) */
.rf-hub { margin: 4px 0 22px; }
.rf-hub-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 4px; }
.rf-hub-intro { margin: 0 0 12px; color: var(--text-muted); font-size: 15px; }
.rf-hub-country { margin: 14px 0 8px; font-weight: 600; font-size: 16px; }
.rf-hub-country a { color: var(--text); text-decoration: none; }
.rf-hub-country a:hover { text-decoration: underline; }
.rf-hub-n { color: var(--text-muted); font-weight: 400; font-size: 14px; }
.rf-hub-flag { font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.rf-hub-all { margin: 6px 0 22px; font-weight: 600; }
.rf-hub-all a { color: var(--primary, #2e5395); }

/* Round 77: "Most searched" badge, topic chips, quick-tool shortcuts */
.rf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(46,83,149,.12); color: var(--primary, #2E5395); font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.rf-badge-row { margin: 0 0 -4px; }
.rf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.rf-chip:hover { border-color: var(--primary, #2E5395); box-shadow: 0 4px 12px rgba(15,23,42,.1); }
.rf-chip-top { border-color: var(--primary, #2E5395); }
.rf-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rf-quick-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .15s, transform .15s; }
.rf-quick-item:hover { border-color: var(--primary, #2E5395); transform: translateY(-2px); }
.rf-quick-item > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rf-quick-open { color: var(--primary, #2E5395); font-size: 13px; width: 100%; }
@media (max-width: 480px) { .rf-chip { padding: 8px 13px; font-size: 14px; } }
