:root{
  --navy:#08224a;
  --blue:#1f64d8;
  --orange:#ff8a00;
  --orange2:#ffb347;
  --red:#e5483f;
  --ink:#102033;
  --muted:#5d6f86;
  --line:#dce8f5;
  --bg:#f6f9fd;
  --shadow:0 24px 60px rgba(8,34,74,.14);
}

*{box-sizing:border-box}

body{
  margin:0;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic","Yu Gothic UI",Meiryo,sans-serif;
  line-height:1.8;
  background:var(--bg);
  -webkit-text-size-adjust:100%;
}

img{max-width:100%;height:auto;display:block}

.form-hero{
  min-height:100vh;
  padding:42px 18px 72px;
  background:
    radial-gradient(circle at 15% 10%,rgba(255,210,92,.4),transparent 30%),
    radial-gradient(circle at 85% 15%,rgba(31,100,216,.18),transparent 34%),
    linear-gradient(135deg,#fff 0%,#f4f9ff 52%,#eaf4ff 100%);
}

.form-container{
  max-width:780px;
  margin:0 auto;
}

.logo-link{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--navy);
  font-weight:950;
  margin-bottom:24px;
}

.logo{
  width:42px;
  height:42px;
}

.form-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(220,232,245,.9);
  border-radius:32px;
  padding:38px;
  box-shadow:var(--shadow);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  padding:8px 15px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--navy),var(--blue));
  color:#fff;
  font-size:13px;
  font-weight:950;
}

h1{
  margin:0 0 14px;
  color:var(--navy);
  font-size:clamp(30px,5vw,46px);
  line-height:1.3;
  letter-spacing:-.04em;
  font-weight:950;
}

.lead{
  margin:0 0 30px;
  color:#475569;
  font-weight:700;
}

.form-group{
  margin-bottom:22px;
}

label{
  display:block;
  margin-bottom:8px;
  color:var(--navy);
  font-weight:950;
}

.required,
.optional{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  line-height:1.5;
  vertical-align:middle;
}

.required{
  background:#ffe8e6;
  color:var(--red);
}

.optional{
  background:#eef2f7;
  color:#64748b;
}

input,
select,
textarea{
  width:100%;
  border:1.5px solid #cfe0f5;
  border-radius:16px;
  background:#fff;
  padding:14px 15px;
  color:var(--ink);
  font-size:16px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(31,100,216,.1);
}

textarea{
  resize:vertical;
  min-height:150px;
}

.checkbox-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.check-card{
  position:relative;
  margin:0;
  cursor:pointer;
}

.check-card input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.check-card span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:10px;
  border:1.5px solid #cfe0f5;
  border-radius:16px;
  background:#fff;
  color:#24384f;
  font-weight:900;
  transition:.18s ease;
}

.check-card input:checked + span{
  border-color:var(--blue);
  background:#eaf4ff;
  color:var(--blue);
  box-shadow:0 8px 18px rgba(31,100,216,.12);
}

.field-note{
  margin:7px 0 0;
  color:var(--muted);
  font-size:13px;
  font-weight:650;
}

.form-error{
  display:none;
  margin:4px 0 18px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff1f0;
  border:1px solid #ffd2cf;
  color:#b42318;
  font-weight:800;
}

.form-error.is-show{
  display:block;
}

.submit-btn{
  width:100%;
  min-height:64px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#fff;
  font-size:17px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 18px 36px rgba(255,138,0,.3);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.submit-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 42px rgba(255,138,0,.38);
}

.bottom-note{
  margin:14px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.error-modal{
  position:fixed;
  inset:0;
  z-index:999;
  display:none;
}

.error-modal.is-show{
  display:block;
}

.error-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(8,34,74,.46);
}

.error-modal__box{
  position:relative;
  width:min(92vw,440px);
  margin:14vh auto 0;
  background:#fff;
  border-radius:26px;
  padding:26px;
  box-shadow:0 28px 70px rgba(0,0,0,.22);
}

.error-modal__box h2{
  margin:0 0 8px;
  color:var(--navy);
  font-size:24px;
  line-height:1.35;
}

.error-modal__box p{
  margin:0 0 12px;
  color:#475569;
  font-weight:700;
}

#errorList{
  margin:0 0 20px;
  padding-left:22px;
  color:#b42318;
  font-weight:850;
}

.modal-close{
  width:100%;
  border:none;
  border-radius:999px;
  padding:13px 18px;
  background:var(--navy);
  color:#fff;
  font-weight:950;
  cursor:pointer;
}

.thanks-box{
  margin:24px 0;
  padding:20px;
  border-radius:20px;
  background:#f7fbff;
  border:1px solid #dcecff;
}

.thanks-box p{
  margin:0 0 12px;
  color:#475569;
  font-weight:700;
}

.thanks-box p:last-child{
  margin-bottom:0;
}

.thanks-btn{
  text-decoration:none;
}

.sp-only{
  display:none;
}

@media(max-width:720px){
  .form-hero{
    padding:24px 14px 52px;
  }

  .form-card{
    padding:26px 18px;
    border-radius:26px;
  }

  .checkbox-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .sp-only{
    display:block;
  }
}
