/* Amigos team page 2027. Same look as amigossurf.com/spain and the booking page: white, navy veil on photos, DM Sans, light only. */
:root{
  --bg:#fff; --ink:#101010; --tile:#f2f4f7; --navy:#1e2b45; --navy2:#485166; --coral:#e2765a; --teal:#2c8c99; --gold:#a08246;
  --ok:#dff2e6; --okink:#0f5f3a; --coraltint:#f6e0d6; --coralink:#8a2b1a; --mute:rgba(16,16,16,.6); --line:rgba(16,16,16,.13);
  --blue:#0071e3; --blueh:#0077ed; --sans:'DM Sans',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  --gut:max(20px,env(safe-area-inset-left,0px)); color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
a{color:inherit}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.wrap{max-width:1180px;margin:0 auto;padding-inline:var(--gut)}
.lab{font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
h1,h2,h3{letter-spacing:-.035em;line-height:1.05;margin:0}
h2{font-size:clamp(28px,3.4vw,40px);font-weight:800}
h3{font-size:19px;font-weight:700;letter-spacing:-.02em}
p{margin:0}

.top{height:60px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.top a.back{font-size:14px;font-weight:600;text-decoration:none;color:var(--navy2)}
.top .logo{justify-self:center;line-height:0}
.top .logo img{width:100px;display:block}
.top .mail{justify-self:end;font-size:14px;font-weight:600;color:var(--navy2);text-decoration:none}

.hero{position:relative;border-radius:28px;overflow:hidden;background:var(--navy);color:#fff;min-height:min(74vh,640px);display:flex;align-items:flex-end;isolation:isolate}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(30,43,69,.08) 0%,rgba(30,43,69,.5) 34%,rgba(30,43,69,.86) 62%,rgba(30,43,69,.97) 100%)}
.hero .in{padding:clamp(22px,4vw,44px);display:flex;flex-direction:column;gap:14px;max-width:820px}
.hero .lab{color:rgba(255,255,255,.82)}
.hero h1{font-size:clamp(42px,6.6vw,84px);font-weight:800;letter-spacing:-.055em;line-height:.95}
.hero p{font-size:clamp(16px,1.5vw,18.5px);color:rgba(255,255,255,.92);max-width:56ch}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{background:rgba(255,255,255,.16);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.28);border-radius:100vw;padding:7px 14px;font-size:13.5px;font-weight:600;color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--blue);color:#fff;border:0;border-radius:100vw;padding:14px 26px;font-size:16px;font-weight:700;text-decoration:none;min-height:50px}
.btn:hover{background:var(--blueh)}
.btn.ghost{background:var(--tile);color:var(--ink)}
.btn.ghost:hover{background:#e7eaef}
.btn[disabled]{opacity:.45;cursor:not-allowed}

section.block{padding-block:clamp(44px,7vw,84px)}
.head{display:flex;flex-direction:column;gap:10px;margin-bottom:28px;max-width:720px}
.head p{color:var(--mute);font-size:17px}

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.step{background:var(--tile);border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:8px}
.step b{font-size:13px;color:var(--gold);letter-spacing:.12em}
.step p{color:var(--mute);font-size:15px}

.group{display:grid;grid-template-columns:260px minmax(0,1fr);gap:8px 40px;padding-block:28px;border-top:1px solid var(--line)}
.group:last-child{border-bottom:1px solid var(--line)}
.group .gh{display:flex;flex-direction:column;gap:6px;padding-top:14px}
.rows{margin-right:-16px}
.group .gh h3{font-size:21px}
.group .gh p{color:var(--mute);font-size:15px;max-width:26ch}
.rows{display:flex;flex-direction:column}
.row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 28px;gap:8px 20px;align-items:center;padding:14px 16px;border-radius:16px;text-decoration:none;transition:background .15s}
.row+.row::before{content:"";position:absolute;left:16px;right:16px;top:0;height:1px;background:var(--line)}
.row:hover{background:var(--tile)}
.row:hover::before,.row:hover+.row::before{opacity:0}
.row .rt{display:flex;flex-direction:column;gap:2px;min-width:0}
.row h3{font-size:18px}
.row p{color:var(--mute);font-size:15px}
.row .meta{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.row .go{font-size:20px;color:var(--navy2);justify-self:end;transition:transform .15s}
.row:hover .go{transform:translateX(3px);color:var(--blue)}
.tag{font-size:12.5px;font-weight:700;border-radius:100vw;padding:4px 10px;background:var(--tile);color:var(--navy2);white-space:nowrap}
.row:hover .tag:not(.paid):not(.vol){background:#fff}
.tag.paid{background:var(--ok);color:var(--okink)}
.tag.vol{background:var(--coraltint);color:var(--coralink)}

.get{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(20px,4vw,56px);align-items:center}
.get img{width:100%;border-radius:24px;aspect-ratio:4/3;object-fit:cover}
.get ul{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:14px}
.get li{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}
.get li i{width:26px;height:26px;border-radius:50%;background:var(--ok);color:var(--okink);display:grid;place-items:center;font-style:normal;font-size:14px;font-weight:800;margin-top:1px}
.get li span{color:var(--mute)}
.get li b{color:var(--ink)}
.note{background:var(--tile);border-radius:20px;padding:22px;color:var(--navy2);font-size:15.5px}
footer{border-top:1px solid var(--line);padding-block:28px;color:var(--mute);font-size:14px;display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between}

/* job page */
.jp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:clamp(24px,5vw,64px);align-items:start;padding-bottom:120px}
.stage{position:sticky;top:20px;height:calc(100vh - 40px);min-height:460px;max-height:860px;border-radius:28px;overflow:hidden;background:var(--navy);color:#fff;isolation:isolate}
.stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.stage::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(30,43,69,0) 38%,rgba(30,43,69,.55) 62%,rgba(30,43,69,.94) 100%)}
.stage .in{position:absolute;left:0;right:0;bottom:0;padding:34px;display:flex;flex-direction:column;gap:12px}
.stage .lab{color:rgba(255,255,255,.8)}
.stage h1{font-size:clamp(38px,4.4vw,64px);font-weight:800;letter-spacing:-.055em;line-height:.95}
.col{display:flex;flex-direction:column;gap:28px;padding-top:6px;min-width:0}
.col h2{font-size:26px}
.col .txt{display:flex;flex-direction:column;gap:12px;color:#2a2a2a;font-size:16.5px}
.col ul.dots{margin:10px 0 0;padding:0 0 0 20px;display:grid;gap:8px;color:#2a2a2a}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fact{background:var(--tile);border-radius:16px;padding:14px 16px}
.fact small{display:block;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.fact b{font-size:15.5px}
.ready{border:1.5px solid var(--navy);border-radius:20px;padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.ready .lab{color:var(--navy)}
.ready p{color:var(--mute);font-size:15px}
.ready ul{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:9px}
.ready li{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;font-size:15.5px}
.ready li i{width:22px;height:22px;border-radius:50%;background:var(--ok);color:var(--okink);display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:800;margin-top:1px}
.applybar{position:sticky;bottom:14px;z-index:5;background:#fff;border:1px solid var(--line);border-radius:100vw;padding:8px 8px 8px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 12px 34px rgba(16,16,16,.14)}
.applybar span{font-size:14.5px;color:var(--mute)}

/* the form */
.form{border:1px solid var(--line);border-radius:24px;padding:clamp(18px,3vw,28px);display:flex;flex-direction:column;gap:20px;scroll-margin-top:16px}
.prog{display:flex;align-items:center;gap:12px;font-size:13.5px;font-weight:700;color:var(--navy2)}
.prog .bar{flex:1;height:6px;border-radius:6px;background:var(--tile);overflow:hidden}
.prog .bar i{display:block;height:100%;background:var(--blue);border-radius:6px;transition:width .35s ease}
.form h2{font-size:24px}
.form .intro{color:var(--mute);font-size:15px;margin-top:-10px}
.q{display:flex;flex-direction:column;gap:9px}
.q>label,.q>.ql{font-weight:650;font-size:16px;letter-spacing:-.01em}
.q .opt{font-weight:400;color:var(--mute);font-size:13.5px;margin-left:6px}
.q input[type=text],.q input[type=email],.q input[type=tel],.q input[type=url],.q input[type=date],.q input[type=number],.q textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 14px;background:#fff;font-size:16px;min-height:50px}
.q select{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 40px 13px 14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101010' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;font-size:16px;min-height:50px;appearance:none;-webkit-appearance:none}
.q select:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:transparent}
.txt .rules{margin-top:4px}
.rules{margin:-4px 0 0;padding:18px 18px 18px 40px;background:var(--tile);border-radius:16px;display:grid;gap:10px;font-size:15.5px;color:#2a2a2a}
.rules li::marker{font-weight:700;color:var(--gold)}
.hint{background:var(--ok);color:var(--okink);border-radius:12px;padding:10px 14px;font-size:14.5px;margin-top:-6px}
.q textarea{min-height:110px;resize:vertical}
.q input:focus,.q textarea:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:transparent}
.opts{display:grid;gap:8px}
.o{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;border:1px solid var(--line);border-radius:14px;padding:12px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;transition:border-color .15s,background .15s}
.o:hover{border-color:rgba(16,16,16,.32)}
.o input{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin:1px 0 0;border:1.5px solid rgba(16,16,16,.35);border-radius:50%;background:#fff;display:grid;place-items:center;flex:none}
.o input[type=checkbox]{border-radius:6px}
.o input:checked{background:var(--blue);border-color:var(--blue)}
.o input:checked::after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}
.o input[type=checkbox]:checked::after{width:10px;height:6px;border-radius:0;background:none;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.o:has(input:checked){border-color:var(--blue);background:#f2f8ff}
.file{border:1.5px dashed rgba(16,16,16,.25);border-radius:14px;padding:16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;font-size:14.5px;color:var(--mute)}
.file input{font-size:14px;max-width:100%}
.err{color:var(--coralink);font-size:14px;font-weight:600}
.q.bad select,.q.bad input[type=text],.q.bad input[type=email],.q.bad input[type=tel],.q.bad input[type=url],.q.bad input[type=date],.q.bad textarea,.q.bad .opts .o,.q.bad .file{border-color:var(--coral)}
.nav{display:flex;justify-content:space-between;gap:12px;padding-top:4px}
.done{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.done .big{width:54px;height:54px;border-radius:50%;background:var(--ok);color:var(--okink);display:grid;place-items:center;font-size:26px;font-weight:800}
.robot{background:#0e1118;color:#e9edf5;border-radius:18px;padding:18px;font-size:14px;display:grid;gap:8px;width:100%}
.robot b{color:#fff}
.robot table{border-collapse:collapse;width:100%}
.robot td{padding:4px 0;border-top:1px solid rgba(255,255,255,.12)}
.robot td:last-child{text-align:right;font-variant-numeric:tabular-nums}
.pill{display:inline-block;border-radius:100vw;padding:3px 10px;font-weight:700;font-size:12.5px}
.pill.ok{background:#1d4a34;color:#b9f0d0}.pill.no{background:#5a2018;color:#ffd0c4}.pill.flag{background:#514012;color:#ffe7a3}

@media (max-width:960px){
  .steps{grid-template-columns:1fr 1fr}
  .group{grid-template-columns:1fr;gap:10px}
  .rows{margin-inline:-16px}
  .group .gh{padding-top:0}
  .group .gh p{max-width:none}
  .get{grid-template-columns:1fr}
  .jp{grid-template-columns:1fr;gap:20px}
  .stage{position:relative;top:0;height:auto;min-height:0;aspect-ratio:4/3;max-height:none}
  .stage .in{padding:22px}
}
@media (max-width:620px){
  .top .back span,.top .mail{display:none}
  .steps{grid-template-columns:1fr}
  .row{grid-template-columns:minmax(0,1fr) 24px;padding-block:16px}
  .row .meta{grid-column:1;grid-row:2;justify-content:flex-start}
  .row .go{grid-column:2;grid-row:1 / span 2}
  .hero{min-height:560px;border-radius:22px}
  .applybar{border-radius:20px;padding:10px 10px 10px 16px}
  .applybar span{font-size:13.5px}
  .nav .btn{padding-inline:20px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---- round 2 (UI window): same look, the form at the top, minutes left, birthday pickers, photo preview, a clearer rules step, a fuller thank-you ---- */
.btn{white-space:nowrap}
.btn.sm{padding:9px 18px;min-height:40px;font-size:14.5px}
.who{display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap;font-size:14px;color:var(--mute);margin-bottom:-6px}
.who b{color:var(--ink);font-weight:700}
.who button{border:0;background:none;padding:0;font-size:14px;font-weight:600;color:var(--navy2);text-decoration:underline;text-underline-offset:3px}
.prog{flex-direction:column;align-items:stretch;gap:8px}
.prog .progrow{display:flex;justify-content:space-between;gap:12px}
.prog .left{font-weight:500;color:var(--mute)}
.prog .bar{flex:none}
.dob{display:grid;grid-template-columns:.85fr 1.75fr 1.1fr;gap:8px}
.dob select{padding-right:30px;background-position:right 11px center}
.opts.two{grid-template-columns:1fr 1fr}
.rules li b{display:block;font-weight:700;color:var(--ink)}
.rules li span{display:block;color:var(--navy2);margin-top:1px}
.yes{border:1.5px solid var(--navy);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:20px}
.file{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px 14px;align-items:center}
.file.has{border-style:solid;border-color:var(--navy)}
.file .thumb{width:60px;height:60px;border-radius:12px;background:var(--tile);display:grid;place-items:center;overflow:hidden;color:var(--navy2);font-weight:700}
.file .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.file .ft{min-width:0;display:flex;flex-direction:column;gap:1px}
.file .ft b{font-size:15.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file .fb{grid-column:1 / -1;display:flex;gap:8px;flex-wrap:wrap}
.file .fb label{cursor:pointer}
.file input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.file .fb label:has(input:focus-visible){outline:2px solid var(--blue);outline-offset:3px}
.q.bad .dob select{border-color:var(--coral)}
.saved{font-size:13.5px;color:var(--mute);text-align:center;margin-top:-8px}
.nx{list-style:none;margin:0;padding:0;width:100%;counter-reset:s;display:grid;gap:8px}
.nx li{counter-increment:s;background:var(--tile);border-radius:16px;padding:14px 16px 14px 52px;position:relative}
.nx li::before{content:"0" counter(s);position:absolute;left:16px;top:16px;font-size:13px;font-weight:700;color:var(--gold);letter-spacing:.12em}
.nx b{display:block;font-size:16px}
.nx span{display:block;color:var(--mute);font-size:15px}
.more{width:100%;border:1.5px solid var(--navy);border-radius:20px;padding:20px 22px 10px;display:flex;flex-direction:column;gap:8px}
.more .lab{color:var(--navy)}
.more>p{color:var(--mute);font-size:15px}
.more .rows{margin:6px -16px 0}
.more .row{grid-template-columns:minmax(0,1fr) auto 24px}
@media (max-width:960px){
  .jp.applying .stage{display:none}
  .stage::after{background:linear-gradient(180deg,rgba(30,43,69,0) 30%,rgba(30,43,69,.62) 62%,rgba(30,43,69,.95) 100%)}
  .stage .chips{display:none}   /* the same three facts sit in the tiles right below */
}
@media (max-width:620px){
  .applybar{border-radius:100vw;padding:8px 8px 8px 18px}
  .applybar span{font-size:13px;line-height:1.3}
  .yes{padding:16px}
  .more .row{grid-template-columns:minmax(0,1fr) 24px}
}

.lst{display:flex;flex-direction:column;gap:28px;min-width:0}
#formHost:empty{display:none}
@media (min-width:961px){.stage img{inset:auto 0 0 0;height:calc(100% * var(--lift,1))}}
/* the photo card must fit on the screen from the first moment, also on a small laptop: screen height minus the header (60) and a 20 px edge */
@media (min-width:961px){.stage{height:calc(100vh - 80px);min-height:420px}}

/* front page: the photo runs over the whole width and up behind the top bar (Artur 22 Nov: "it could go over the whole page, like a hero") */
.hero.full{border-radius:0;flex-direction:column;justify-content:space-between;align-items:stretch;min-height:min(88vh,780px)}
.hero.full::after{background:linear-gradient(180deg,rgba(30,43,69,.55) 0%,rgba(30,43,69,.1) 16%,rgba(30,43,69,.1) 30%,rgba(30,43,69,.62) 58%,rgba(30,43,69,.9) 78%,rgba(30,43,69,.97) 100%)}
.hero.full .wrap{width:100%}
.hero.full .in{padding:0 0 clamp(28px,5vw,56px)}
.hero.full .top a.back,.hero.full .top .mail{color:#fff}
.hero.full .top .logo img{filter:invert(1)}
@media (max-width:620px){.hero.full{min-height:min(86vh,640px);border-radius:0}}
.hero.full picture{position:absolute;inset:0;z-index:-2}
.hero.full picture img{z-index:auto}
.hero.full .top .logo img{position:static;inset:auto;width:100px;height:auto;z-index:auto;object-fit:contain}
@media (max-width:620px){.hero.full picture img{object-position:50% 0;height:62%}.hero.full{background:var(--navy)}.hero.full::after{background:linear-gradient(180deg,rgba(30,43,69,.5) 0%,rgba(30,43,69,.08) 14%,rgba(30,43,69,.15) 30%,rgba(30,43,69,1) 60%)}}

/* the date blocks of a half-summer job: one tile over the full width, one block per line */
.fact.wide{grid-column:1 / -1}
.fact.wide b{display:block;font-variant-numeric:tabular-nums}
.fact.wide small{margin-bottom:4px}
@media (max-width:620px){.dob{grid-template-columns:1fr 1.5fr 1.15fr;gap:6px}.dob select{padding-left:11px;padding-right:24px;background-position:right 8px center}}

/* job page: the box with everything a team member gets */
.incl{background:var(--tile);border-radius:20px;padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.incl ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.incl li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;font-size:15.5px;color:var(--navy2)}
.incl li b{color:var(--ink)}
.incl li i{width:22px;height:22px;border-radius:50%;background:var(--ok);color:var(--okink);display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:800;margin-top:1px}

/* 2 Dec 2026: five steps + the open / closed notice */
@media (min-width:961px){.steps.five{grid-template-columns:repeat(5,1fr)}.steps.five .step{padding:20px 18px}}
.hire{background:var(--tile);border-radius:16px;padding:14px 18px;font-size:15.5px;color:var(--navy2);margin-bottom:14px}
.hire b{color:var(--ink)}
.lst .hire{margin-bottom:0}
