/* Material Download Popup - DcodingX */
.dx-material-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: rgba(4, 18, 55, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dx-material-modal.is-open { display: flex; }

.dx-material-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 34px 96px rgba(0, 20, 80, 0.34);
  border: 1px solid rgba(210, 224, 255, 0.9);
  animation: dxMaterialIn .25s ease both;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 50, 173, .45) transparent;
}

.dx-material-card::-webkit-scrollbar { width: 8px; }
.dx-material-card::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.dx-material-card::-webkit-scrollbar-thumb {
  background: rgba(0, 50, 173, .40);
  border-radius: 999px;
  border: 2px solid #ffffff;
}
.dx-material-card::-webkit-scrollbar-thumb:hover { background: rgba(0, 50, 173, .62); }

@keyframes dxMaterialIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dx-material-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eef3ff;
  color: #0032AD;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.dx-material-close:hover {
  transform: rotate(90deg);
  background: #dfe9ff;
}

.dx-material-head {
  padding: 44px 52px 24px;
  text-align: center;
  border-bottom: 1px solid #eef3ff;
}

.dx-material-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #eef3ff;
  color: #0032AD;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
}

.dx-material-title {
  margin: 0;
  color: #071b4d;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.dx-material-lead {
  margin: 12px auto 0;
  color: #51607f;
  font-size: 15px;
  line-height: 1.8;
}

.dx-material-form { padding: 30px 52px 44px; }

.dx-field { margin-bottom: 20px; }

.dx-field label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #071b4d;
  font-size: 18px;
  font-weight: 900;
}

.dx-required {
  color: #ff3b3b;
  font-size: 14px;
  font-weight: 900;
}

.dx-field input {
  width: 100%;
  height: 58px;
  box-sizing: border-box;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  padding: 0 18px;
  color: #071b4d;
  background: #ffffff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.dx-field input:focus {
  border-color: #0032AD;
  box-shadow: 0 0 0 4px rgba(0, 50, 173, .12);
}

.dx-field input.is-invalid {
  border-color: #d93025;
  background: #fff8f8;
}

.dx-material-submit,
.dx-material-download {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 14px;
  background: #0032AD;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(0, 50, 173, .26);
  transition: transform .2s ease, box-shadow .2s ease;
}

.dx-material-submit:hover,
.dx-material-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 50, 173, .34);
}

.dx-material-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.dx-material-status {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.dx-material-status.is-show { display: block; }
.dx-material-status.success { background: #edf8f1; color: #0b6b33; }
.dx-material-status.error { background: #fff1f1; color: #b3261e; }

.dx-material-download { background: #071b4d; }
.dx-material-download::before { content: "↓"; margin-right: 10px; font-size: 20px; line-height: 1; }

.dx-material-success-view {
  box-sizing: border-box;
  padding: 62px 52px 46px;
  text-align: center;
  width: 100%;
}

.dx-success-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b7a3b;
  background: linear-gradient(135deg, #eaf8ef, #d9f4e5);
  box-shadow: 0 18px 36px rgba(11, 122, 59, .16);
}

.dx-success-icon svg {
  width: 38px;
  height: 38px;
  display: block;
}

.dx-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #eef3ff;
  color: #0032AD;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.dx-material-success-view h3 {
  margin: 0 0 10px;
  color: #071b4d;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.dx-material-success-view p {
  margin: 0 auto 24px;
  color: #51607f;
  font-size: 16px;
  line-height: 1.8;
}

.dx-success-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.dx-success-info div {
  padding: 16px 12px;
  border-radius: 16px;
  background: #f6f8ff;
  border: 1px solid #e1eaff;
  box-shadow: 0 10px 26px rgba(0, 32, 110, .06);
}

.dx-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #0032AD;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 50, 173, .10);
}

.dx-success-info strong {
  display: block;
  color: #071b4d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.dx-success-info small {
  display: block;
  margin-top: 4px;
  color: #66728f;
  font-size: 12px;
  line-height: 1.4;
}

.dx-hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

body.dx-modal-lock { overflow: hidden; }

@media (max-width: 640px) {
  .dx-material-modal { padding: 10px; align-items: center; }
  .dx-material-card { width: 100%; max-height: calc(100dvh - 20px); border-radius: 18px; }
  .dx-material-head { padding: 38px 22px 18px; }
  .dx-material-form { padding: 24px 22px 30px; }
  .dx-material-success-view { padding: 58px 22px 34px; }
  .dx-success-icon { width: 68px; height: 68px; margin-bottom: 16px; }
  .dx-success-icon svg { width: 32px; height: 32px; }
  .dx-success-info { grid-template-columns: 1fr; gap: 10px; }
  .dx-success-info div { padding: 14px 12px; }
  .dx-field label { font-size: 16px; }
  .dx-field input { height: 54px; font-size: 15px; }
}

@media (max-width: 420px) {
  .dx-material-head { padding: 34px 18px 16px; }
  .dx-material-form { padding: 20px 18px 26px; }
  .dx-material-success-view { padding: 54px 18px 28px; }
  .dx-material-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .dx-material-lead { font-size: 14px; }
  .dx-material-submit,
  .dx-material-download { min-height: 54px; font-size: 15px; }
}
