:root{
  --bg:#bfe3f8;
  --brand:#c4552a;
  --brand-dark:#a8431c;
  --text:#2b2b2b;
  --muted:#8a8f98;
  --line:#d6d9de;
  --white:#fff;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'Poppins',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

.hero{
  max-width:1200px;
  margin:0 auto;
  padding:32px 24px;
  min-height:100vh;
  display:grid;
  grid-template-columns:1.1fr 0.9fr 0.9fr;
  align-items:center;
  gap:24px;
}

/* ---------- Left content ---------- */
.logo{
  font-family:'Great Vibes',cursive;
  font-size:clamp(44px,6vw,64px);
  color:var(--brand);
  line-height:1;
  position:relative;
  display:inline-block;
  margin-bottom:36px;
}
.logo sup{
  font-family:'Poppins',sans-serif;
  font-size:.3em;
  font-weight:600;
  color:#222;
  position:absolute;
  top:-6px;
  right:-34px;
}
.headline{
  color:var(--brand);
  font-weight:500;
  font-size:clamp(20px,2.4vw,28px);
  line-height:1.7;
  margin-bottom:18px;
}
.banner{
  background:var(--brand);
  color:var(--white);
  text-align:center;
  padding:14px 18px;
  font-size:clamp(13px,1.3vw,16px);
  line-height:1.6;
  margin-bottom:22px;
}
.banner .tag{
  background:var(--white);
  color:#1f2a44;
  font-weight:600;
  padding:1px 10px;
  display:inline-block;
  margin:4px 0;
}
.desc{
  font-size:14px;
  color:#333;
  max-width:60ch;
}

/* ---------- Middle image ---------- */
.visual{
  align-self:end;
  display:flex;
  justify-content:center;
}
.visual img{
  width:100%;
  max-width:380px;
  height:auto;
  display:block;
}

/* ---------- Form card ---------- */
.card{
  background:var(--white);
  padding:28px 22px 26px;
  border-radius:2px;
  box-shadow:0 6px 24px rgba(30,60,90,.12);
  width:100%;
  max-width:360px;
  justify-self:end;
}
.card h2{
  font-size:22px;
  font-weight:500;
  margin-bottom:18px;
  color:#1d1d1d;
}
.field{
  position:relative;
  margin-bottom:10px;
}
.field input{
  width:100%;
  border:none;
  border-bottom:1px solid var(--line);
  padding:14px 32px 12px 0;
  font:inherit;
  font-size:13px;
  color:var(--text);
  background:transparent;
  outline:none;
  transition:border-color .2s;
}
.field input::placeholder{color:var(--muted);font-size:12px}
.field input:focus{border-bottom-color:var(--brand)}
.field svg{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  width:18px;height:18px;
  stroke:#666;fill:none;stroke-width:1.6;
  pointer-events:none;
}
.field .err{
  display:none;
  font-size:11px;
  color:#d23;
  margin-top:3px;
}
.field.invalid input{border-bottom-color:#d23}
.field.invalid .err{display:block}

.captcha{
  margin:18px 0 16px;
  transform-origin:0 0;
}
altcha-widget{
  --altcha-max-width:100%;
  --altcha-border-radius:2px;
  --altcha-color-border:var(--line);
  --altcha-color-border-focus:var(--brand);
  --altcha-color-active:var(--brand);
  --altcha-color-text:var(--text);
  font-size:13px;
}
.captcha-err{font-size:11px;color:#d23;display:none;margin-top:-8px;margin-bottom:10px}
.captcha-err.show{display:block}

.btn{
  background:var(--brand);
  color:var(--white);
  border:none;
  padding:11px 22px;
  font:inherit;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:background .2s;
}
.btn:hover{background:var(--brand-dark)}
.btn:focus-visible{outline:3px solid #1f6feb;outline-offset:2px}

.success{
  font-size:13px;
  color:#1b7f3b;
  margin-top:12px;
}
.form-error{
  font-size:13px;
  color:#d23;
  margin-top:12px;
}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .hero{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "content form"
      "visual form";
  }
  .content{grid-area:content}
  .visual{grid-area:visual}
  .card{grid-area:form;align-self:start;justify-self:center}
  .visual img{max-width:300px}
}

@media (max-width:720px){
  .hero{
    grid-template-columns:1fr;
    grid-template-areas:
      "content"
      "form"
      "visual";
    padding:24px 16px;
    min-height:auto;
  }
  .logo{margin-bottom:24px}
  .card{max-width:100%}
  .visual img{max-width:260px}
}

@media (max-width:360px){
  .captcha{transform:scale(.88)}
}
