/**
 * v797: hero-only redesign for Working Holiday 417, Training 407 and Temporary Activity 408.
 * Class names deliberately avoid legacy "hero/grid/layout" selectors that previously widened pages.
 */
.th-v797-mast{
  --v797-red:#e31e24;
  --v797-red-dark:#bd1722;
  --v797-navy:#15243b;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:62px 0 68px;
  background:linear-gradient(125deg,#cf0d1d 0%,#e91c27 56%,#f23d42 100%);
  color:#fff;
}
.th-v797-mast:before{
  content:"";
  position:absolute;
  z-index:-1;
  top:-430px;
  right:-120px;
  width:850px;
  height:850px;
  border-radius:50%;
  background:rgba(255,255,255,.055);
}
.th-v797-mast:after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-185px;
  bottom:-300px;
  width:560px;
  height:560px;
  border:68px solid rgba(255,255,255,.035);
  border-radius:50%;
}
.th-v797-mast *{box-sizing:border-box}
.th-v797-wrap{
  width:calc(100% - 48px)!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.th-v797-columns{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,450px);
  gap:clamp(34px,4vw,56px);
  align-items:center;
}
.th-v797-copy{min-width:0;max-width:690px}
.th-v797-crumb{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:28px;color:rgba(255,255,255,.84);font-size:12px}
.th-v797-crumb a{color:#fff;text-decoration:none}
.th-v797-crumb a:hover{text-decoration:underline}
.th-v797-pill{display:inline-flex;align-items:center;min-height:32px;padding:7px 14px;margin-bottom:18px;border:1px solid rgba(255,255,255,.38);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.th-v797-mast h1{max-width:690px;margin:0 0 18px;color:#fff;font-size:clamp(43px,4.6vw,66px)!important;line-height:1.02!important;letter-spacing:-.055em}
.th-v797-mast--visa408 h1{font-size:clamp(39px,4.05vw,58px)!important}
.th-v797-subtitle{max-width:620px;margin:0 0 18px;color:#ffedef!important;font-size:18px;font-weight:850;line-height:1.45}
.th-v797-description{max-width:680px}
.th-v797-description p{margin:0 0 10px;color:#fff!important;font-size:16px;line-height:1.72}
.th-v797-description p:last-child{margin-bottom:0}
.th-v797-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.th-v797-button{display:inline-flex;align-items:center;justify-content:center;min-height:51px;padding:12px 22px;border:1px solid transparent;border-radius:13px;font-size:13.5px;font-weight:850;text-align:center;text-decoration:none!important;transition:transform .2s ease,background .2s ease}
.th-v797-button:hover{transform:translateY(-2px)}
.th-v797-button--solid{background:#fff;color:#c20f1c;box-shadow:0 11px 26px rgba(90,0,10,.17)}
.th-v797-button--solid:hover{background:#fff5f5;color:#a80d18}
.th-v797-button--outline{border-color:rgba(255,255,255,.48);background:rgba(255,255,255,.08);color:#fff}
.th-v797-button--outline:hover{background:rgba(255,255,255,.18);color:#fff}

.th-v797-enquiry{position:relative;min-width:0;width:100%!important;max-width:450px!important;justify-self:end;overflow:hidden;scroll-margin-top:110px;border:1px solid rgba(255,255,255,.72);border-radius:24px;background:#fff;color:var(--v797-navy);box-shadow:0 26px 70px rgba(82,0,12,.22)}
.th-v797-enquiry:before{content:"";display:block;height:4px;background:linear-gradient(90deg,#b41120,#ed2028,#ff8a8e)}
.th-v797-form{margin:0!important;padding:18px 20px 17px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.th-v797-form-title{margin:0 0 11px;color:var(--v797-navy);font-size:15px;font-weight:900;line-height:1.35}
.th-v797-form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.th-v797-form .th-field{min-width:0;margin-bottom:9px}
.th-v797-form .th-field label{display:block;margin:0 0 4px;color:#263247;font-size:11px;font-weight:800;line-height:1.3}
.th-v797-form .th-input,.th-v797-form .th-select,.th-v797-form .th-textarea{width:100%;min-width:0;min-height:43px;margin:0;padding:9px 11px;border:1px solid #dbe2eb;border-radius:10px;background:#fbfcfe;color:var(--v797-navy);font-size:12.5px;line-height:1.4}
.th-v797-form .th-input::placeholder,.th-v797-form .th-textarea::placeholder{color:#8b95a5;opacity:1}
.th-v797-form .th-input:focus,.th-v797-form .th-select:focus,.th-v797-form .th-textarea:focus{border-color:#da2734;background:#fff;box-shadow:0 0 0 3px rgba(227,30,36,.12);outline:0}
.th-v797-form .th-phone{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:0!important;width:100%!important;min-width:0!important}
.th-v797-form .th-phone__code{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:8px 5px 8px 8px!important;border-radius:10px 0 0 10px!important;border-right:0!important;font-size:11px!important;text-overflow:ellipsis!important}
.th-v797-form .th-phone__num{width:100%!important;min-width:0!important;margin:0!important;border-radius:0 10px 10px 0!important;border-left:1px solid #dbe2eb!important}
.th-v797-form .th-textarea{height:55px;min-height:55px;resize:vertical}
.th-v797-form .th-dynamic-security{margin:5px 0 10px!important;padding:9px 10px!important;border-radius:12px!important;background:#f6f8fb!important;box-shadow:none!important}
.th-v797-form .th-dynamic-security__head{display:none!important}
.th-v797-form .th-dynamic-security__body{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(132px,1.15fr)!important;gap:7px 12px!important;align-items:center!important}
.th-v797-form .th-dynamic-security__label{font-size:12px!important}
.th-v797-form .th-dynamic-security__answer-row{width:100%!important;max-width:none!important}
.th-v797-form .th-dynamic-security__answer-row input{height:42px!important}
.th-v797-form .th-dynamic-security__refresh{width:42px!important;height:42px!important;flex-basis:42px!important}
.th-v797-form .th-dynamic-security__message{display:none;grid-column:1/-1;font-size:10.5px!important;line-height:1.35!important}
.th-v797-form .th-dynamic-security.has-error .th-dynamic-security__message,.th-v797-form .th-dynamic-security.is-checking .th-dynamic-security__message,.th-v797-form .th-dynamic-security.is-verified .th-dynamic-security__message{display:block}
.th-v797-submit{display:flex!important;width:100%!important;min-height:45px!important;margin-top:1px!important;border:0!important;border-radius:11px!important;background:var(--v797-red)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;box-shadow:0 9px 20px rgba(227,30,36,.16)!important}
.th-v797-submit:hover{background:var(--v797-red-dark)!important}
.th-v797-form .th-form-status:not(:empty){margin-top:9px}

@media(max-width:1100px){
  .th-v797-columns{grid-template-columns:1fr;gap:33px}
  .th-v797-copy{max-width:800px}
  .th-v797-enquiry{max-width:640px!important;justify-self:start}
}
@media(max-width:690px){
  .th-v797-wrap{width:calc(100% - 32px)!important}
  .th-v797-mast{padding:48px 0 50px}
  .th-v797-crumb{margin-bottom:23px}
  body .th-v797-mast h1{font-size:clamp(36px,10vw,49px)!important;line-height:1.04!important}
  .th-v797-subtitle{font-size:16px}
  .th-v797-description p{font-size:15px}
  .th-v797-actions{display:grid;grid-template-columns:1fr}
  .th-v797-button{width:100%}
}
@media(max-width:620px){
  .th-v797-enquiry{border-radius:20px}
  .th-v797-form{padding:17px 16px 16px!important}
  .th-v797-form-fields{grid-template-columns:1fr}
  .th-v797-form .th-phone{grid-template-columns:104px minmax(0,1fr)!important}
  .th-v797-form .th-dynamic-security__body{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){.th-v797-button{transition:none}}
