:root{
  /* 배경(단색) */
  --bg: #f3f6ff;

  --card: rgba(255,255,255,0.92);
  --cardSolid: #ffffff;
  --line: rgba(15,23,42,0.10);

  --text: #0f172a;
  --muted: #64748b;

  --primary: #2563eb;
  --primary2:#4f46e5;
  --ring: rgba(37,99,235,0.16);

  --danger:#ef4444;
  --dangerRing: rgba(239,68,68,0.16);

  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

html,body{
  margin:0; padding:0;
  font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Malgun Gothic",Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background: var(--bg); /* ✅ 그라데이션 제거, 단색 */
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 26px 14px 54px;
}
.header{ margin-bottom: 14px; }

.logos{
  width:100%;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  background: var(--cardSolid);
  box-shadow: 0 18px 48px rgba(16,24,40,0.10);
}
.logoLink{ display:block; width:100%; max-width:100%; }
.logoLink img{ width:100%; height:auto; border-radius:0; }
.logoLink + .logoLink{ border-top: 1px solid rgba(15,23,42,0.08); }

.eventInfo{
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(16,24,40,0.08);
  backdrop-filter: blur(8px);
}
.eventRow{ display:flex; gap:10px; padding: 8px 0; }
.eventRow + .eventRow{ border-top: 1px dashed rgba(15,23,42,0.10); }
.eventRow .label{ min-width: 78px; font-weight: 900; color:#111827; }
.eventRow .value{ color: var(--muted); font-weight: 650; }

.card{
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px 18px 22px;
  box-shadow: 0 24px 70px rgba(16,24,40,0.10);
  backdrop-filter: blur(10px);
  position: relative;
}
.card::before{
  content:"";
  position:absolute;
  left:16px; right:16px; top:14px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(37,99,235,0), rgba(37,99,235,0.55), rgba(79,70,229,0.55), rgba(37,99,235,0));
  opacity: 0.9;
}

.title{ margin: 8px 0 6px; font-size: 24px; letter-spacing: -0.4px; font-weight: 950; }
.sub{ margin: 0 0 18px; color: var(--muted); font-size: 14px; font-weight: 650; }

.section{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,0.10);
}
.sectionTitle{
  margin:0 0 12px;
  font-size: 16px;
  font-weight: 950;
  display:flex;
  align-items:center;
  gap:10px;
}
.sectionTitle::before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 22px rgba(37,99,235,0.18);
}
.req{ color: var(--danger); font-weight: 900; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 800;
}
.field input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  outline:none;
  font-size: 15px;
  border: 1px solid rgba(15,23,42,0.14);
  background: #fff;
  color: var(--text);
  transition: box-shadow .12s ease, border-color .12s ease, transform .08s ease;
}
.field input::placeholder{ color: rgba(100,116,139,0.70); }
.field input:focus{ border-color: rgba(37,99,235,0.60); box-shadow: 0 0 0 4px var(--ring); }
.field input:hover{ border-color: rgba(15,23,42,0.22); }

.isError{
  border-color: rgba(239,68,68,0.80) !important;
  box-shadow: 0 0 0 4px var(--dangerRing) !important;
}
.errMsg{
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(239,68,68,0.92);
  font-weight: 750;
}

.agreeBox{
  margin-top: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  padding: 14px;
  background: rgba(248,250,255,0.85);
}
.agreeTitle{ font-weight: 950; margin-bottom: 10px; }
.agreeText{
  width:100%;
  min-height: 96px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
  background: #fff;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}
.checkLine{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 12px;
  font-size: 13px;
  color: #334155;
  font-weight: 650;
}
.checkLine input{ margin-top: 3px; }

.qBlock{
  margin-top: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.92);
}
.qTitle{ font-weight: 950; margin-bottom: 12px; }

