/* v627: Former Resident Visa 151 visual refinement.
   The page now follows the established latest Think Higher visa-page system.
   All rules are scoped to this page only. */

.th-fr151 .th-p835-hero-card{max-width:470px;justify-self:end;width:100%}
.th-fr151 .th-p835-hero-note{max-width:680px}

/* Keep dark shared panels readable without introducing a separate visual language. */
.th-fr151 .th-p835-feature-panel--dark .th-pv-eyebrow{background:#fff1f2;color:#b80e1a;border-color:#ffd6d9}
.th-fr151 .th-p835-feature-panel--dark h2,
.th-fr151 .th-p835-feature-panel--dark h3,
.th-fr151 .th-p835-feature-panel--dark p,
.th-fr151 .th-p835-feature-panel--dark strong,
.th-fr151 .th-p835-feature-panel--dark .th-pv-checklist li{color:#fff!important}
.th-fr151 .th-p835-feature-panel--dark .th-pv-checklist li:before{color:#ef2f33!important}
.th-fr151 .th-p835-feature-panel--dark .th-p835-mini-grid>div{border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.06)}
.th-fr151 .th-p835-feature-panel--dark .th-p835-mini-grid strong{color:#fff!important}
.th-fr151 .th-p835-feature-panel--dark .th-p835-mini-grid span{color:#dbe5f3!important}
.th-fr151 .th-fr151-dark-link{color:#fff!important;font-weight:700;text-decoration:none!important;border-bottom:1px solid rgba(255,255,255,.45)}

/* Small, readable support modules instead of decorative tiles. */
.th-fr151 .th-fr151-review-note{max-width:1030px;margin-top:18px}
.th-fr151 .th-fr151-review-note h3{font-size:18px}
.th-fr151 .th-fr151-review-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.th-fr151 .th-fr151-review-grid span{padding:8px 11px;border:1px solid #f3d7da;border-radius:999px;background:#fff;color:#5b3940;font-size:12px;line-height:1.35}

.th-fr151 .th-fr151-location-table{max-width:920px;margin:0 auto}
.th-fr151 .th-fr151-location-panels{max-width:1030px;margin:18px auto 0}
.th-fr151 .th-fr151-location-panels .th-p835-feature-panel h2{font-size:24px}

.th-fr151 .th-fr151-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1030px;margin:0 auto}
.th-fr151 .th-fr151-doc-grid .th-p835-feature-panel{padding:25px}
.th-fr151 .th-fr151-doc-grid .th-p835-feature-panel h3{margin:0 0 12px;color:var(--p835-ink);font-size:19px}

.th-fr151 .th-fr151-cost-table{margin:20px 0 16px}
.th-fr151 .th-p835-cost-section .th-p835-table-wrap{box-shadow:none}
.th-fr151 .th-fr151-side-label{display:block;margin-bottom:8px;color:#b80e1a;font-family:var(--th-head,"Poppins",sans-serif);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.th-fr151 .th-fr151-cost-amount{display:block;margin:4px 0 13px;color:var(--p835-ink);font-family:var(--th-head,"Poppins",sans-serif);font-size:34px;line-height:1.05;letter-spacing:-.035em}

.th-fr151 .th-fr151-benefit-grid{max-width:1030px;margin:0 auto}
.th-fr151 .th-fr151-rights-panels{max-width:1030px;margin:18px auto 0}
.th-fr151 .th-fr151-rights-panels .th-p835-feature-panel h2{font-size:24px}
.th-fr151 .th-fr151-nz-note{max-width:1030px;margin-top:18px}

.th-fr151 .th-fr151-related-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1180px}
.th-fr151 .th-fr151-related-grid .th-p835-related-card{grid-template-columns:70px 1fr;padding:20px;min-height:150px}
.th-fr151 .th-fr151-related-grid .th-p835-related-code{min-height:68px;font-size:12px}

/* Keep the lead form identical in tone to the latest visa pages. */
.th-fr151 .th-p835-form-section .th-pv-form-copy h2,
.th-fr151 .th-p835-form-section .th-pv-form-copy .th-pv-eyebrow{color:#fff!important}
.th-fr151 .th-p835-form-section .th-pv-form-copy>p{color:#e7eef7!important}

@media(max-width:1100px){
  .th-fr151 .th-p835-hero-card{max-width:760px;justify-self:start}
  .th-fr151 .th-fr151-related-grid{grid-template-columns:1fr}
}
@media(max-width:850px){
  .th-fr151 .th-fr151-doc-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .th-fr151 .th-fr151-review-grid{display:grid;grid-template-columns:1fr}
  .th-fr151 .th-fr151-review-grid span{border-radius:12px}
  .th-fr151 .th-fr151-related-grid .th-p835-related-card{grid-template-columns:62px 1fr;padding:18px}
  .th-fr151 .th-fr151-related-grid .th-p835-related-code{min-height:60px;font-size:10px}
}

/* v628: Cost-section refinement only.
   One clear section heading followed by two aligned information cards. */
.th-fr151 .th-fr151-cost-section{padding:76px 0;background:linear-gradient(135deg,#ae0b19 0%,#cf1423 100%)}
.th-fr151 .th-fr151-cost-head{max-width:820px;margin:0 0 30px}
.th-fr151 .th-fr151-cost-head .th-pv-eyebrow{margin-bottom:14px}
.th-fr151 .th-fr151-cost-head h2{max-width:720px;margin:0 0 12px;color:#fff;font-family:var(--th-head,"Poppins",sans-serif);font-size:clamp(36px,4.2vw,54px);line-height:1.04;letter-spacing:-.04em}
.th-fr151 .th-fr151-cost-head p{max-width:650px;margin:0;color:rgba(255,255,255,.9)!important;font-size:16px!important;line-height:1.6!important}

.th-fr151 .th-fr151-cost-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(340px,.72fr);gap:22px;align-items:stretch}
.th-fr151 .th-fr151-cost-card{display:flex;min-width:0;flex-direction:column;padding:28px;border:1px solid rgba(255,255,255,.65);border-radius:24px;background:#fff;color:var(--p835-ink);box-shadow:0 18px 48px rgba(62,4,11,.14)}
.th-fr151 .th-fr151-cost-card-head{margin-bottom:18px}
.th-fr151 .th-fr151-cost-card-head>span{display:block;margin-bottom:7px;color:#b80e1a;font-family:var(--th-head,"Poppins",sans-serif);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.th-fr151 .th-fr151-cost-card-head h3{margin:0;color:var(--p835-ink);font-family:var(--th-head,"Poppins",sans-serif);font-size:24px;line-height:1.16;letter-spacing:-.025em}

.th-fr151 .th-fr151-cost-card--standard .th-fr151-cost-table{margin:0 0 18px;border:1px solid #e3e8ef;border-radius:16px;overflow:hidden}
.th-fr151 .th-fr151-cost-card--standard .th-p835-table{margin:0}
.th-fr151 .th-fr151-cost-card--standard .th-p835-table thead th{background:#071b36;color:#fff}
.th-fr151 .th-fr151-cost-card--standard .th-p835-table tbody tr:last-child th,
.th-fr151 .th-fr151-cost-card--standard .th-p835-table tbody tr:last-child td{border-bottom:0}
.th-fr151 .th-fr151-cost-note{margin-top:auto;padding:16px 18px;border:1px solid #f1d5d8;border-radius:16px;background:#fff7f7}
.th-fr151 .th-fr151-cost-note strong{display:block;margin-bottom:6px;color:#a90a18;font-family:var(--th-head,"Poppins",sans-serif);font-size:13px}
.th-fr151 .th-fr151-cost-note p{margin:0;color:#5a6678!important;font-size:13px!important;line-height:1.58!important}

.th-fr151 .th-fr151-cost-card--english{position:relative;overflow:hidden}
.th-fr151 .th-fr151-cost-card--english:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#071b36}
.th-fr151 .th-fr151-cost-card--english .th-fr151-cost-amount{display:block;margin:10px 0 18px;color:#071b36;font-family:var(--th-head,"Poppins",sans-serif);font-size:clamp(40px,4vw,56px);font-weight:800;line-height:1;letter-spacing:-.05em}
.th-fr151 .th-fr151-cost-card--english>p{margin:0;color:#506077!important;font-size:14px!important;line-height:1.68!important}
.th-fr151 .th-fr151-cost-nil{margin-top:auto;padding-top:22px}
.th-fr151 .th-fr151-cost-nil>span{display:block;margin-bottom:7px;color:#7a8799;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.th-fr151 .th-fr151-cost-nil>strong{display:block;padding:14px 16px;border-radius:14px;background:#f5f7fa;color:#071b36;font-family:var(--th-head,"Poppins",sans-serif);font-size:15px;line-height:1.35}

.th-fr151 .th-fr151-cost-disclaimer{max-width:760px;margin:20px 0 0;color:rgba(255,255,255,.9)!important;font-size:13px!important;line-height:1.55!important}

@media(max-width:900px){
  .th-fr151 .th-fr151-cost-grid{grid-template-columns:1fr}
  .th-fr151 .th-fr151-cost-card{padding:24px}
  .th-fr151 .th-fr151-cost-card--english .th-fr151-cost-amount{font-size:46px}
}
@media(max-width:600px){
  .th-fr151 .th-fr151-cost-section{padding:58px 0}
  .th-fr151 .th-fr151-cost-head{margin-bottom:22px}
  .th-fr151 .th-fr151-cost-head h2{font-size:34px}
  .th-fr151 .th-fr151-cost-card{padding:20px;border-radius:20px}
  .th-fr151 .th-fr151-cost-card-head h3{font-size:21px}
  .th-fr151 .th-fr151-cost-card--english .th-fr151-cost-amount{font-size:40px}
}
