@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Allura&display=swap');
:root{color-scheme:light;--ink:#123342;--line:#e0e7e9;--field:clamp(34px,5.2svh,44px);--gap:clamp(6px,1svh,10px);--label:clamp(11px,1.55svh,13px);--pad:clamp(12px,2svh,18px);--portrait:clamp(58px,10svh,86px)}
*{box-sizing:border-box}html{height:100%;background:#e5f0f8}body{margin:0;min-width:280px;height:100vh;height:100svh;padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:center;font-family:Manrope,Arial,sans-serif;color:var(--ink);background:linear-gradient(160deg,#d9ecfc,#eef5f8 50%,#e9f0f4);overflow:hidden;-webkit-tap-highlight-color:transparent}
body::before{content:'';position:fixed;inset:-30px;background:url('./assets/andes.jpg') center/cover;filter:blur(16px);opacity:.16;pointer-events:none}
.symbols{position:absolute;width:0;height:0;overflow:hidden}.sheet{isolation:isolate;position:relative;width:100%;max-width:458px;height:100%;max-height:900px;border:1px solid #ffffff60;border-radius:25px;overflow:hidden;display:flex;flex-direction:column;background:#f8fbfd;box-shadow:0 12px 48px #224e6a0d}
.sheet::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(to bottom,transparent,rgba(248,251,253,.12) 25%,#f8fbfd 58%),url('./assets/andes.jpg') center top/100% auto no-repeat}
.hero{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:10px 12px 7px;text-align:center;background:linear-gradient(to bottom,transparent 30%,#f8fbfd26 48%,#f8fbfde0 78%,#f8fbfd)}
.portraits{display:flex;align-items:center;justify-content:center;gap:clamp(32px,10vw,48px);margin:0;animation:arrive .65s both}.person{display:flex;flex-direction:column;align-items:center;gap:1px}.person img{display:block;width:var(--portrait);height:var(--portrait);border:0;border-radius:50%;object-fit:cover;object-position:50% 29%;box-shadow:none;mask-image:radial-gradient(circle at center,#000 63%,#000d 66%,transparent 71%);-webkit-mask-image:radial-gradient(circle at center,#000 63%,#000d 66%,transparent 71%)}.person span{font:700 9px/1 Manrope,Arial,sans-serif;letter-spacing:.13em;text-shadow:0 1px 4px white}
.pairing{font-family:Allura,'Brush Script MT',cursive;font-size:clamp(26px,4.2svh,36px);line-height:1.05;margin:5px 0 2px;color:#ba2e3b;white-space:nowrap}.pairing i{font:400 .55em Manrope,Arial,sans-serif;color:#b39161;margin:0 7px}.pairing span{color:#087845}
h1{font:800 clamp(20px,3.1svh,28px)/1.13 Manrope,Arial,sans-serif;letter-spacing:-.035em;margin:4px 0 0;animation:arrive .65s .08s both}h1 span{white-space:nowrap;color:#08704e}
.minimum{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;margin:4px var(--pad) clamp(7px,1.2svh,11px);min-height:clamp(32px,4.5svh,40px);padding:5px 8px;border:1px solid #d6b97855;border-radius:8px;background:#fff8eae6;color:#66542d}.minimum svg{width:17px;height:17px;color:#8d6f30}.minimum span{font:700 clamp(9px,1.4svh,11px)/1.1 Manrope,Arial,sans-serif;letter-spacing:.05em;white-space:nowrap}.minimum b{font-size:12px;font-weight:400}.minimum strong{font:800 clamp(18px,2.6svh,23px)/1 Manrope,Arial,sans-serif;color:#175240;letter-spacing:-.025em;white-space:nowrap}
.form-panel{flex:none;margin:0 var(--pad);padding:var(--pad);border:0;border-radius:17px;background:#ffffffd9}
form{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--gap);margin:0}.field{min-width:0;display:flex;flex-direction:column;gap:4px}label{font-size:var(--label);font-weight:800;line-height:1.25;color:#263b46;display:flex;align-items:baseline;flex-wrap:wrap;column-gap:5px}label .step{width:12px;margin-right:1px;font-size:10px;font-weight:600;color:#818d95}label .opt{font-size:.88em;font-weight:400;color:#727e86}label .req{font-weight:500}.field-hint{margin:0 0 1px 18px;color:#687982;font-size:clamp(10px,1.4svh,11.5px);line-height:1.35}
.control{min-width:0;position:relative;display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;background:#ffffff6b;transition:border-color .18s,box-shadow .18s}.control:focus-within{border-color:#35aa86;box-shadow:0 0 0 3px #079f610d}.control>.icon{position:absolute;left:11px;width:16px;height:16px;stroke:#7d8a92;pointer-events:none}
input,select,textarea{display:block;width:100%;min-width:0;min-height:0;height:var(--field);margin:0;border:0;background:transparent;border-radius:7px;outline:none;padding:0 11px 0 37px;font:400 16px/1.2 Manrope,Arial,sans-serif;color:#334852;appearance:none;-webkit-appearance:none}
input::placeholder,textarea::placeholder{color:#89949c;opacity:1;font-size:13px}select{padding-right:27px;background-image: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='m2 2 4 4 4-4' fill='none' stroke='%23677982' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;cursor:pointer}select.is-empty{color:#89949c}select option{color:#243843;background:white;font-size:16px}textarea{height:clamp(46px,7svh,62px);padding-top:7px;padding-bottom:7px;line-height:1.3;resize:none;overflow:auto}.control--message{align-items:flex-start}.control--message>.icon{top:10px}[aria-invalid=true]{background-color:#fff6f3}.control:has([aria-invalid=true]){border-color:#b6574c}
.country-control{position:relative;width:101px;flex:none;align-self:stretch;border-right:1px solid var(--line)}#country-display{position:absolute;inset:0;display:flex;align-items:center;padding-left:10px;font-size:15px;color:#334852;pointer-events:none;white-space:nowrap}#phone-country{position:relative;color:transparent;padding:0 23px 0 8px;cursor:pointer}#phone-country option{color:#243843}#phone-country:focus-visible{box-shadow:inset 0 0 0 2px #35aa86}#phone{padding-left:11px}
.actions{margin-top:4px}.btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:clamp(40px,5.8svh,50px);padding:0 10px;border:0;border-radius:11px;background:linear-gradient(105deg,#0bb36b,#009a61);box-shadow:0 3px 8px #079f6117;color:white;font:800 clamp(11px,1.65svh,14px)/1 Manrope,Arial,sans-serif;cursor:pointer;transition:transform .18s,box-shadow .18s,filter .18s}.btn>.wa{width:25px;height:25px;flex:none}.btn .arrow{width:17px;height:17px;transition:transform .2s}.btn:hover{filter:brightness(1.035);box-shadow:0 5px 13px #079f6124}.btn:hover .arrow{transform:translateX(3px)}.btn:active{transform:translateY(1px)}.btn:focus-visible{outline:3px solid #175240;outline-offset:3px}.btn:disabled{opacity:.75;cursor:wait}.btn[aria-busy=true] .arrow{animation:pulse .7s infinite alternate}
.footer{flex:none;display:flex;justify-content:space-between;align-items:center;gap:5px;padding:clamp(9px,1.7svh,15px) calc(var(--pad) + 4px);font-size:clamp(8px,1.2svh,10px);color:#687982}.footer span{display:flex;align-items:center;gap:3px;white-space:nowrap}.footer svg{width:12px;height:12px;color:#51707a}.footer small{font-size:inherit}
.toast{position:fixed;z-index:10;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translate(-50%,10px);max-width:min(410px,calc(100% - 30px));width:max-content;border-radius:10px;padding:12px 16px;background:#133e32;color:white;font:500 13px/1.45 Manrope,Arial,sans-serif;box-shadow:0 6px 24px #12334230;opacity:0;visibility:hidden;pointer-events:none;transition:.2s;white-space:pre-line}.toast.on{opacity:1;visibility:visible;transform:translate(-50%,0)}.toast[data-kind=error]{background:#803f36}.toast a{color:white;font-weight:700}.toast.on:has(a){pointer-events:auto}
@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes pulse{to{opacity:.3}}
@media(min-width:700px){body{padding:16px}.sheet{max-height:870px}}
@media(max-height:700px){:root{--field:36px;--gap:6px;--portrait:64px}.hero{padding-top:5px;padding-bottom:5px}.person span{display:none}.pairing{font-size:27px;margin:2px 0}h1{font-size:22px}.form-panel{padding:10px 12px}.footer{padding-top:8px;padding-bottom:9px}.minimum{margin-top:3px;margin-bottom:6px}textarea{height:46px}}
@media(max-height:600px){:root{--field:33px;--gap:5px;--portrait:54px}.hero{padding-top:4px}.pairing{display:none}h1{font-size:20px}.minimum{min-height:30px}.minimum strong{font-size:18px}.form-panel{padding:9px 11px}.field{gap:3px}.footer{padding-top:7px;padding-bottom:7px}textarea{height:43px}}
@media(max-width:345px){.control>.icon{display:none}input,select,textarea{padding-left:10px}.footer{gap:3px;padding-left:13px;padding-right:13px}.footer svg{display:none}.field-hint{margin-left:0}.minimum{gap:6px}.minimum svg{display:none}h1{font-size:20px}.country-control{width:95px}}
@media(orientation:landscape) and (max-height:560px){.sheet{max-width:900px;display:grid;grid-template-columns:39% 61%;grid-template-rows:1fr auto}.hero{grid-column:1;grid-row:1;padding:20px 10px 50px;justify-content:center}.portraits{gap:20px}.pairing{display:block}.hero h1{font-size:clamp(18px,2.8vw,24px)}.minimum{grid-column:1;grid-row:1;align-self:end;margin:0 10px 8px;gap:5px}.minimum svg{display:none}.minimum strong{font-size:17px}.minimum span{font-size:8px}.form-panel{grid-column:2;grid-row:1/3;margin:8px 8px 8px 0;padding:9px;align-self:center}form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 8px}.field--wide,.actions{grid-column:1/-1}.footer{grid-column:1;grid-row:2;font-size:8px;justify-content:center}.footer span:last-child{display:none}.footer svg{display:none}.sheet::before{background-size:auto 100%;background-position:left center}.control>.icon{display:none}input,select,textarea{padding-left:9px}.field-hint{font-size:10px;margin-left:0}.field-hint br{display:none}label{font-size:10px}.btn{height:36px}textarea{height:37px}#phone-hint{display:none}.field{gap:3px}}
@media(max-height:520px) and (orientation:portrait){.hero{flex:none;height:49px;padding:5px}.hero .portraits,.hero .pairing{display:none}.hero h1{font-size:17px}.minimum{margin:3px 12px 5px;min-height:27px}.minimum strong{font-size:17px}.form-panel{padding:8px 10px;margin-bottom:8px}.footer{display:none}.sheet{justify-content:center}.field{gap:2px}:root{--field:31px;--gap:4px}#phone-hint{display:none}textarea{height:35px}.btn{height:34px}label{font-size:10px}.field-hint{font-size:10px;line-height:1.2}}
body.keyboard-open{--field:32px;--gap:4px;--label:11px;padding:4px;height:var(--visible-height)}.keyboard-open .hero,.keyboard-open .footer{display:none}.keyboard-open .sheet{display:flex;max-width:458px;justify-content:center;border-radius:14px}.keyboard-open .minimum{min-height:26px;margin:4px 12px}.keyboard-open .form-panel{padding:7px 10px;margin:0 12px 6px}.keyboard-open form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 8px}.keyboard-open .field--wide,.keyboard-open .actions{grid-column:1/-1}.keyboard-open .btn{height:34px}.keyboard-open .control>.icon,.keyboard-open #phone-hint{display:none}.keyboard-open input,.keyboard-open select,.keyboard-open textarea{padding-left:9px}.keyboard-open textarea{height:37px}.keyboard-open .field-hint{font-size:10px;margin-left:0}.keyboard-open .field-hint br{display:none}.keyboard-open .field{gap:3px}.keyboard-open .minimum strong{font-size:18px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Give the original portraits breathing room and let the scenery fade as one layer. */
:root{--field:clamp(34px,4.9svh,41px);--gap:clamp(5px,.9svh,8px);--label:clamp(11px,1.45svh,12px)}
.sheet::before{inset:0 0 auto;height:clamp(160px,39svh,340px);background:linear-gradient(to bottom,transparent 22%,#f8fbfd99 58%,#f8fbfd 95%),url('./assets/andes.jpg') center top/100% auto no-repeat}.hero{background:none}
@media(max-height:700px){:root{--field:34px;--gap:5px;--portrait:60px}.field-hint{font-size:10px}}
@media(max-height:600px){:root{--field:31px;--gap:4px;--portrait:50px}.field{gap:3px}.form-panel{padding:8px 11px}#phone-hint{display:none}.btn{height:36px}textarea{height:40px}.footer{padding-top:6px;padding-bottom:6px}label{font-size:10px}}
@media(orientation:landscape) and (max-height:560px){.sheet::before{height:100%;background-size:auto 100%;background-position:left top}.hero{background:#f8fbfd70}.field-hint br{display:none}#message-hint{line-height:1.15}label .step{display:none}label .opt{font-size:8px}label{font-size:10px;column-gap:3px}.form-panel{padding:7px}form{gap:4px 7px}.btn{height:33px}textarea{height:34px}}
@media(orientation:landscape) and (max-height:340px){.field-hint{font-size:9px}.field{gap:2px}.form-panel{margin-top:4px;margin-bottom:4px}.minimum{flex-wrap:wrap}.minimum b{display:none}.minimum strong{font-size:16px}label .opt{display:none}}
@media(max-height:520px) and (orientation:portrait){:root{--field:28px;--gap:3px}.hero{height:43px}.hero h1{font-size:16px}.field{gap:2px}.form-panel{padding:6px 10px;margin-bottom:5px}.field-hint{line-height:1.15}textarea{height:32px}.btn{height:31px}.actions{margin-top:2px}}
body.keyboard-open{--field:30px;--gap:3px}.keyboard-open form{gap:3px 7px}.keyboard-open .field{gap:2px}.keyboard-open label{font-size:10px}.keyboard-open label .step{display:none}.keyboard-open .form-panel{padding:6px 9px}.keyboard-open .btn{height:32px}.keyboard-open textarea{height:34px}.keyboard-open .field-hint{line-height:1.2}.keyboard-open .actions{margin-top:2px}
@media(min-height:701px) and (max-height:820px){:root{--portrait:72px}.form-panel{padding:12px}textarea{height:54px}}
@media(max-height:650px) and (orientation:portrait){.pairing{display:none}}
@media(max-height:520px) and (orientation:portrait){form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px 7px}.field--wide,.actions{grid-column:1/-1}.control>.icon{display:none}input,select,textarea{padding-left:9px}label .step{display:none}label .opt{font-size:8px}}

@media(orientation:landscape) and (max-height:560px){.sheet::before{width:39%;background:linear-gradient(to bottom,transparent 15%,#f8fbfd99 55%,#f8fbfd 95%),url('./assets/andes.jpg') center top/auto 100% no-repeat}.hero{background:none}.form-panel{background:#ffffffeb}}
