/* Team Caro · Public Apply Premium V1
   Presentation-only layer for aplicar.html. */

:root:not([data-theme="dark"]){
  --ground:#ebe7de;
  --surface:#f8f5ee;
  --surface-2:#e6dfd4;
  --inset:#f0ebe2;
  --line:rgba(54,44,32,.12);
  --line-soft:rgba(54,44,32,.07);
  --text:#241f19;
  --text-mut:#685f55;
  --text-dim:#92887c;
  --bronze:#9b6c2e;
  --bronze-br:#b48343;
  --btn-text:#fffaf2;
}
body{
  min-height:100svh;
  background:
    radial-gradient(860px 500px at 92% 10%,rgba(158,111,48,.09),transparent 65%),
    linear-gradient(180deg,#efede7,#e8e3da);
}
header.bar{
  padding:16px clamp(20px,4vw,54px);
  border-bottom:1px solid rgba(54,44,32,.09);
  background:rgba(239,236,229,.84);
  backdrop-filter:blur(18px);
}
header .brand{font-size:10.5px;letter-spacing:.30em;color:#3a332a}
header .brand .dot{width:7px;height:7px;background:#a67637;box-shadow:none}
header a{color:#746b60!important;font-size:9.5px!important;letter-spacing:.13em!important}

#formView>.wrap{
  width:min(100% - 40px,1180px);
  max-width:1180px;
  padding:62px 0 90px;
  display:grid;
  grid-template-columns:minmax(300px,.78fr) minmax(520px,1.22fr);
  gap:70px;
  align-items:start;
}
.head{
  position:sticky;
  top:102px;
  overflow:hidden;
  min-height:560px;
  padding:42px 38px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  text-align:left;
  border-radius:25px;
  color:#fff;
  background:#17140f;
  box-shadow:0 38px 88px -54px rgba(40,29,17,.68);
}
.head::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(0deg,rgba(19,16,12,.91) 0%,rgba(19,16,12,.52) 52%,rgba(19,16,12,.10) 100%),
    url('/assets/home/home-detail.webp') 56% 46%/cover no-repeat;
  filter:saturate(.78) contrast(1.03);
}
.head>*{position:relative;z-index:1}
.head .eyebrow{
  color:#dfbd89;
  font-size:9.5px;
  letter-spacing:.23em;
}
.head h1{
  margin-top:14px;
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:clamp(46px,5vw,68px);
  line-height:.94;
  letter-spacing:-.04em;
  text-transform:none;
  color:#fff;
}
.head p{
  max-width:38ch;
  margin:20px 0 0;
  color:rgba(255,255,255,.72);
  font-size:15px;
  line-height:1.65;
}

#applyForm{
  padding:37px 38px 40px;
  border:1px solid rgba(54,44,32,.10);
  border-radius:25px;
  background:rgba(250,248,243,.94);
  box-shadow:0 34px 82px -60px rgba(48,35,22,.46);
}
.fsection{
  margin:0;
  padding:30px 0;
  border:0;
  border-bottom:1px solid rgba(54,44,32,.10);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.fsection:first-child{padding-top:0}
.fsection h3{
  margin-bottom:21px;
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:26px;
  letter-spacing:-.015em;
  text-transform:none;
  color:#2d2720;
}
.ifield{margin-bottom:19px}
.ifield label{
  margin-bottom:7px;
  color:#4b4339;
  font-size:13px;
  font-weight:500;
}
.ifield .req{color:#9c6d31}
.ifield input,.ifield textarea,.ifield select{
  min-height:51px;
  padding:13px 14px;
  border:1px solid rgba(54,44,32,.12);
  border-radius:12px;
  background:#f1ece4;
  color:#2c261f;
  font-size:15px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.ifield textarea{min-height:108px;padding-top:13px}
.ifield input:focus,.ifield textarea:focus,.ifield select:focus{
  border-color:#a57739;
  background:#f6f2ea;
  box-shadow:0 0 0 3px rgba(166,119,57,.09);
}
#applyForm>label{
  margin:24px 0 7px!important;
  padding:15px 16px;
  border-radius:13px;
  background:#f1ece4;
  color:#756b60!important;
  line-height:1.55;
}
#applyForm>label input{accent-color:#9b6c2e}
.submit{
  position:static;
  margin-top:24px;
  padding:0;
  background:none;
}
.submit .btn{
  min-height:56px;
  border-radius:999px;
  background:#99692c;
  border-color:#99692c;
  color:#fffaf2;
  box-shadow:none;
  font-size:13px;
}
.submit .btn:hover{background:#aa7a3c}
.msg{font-size:12px}

.done{
  min-height:100svh;
  padding:28px;
  color:#fff;
  background:
    linear-gradient(0deg,rgba(19,16,12,.91),rgba(19,16,12,.42)),
    url('/assets/home/home-hero.webp') 54% 34%/cover no-repeat;
}
.done::before{
  content:'';
  position:absolute;
  inset:auto;
}
.done .big{font-size:48px;margin-bottom:18px}
.done h1{
  max-width:780px;
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:clamp(46px,7vw,74px);
  letter-spacing:-.04em;
  text-transform:none;
  color:#fff;
}
.done p{
  max-width:48ch;
  margin-top:8px;
  color:rgba(255,255,255,.72);
  font-size:16px;
  line-height:1.7;
}

@media(max-width:900px){
  #formView>.wrap{
    width:min(100% - 28px,760px);
    display:block;
    padding:28px 0 62px;
  }
  .head{
    position:relative;
    top:auto;
    min-height:360px;
    margin-bottom:15px;
    padding:30px 24px;
    border-radius:21px;
  }
  .head h1{font-size:clamp(42px,11vw,58px)}
  #applyForm{padding:27px 22px 30px;border-radius:21px}
  .fsection{padding:26px 0}
}

@media(max-width:520px){
  header.bar{padding:13px 16px}
  #formView>.wrap{width:min(100% - 20px,760px)}
  .head{min-height:330px}
  #applyForm{padding:24px 18px 26px}
  .fsection h3{font-size:23px}
}
