/* Service page additions; typography, container and buttons come from main.css. */
.rvp-hero {
  padding-block: clamp(144px, 15vw, 196px) clamp(64px, 8vw, 100px);
  background: radial-gradient(ellipse at 90% 10%, rgba(39, 176, 116, .09), transparent 60%), var(--bg);
}
.rvp-hero .hero-title { margin-top: 0; }
.rvp-hero-copy { max-width: 800px; color: var(--fg-2); }
.rvp-hero-copy p { margin: 0 0 20px; }
.rvp-hero .hero-cta { margin-top: 32px !important; }
.rvp-hero-note { max-width: 800px; margin: 24px 0 0; font-size: 13px; color: var(--fg-2); }
.rvp-page a:not(.btn) { color: inherit; text-decoration: underline; text-underline-offset: .2em; transition: color .25s; }
.rvp-page a:not(.btn):hover,
.rvp-page a:not(.btn):focus-visible { color: var(--accent); }
.rvp-page [id] { scroll-margin-top: 104px; }
@media (max-width: 640px) {
  .rvp-hero { padding-top: 128px; }
  .rvp-hero .hero-cta { flex-direction: column; align-items: stretch; }
  .rvp-hero .btn { width: 100%; padding-inline: 18px; text-align: center; }
}

/* Block 2: two audiences and a shared service boundary below both columns. */
.rvp-audience { background: var(--bg-soft); }
.rvp-audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rvp-audience-card { padding: 28px 30px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rvp-audience-card .svc-name { margin-top: 0; }
.rvp-audience-card p { margin: 0; color: var(--fg-2); }
.rvp-audience-note { margin: 28px 0 0; padding: 20px 24px; border-inline-start: 2px solid var(--accent); background: rgba(39, 176, 116, .06); color: var(--fg); }
@media (max-width: 768px) {
  .rvp-audience-grid { grid-template-columns: minmax(0, 1fr); }
  .rvp-audience-card { padding: 24px 26px 26px; }
  .rvp-audience-note { padding: 18px 20px; }
}

/* Block 3 reuses the light Directions section and its ruled list. */
.rvp-included { --fg-2: var(--paper-mut); }
.rvp-included-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.rvp-included-list li { padding: 24px 4px; }
.rvp-included-name { margin: 0 0 10px; font-family: var(--sans); font-size: clamp(20px, 2.2vw, 25px); font-weight: 600; line-height: 1.3; color: var(--accent-2); }
.rvp-included-list p { margin: 0; color: var(--paper-ink); }
.rvp-included-note { max-width: 900px; margin: 32px 0 0; color: var(--paper-mut); }
@media (max-width: 768px) {
  .rvp-included-list { grid-template-columns: minmax(0, 1fr); }
}

/* Block 4 uses the existing cost form from the shared footer. */
.rvp-cost-copy { max-width: 900px; color: var(--fg-2); }
.rvp-cost-copy p { margin: 0 0 24px; }
.rvp-cost-copy strong { color: var(--fg); }
.rvp-cost .btn { margin-top: 8px; }
@media (max-width: 640px) {
  .rvp-cost .btn { width: 100%; padding-inline: 18px; text-align: center; }
}

/* Block 5: documents from each party, followed by shared preparation details. */
.rvp-documents { background: var(--bg-soft); }
.rvp-documents .section-sub p { margin: 0; }
.rvp-documents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.rvp-documents-column { min-width: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.rvp-documents .svc-name { margin-top: 0; }
.rvp-documents-column p, .rvp-documents-column li, .rvp-documents-shared p { color: var(--fg-2); }
.rvp-documents-column p, .rvp-documents-shared p { margin: 0 0 20px; }
.rvp-documents-column ul { padding-inline-start: 22px; margin: 0 0 24px; }
.rvp-documents-column li { padding-inline-start: 4px; margin-bottom: 12px; }
.rvp-documents-column li::marker { color: var(--accent); }
.rvp-documents-shared { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 36px; }
.rvp-documents .btn { margin-top: 12px; }
@media (max-width: 768px) {
  .rvp-documents-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rvp-documents .btn { width: 100%; padding-inline: 18px; text-align: center; }
}

/* Requested light backgrounds for the scope and pricing sections. */
.rvp-included { background: #f4f2ec; }
.rvp-cost {
  --fg: var(--paper-ink);
  --fg-2: var(--paper-mut);
  background: #eae6dc;
  color: var(--paper-ink);
}

/* Block 6: equal cards, three columns and a left-aligned second row. */
.rvp-workflow-grid { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.rvp-workflow .svc-name { margin-top: 0; }
@media (max-width: 768px) {
  .rvp-workflow-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Submission details belong to the workflow section. */
.rvp-submission { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--paper-line); }
.rvp-submission p { max-width: 1000px; margin: 0 0 24px; color: var(--paper-mut); }
.rvp-submission .svc-name { max-width: 900px; }
.rvp-submission .btn { margin-top: 8px; }
@media (max-width: 640px) {
  .rvp-submission { margin-top: 32px; padding-top: 32px; }
  .rvp-submission .btn { width: 100%; padding-inline: 18px; text-align: center; }
}

/* Timing: each heading has the green rule used by the home Directions columns. */
.rvp-timing { background: var(--bg-soft); }
.rvp-timing-list { display: grid; gap: 32px; }
.rvp-timing-item .dir-col-title { color: var(--fg); border-bottom: 2px solid #00B050; padding-bottom: 12px; margin-bottom: 20px; }
.rvp-timing-item p { margin: 0; color: var(--fg-2); }

/* Agreement and office support: shared site typography on a light background. */
.rvp-agreement { --fg: var(--paper-ink); --fg-2: var(--paper-mut); background: #f4f2ec; color: var(--paper-ink); }
.rvp-agreement-copy { max-width: 900px; color: var(--paper-mut); }
.rvp-agreement-copy p { margin: 0 0 24px; }
.rvp-agreement-copy p:last-child { margin-bottom: 0; }

/* Renewal and employer change. */
.rvp-renewal { background: var(--bg-soft); }
.rvp-renewal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.rvp-renewal-item { border-top: 2px solid var(--accent); padding-top: 24px; }
.rvp-renewal-item .svc-name { margin-top: 0; }
.rvp-renewal-item p { margin: 0; color: var(--fg-2); }
.rvp-renewal .btn { margin-top: 32px; }
@media (max-width: 768px) {
  .rvp-renewal-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rvp-renewal .btn { width: 100%; padding-inline: 18px; text-align: center; }
}

/* Native accessible FAQ; no duplicate form or additional script. */
.rvp-faq { --fg: var(--paper-ink); --fg-2: var(--paper-mut); background: #f4f2ec; color: var(--paper-ink); }
.rvp-faq-item { border-bottom: 1px solid var(--paper-line); }
.rvp-faq-item:first-child { border-top: 1px solid var(--paper-line); }
.rvp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.rvp-faq-item summary::-webkit-details-marker { display: none; }
.rvp-faq-item summary h3 { margin: 0; font: 600 clamp(18px, 2vw, 23px)/1.4 var(--sans); color: var(--paper-ink); }
.rvp-faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.rvp-faq-toggle { width: 20px; height: 20px; position: relative; flex: none; color: var(--accent-2); }
.rvp-faq-toggle::before, .rvp-faq-toggle::after { content: ''; position: absolute; background: currentColor; }
.rvp-faq-toggle::before { width: 20px; height: 2px; top: 9px; left: 0; }
.rvp-faq-toggle::after { width: 2px; height: 20px; top: 0; left: 9px; }
.rvp-faq-item[open] .rvp-faq-toggle::after { display: none; }
.rvp-faq-answer { max-width: 1000px; padding-bottom: 26px; color: var(--paper-mut); }
.rvp-faq-answer p { margin: 0 0 18px; }
.rvp-faq-answer p:last-child { margin-bottom: 0; }

/* Application anchor and introduction; office contacts will be added separately. */
.rvp-application { background: var(--bg-soft); }
.rvp-application #zayavka { display: block; }
.rvp-application-intro { max-width: 900px; margin: 0 0 28px; color: var(--fg-2); }
@media (max-width: 640px) {
  .rvp-application .btn { width: 100%; padding-inline: 18px; text-align: center; }
}

/* Reuse the homepage form directly inside the application block. */
.rvp-application .lead-form { max-width: 760px; }

/* Application: text left and homepage form right on desktop. */
.rvp-application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.rvp-application-copy, .rvp-application-form { min-width: 0; }
.rvp-application-copy .section-head { margin-bottom: 28px; }
.rvp-application-intro { margin-bottom: 0; }
.rvp-application-form .lead-form { max-width: none; width: 100%; margin: 0; }
@media (max-width: 900px) {
  .rvp-application-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Both legal links inherit consent text color and retain visible underlines. */
.rvp-application .field-checkbox label a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.rvp-application .field-checkbox label a:hover,
.rvp-application .field-checkbox label a:focus-visible { color: var(--accent); }

/* Contact and WeChat sections use the same components as the homepage. */
.rvp-page .contacts-section a.contact-line { color: inherit; }
.rvp-page .contacts-section a.contact-line:hover,
.rvp-page .contacts-section a.contact-line:focus-visible { color: var(--accent); }
.rvp-page .sas-wechat-card { text-decoration: none; }

/* Contacts: no underlines on phone numbers, text or QR cards. */
.rvp-page #contacts a, .rvp-page #contacts a:hover, .rvp-page #contacts a:focus-visible { text-decoration: none; }

/* Work page: match the study and residence page breadcrumbs. */
.rvp-breadcrumbs { margin-bottom: 28px; color: var(--fg-2); font-size: 13px; }
.rvp-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rvp-breadcrumbs li + li::before { content: '→'; margin-inline-end: 10px; }
[dir="rtl"] .rvp-breadcrumbs li + li::before { content: '←'; }
[dir="rtl"] .rvp-application input[type="tel"] { direction: ltr; text-align: right; }

/* Page-specific overrides include the header, footer and modal links. */
body.sas-rvp-work-page .eyebrow,
body.sas-rvp-work-page .hero-eyebrow { color: var(--accent) !important; }
body.sas-rvp-work-page a:hover,
body.sas-rvp-work-page a:focus-visible { color: var(--accent) !important; }
/* Keep green link text readable on primary action hover. */
body.sas-rvp-work-page a.btn-primary:hover,
body.sas-rvp-work-page a.btn-primary:focus-visible { background: var(--bg); border-color: var(--accent); }