.radioGroup{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.radioGroup label{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(248,250,255,0.88);
  cursor:pointer;
  transition: transform .08s ease, border-color .12s ease, box-shadow .12s ease;
}
.radioGroup input{ margin-top: 2px; }
.radioGroup label:hover{
  border-color: rgba(37,99,235,0.26);
  box-shadow: 0 14px 34px rgba(37,99,235,0.10);
  transform: translateY(-1px);
}

.otherWrap{ display:none; margin-top: 10px; }
.otherWrap input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  outline:none;
  font-size: 14px;
  border: 1px solid rgba(15,23,42,0.14);
  background: #fff;
  color: var(--text);
}
.otherWrap input:focus{
  border-color: rgba(37,99,235,0.60);
  box-shadow: 0 0 0 4px var(--ring);
}

.actions{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,0.10);
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.btnPrimary{
  width:100%;
  border:none;
  border-radius: 16px;
  padding: 15px 14px;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
  font-weight: 950;
  font-size: 16px;
  cursor:pointer;
  box-shadow: 0 18px 42px rgba(37,99,235,0.20);
  transition: transform .10s ease, box-shadow .12s ease, opacity .12s ease;
}
.btnPrimary:hover{ transform: translateY(-1px); box-shadow: 0 22px 52px rgba(37,99,235,0.24); }
.btnPrimary:disabled{ opacity: 0.65; cursor:not-allowed; transform:none; box-shadow:none; }

.hint{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  text-align:center;
  font-weight: 650;
}
.footer{
  margin-top: 16px;
  text-align:center;
  color: rgba(15,23,42,0.55);
  font-size: 12px;
  font-weight: 600;
}

/* 상단 버튼 영역 */
.topActions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

.btnGhost{
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.78);
  color: #0f172a;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(16,24,40,0.06);
  transition: transform .10s ease, box-shadow .12s ease, border-color .12s ease;
}
.btnGhost:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.18);
  box-shadow: 0 14px 30px rgba(37,99,235,0.10);
}

/* 모달 */
.modal{ display:none; position:fixed; inset:0; z-index:9999; }
.modal.isOpen{ display:block; }
.modalDim{ position:absolute; inset:0; background: rgba(15,23,42,0.40); backdrop-filter: blur(6px); }

.modalPanel{
  position:relative;
  width:min(560px, calc(100% - 24px));
  margin: 80px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 30px 90px rgba(16,24,40,0.22);
  overflow:hidden;
}

.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  background: rgba(248,250,255,0.85);
}
.modalTitle{ font-weight: 950; letter-spacing: -0.2px; }
.modalClose{
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background:#fff;
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
}

.modalBody{ padding: 14px 14px 16px; }
.modalDesc{ margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 650; }

.modalGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modalActions{ margin-top: 12px; }

.resultBox{
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(248,250,255,0.85);
}
.resultTitle{ font-weight: 950; margin-bottom: 6px; }
.resultText{ color: #334155; font-weight: 650; }

/* =========================
   ✅ 모바일 최적화 강화
   ========================= */
@media (max-width: 760px){
  .wrap{ padding: 18px 12px 46px; }
  .card{ padding: 18px 14px; }
  .grid{ grid-template-columns: 1fr; gap: 10px; }

  .title{ font-size: 22px; }
  .sub{ font-size: 13px; }

  .eventInfo{ padding: 12px 14px; }
  .eventRow{ padding: 7px 0; }
}

@media (max-width: 520px){
  .eventRow{ flex-direction:column; gap: 4px; }
  .eventRow .label{ min-width:auto; }

  .radioGroup label{
    padding: 10px 11px;
    gap: 9px;
  }

  .agreeBox{ padding: 12px; }
  .agreeText{ min-height: 88px; }

  .btnPrimary{ padding: 14px 14px; border-radius: 15px; }

  .modalPanel{
    width: calc(100% - 18px);
    margin: 56px auto 0;
    border-radius: 16px;
  }
  .modalGrid{ grid-template-columns: 1fr; }
}
