/* =========================================================
   04-form.css
   - 체크/입력/버튼(서명 제외)
========================================================= */
.dive-waiver-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dw-req{
  color: #d33;
  font-weight: 700;
}

/* 상단 체크 */
.dw-agree-top{
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fafafa;
}

.dw-check{
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  color: #111;
  font-weight: 700;
}

.dw-check input[type="checkbox"]{
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* 이름/날짜 행 */
.dw-row{
  display: flex;
  gap: 12px;
}

.dw-col{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dw-col label{
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.dw-col input[type="text"],
.dw-col input[type="date"]{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;       /* 모바일 확대 방지 */
  line-height: 1.2;
  background: #fff;
  color: #111;
  min-height: 44px;
}

.dw-col input[type="date"]{
  appearance: none;
  -webkit-appearance: none;
}

.dw-error-msg{
  font-size: 13px;
  font-weight: 800;
  color: #d86a00;
  margin-top: 6px;
}

.dw-input-error{
  border-color: #d86a00 !important;
  outline: none;
}

/* =========================================================
   Submit button
   - 기본 비활성(회색)
   - 조건 충족 시 is-active(파란색)
========================================================= */
.dw-submit-btn{
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;

  background: #bfbfbf; /* 기본 비활성 회색 */
  color: #fff;
}

.dw-submit-btn.is-active{
  background: #1677ff; /* 활성 파란색 */
}

.dw-submit-btn:disabled{
  opacity: 1;          /* 흐려지지 않게 유지 */
  cursor: not-allowed;
}

/* =========================================================
   Result (success/fail)
========================================================= */
.dw-result-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 24px 12px;
}

.dw-result-card{
  width: 100%;
  max-width: 520px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.dw-result-card.is-success{
  border-color: #dfeee3;
}

.dw-result-card.is-fail{
  border-color: #f3d7d7;
}

.dw-result-icon{
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  background: #f4f4f4;
  color: #111;
}

.dw-result-title{
  font-size: 18px;
  font-weight: 900;
  color: #111;
  margin-top: 6px;
}

.dw-result-hint{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.dw-result-actions{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.dw-result-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 900;
  background: #111;
  color: #fff;
  text-decoration: none;
  min-width: 140px;
}

.dw-submit-btn.is-submitting{
  background: #7a7a7a;
  cursor: progress;
}
