form{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:30px;
  max-width:800px;
  width:100%;
  margin:0 auto;
}

input[type="checkbox"]{
  appearance:none;
  width:20px;
  height:20px;
  margin-right:10px;
  border:2px solid #0ABCB1;
  border-radius:4px;
  background-color:#fff;
  transition:all .2s ease;
  cursor:pointer;
  position:relative;
}
input[type="checkbox"]:checked{
  background:var(--radiant);
  border-color:transparent;
  animation:wave 4s ease infinite;
  background-size:300% 300%;
}
input[type="checkbox"]:checked::after{
  content:'';
  position:absolute;
  top:1px;
  left:4px;
  width:6px;
  height:11px;
  border:solid #fff;
  border-width:0 3px 3px 0;
  transform:rotate(40deg);
}
input[type="checkbox"]:focus-visible{
  outline:2px solid #2196f3;
  outline-offset:2px;
}

.form-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  width:100%;
  position:relative;
}

input:focus::placeholder,
textarea:focus::placeholder{ opacity:0; }

select{
  width:100%;
  font-size:24px;
  padding:8px;
  border-radius:10px;
  border:2px solid #0ABCB1;
}
option{ font-size:20px; }

button{
  width:fit-content;
  align-self:center;
}

.custom-select{
  position:relative;
  font:inherit;
  width:100%;
}

.custom-select select{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  pointer-events:none;
}

.cs-selected{
  font-size:20px;
  background:var(--card);
  color:var(--fg);
  padding:6px 44px 6px 14px;
  border-radius:12px;
  border:1px solid #d8dde6;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
  cursor:pointer;
  user-select:none;
  position:relative;
  min-height:44px;
  display:flex;
  width:100%;
  align-items:center;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.cs-selected::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:12px;
  padding:2px;
  background:linear-gradient(135deg, var(--accent) 60%, #6aa8ff 40%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}
.cs-selected::after{
  content:"";
  position:absolute;
  right:12px;
  width:18px;
  height:18px;
  pointer-events:none;
}
.cs-selected:hover{
  border-color:#cbd3de;
  box-shadow:0 2px 12px rgba(0,0,0,.05);
}
.cs-selected:focus-visible,
.custom-select.cs-open .cs-selected{
  outline:none;
  border-color:var(--accent);
  box-shadow:
    0 2px 12px rgba(0,0,0,.06),
    0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.cs-selected[data-placeholder="true"]{ color:var(--muted); }

.cs-list{
  position:absolute;
  z-index:40;
  left:0; right:0;
  top:calc(100% + 6px);
  background:var(--card);
  border:1px solid #d8dde6;
  border-radius:12px;
  box-shadow:0 12px 24px rgba(0,0,0,.08);
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .15s ease, transform .15s ease, max-height .2s ease;
}
.custom-select.cs-open .cs-list{
  opacity:1;
  transform:translateY(0);
  max-height:260px;
  overflow:auto;
}

.cs-option{
  padding:10px 14px;
  cursor:pointer;
  color:var(--fg);
  background:var(--card);
  transition:background .12s ease, color .12s ease;
  position:relative;
}
.cs-option::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:12px;
  padding:2px;
  background:linear-gradient(135deg, var(--accent) 60%, #6aa8ff 40%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}
.cs-option:hover{ background:rgba(0,0,0,.035); }
.cs-option[aria-selected="true"]{ background:rgba(47,202,132,.08); }
.cs-option:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-2px;
}

h1{
  font-size:48px;
  margin-bottom:20px;
}

.double-fields{
  display:flex;
  width:100%;
  gap:20px;
}
.half-border{ position:relative; }

.floating-label{
  position:absolute;
  left:20px;
  top:-5px;
  background:#fff;
  padding:0 6px;
  font-size:14px;
  line-height:1;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  pointer-events:none;
}
.half-border:focus-within .floating-label,
.half-border input:not(:placeholder-shown) ~ .floating-label{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  transition-delay:0s;
}

.checkbox-field{
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
  cursor:pointer;
}

.error-message{
  color:#ff0000;
  font-size:12px;
  margin-top:6px;
  text-align:left;
  position:absolute;
  left:0;
  top:100%;
  display:none;
}
.error-message.is-visible{ display:block; }

.logo-sending{
  width:100px;
  height:100px;
  object-fit:cover;
  object-position:center;
}
.rotate-logo{ animation:rotateLogo 15s linear infinite; }

.five-dots{
  display:flex;
  gap:.5rem;
  justify-content:center;
  align-items:center;
  margin-top:2rem;
}
.five-dots div{
  width:10px;
  height:10px;
  background-color:#2fca84;
  border-radius:50%;
  animation:dotPulse 1.2s infinite ease-in-out;
}
.five-dots div:nth-child(1){ animation-delay:0s; }
.five-dots div:nth-child(2){ animation-delay:.1s; }
.five-dots div:nth-child(3){ animation-delay:.2s; }
.five-dots div:nth-child(4){ animation-delay:.3s; }
.five-dots div:nth-child(5){ animation-delay:.4s; }

@keyframes dotPulse{
  0%,100%{ transform:scale(1); opacity:.3; }
  50%    { transform:scale(1.6); opacity:1; }
}

.sending-overlay{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background-color:rgba(0,0,0,.8);
  z-index:9999;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .3s ease, visibility 0s linear 0s;
}
.sending-overlay.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .3s ease, visibility 0s linear .3s;
}
.sending-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  text-align:center;
  font-size:24px;
  max-width:600px;
  width:100%;
  background:#fff;
  padding:20px;
  border-radius:10px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
}

html.has-modal, body.has-modal{ overflow:hidden; }

@media (max-width:700px){
  .double-fields{ flex-direction:column; }
}
