.dg-trial-lock {
  overflow: hidden;
}

.dg-trial-open,
.dg-link-btn,
.dg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 52px;
  border-radius: 10px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  background: #ff6310;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(255, 99, 16, 0.18);
}

.dg-trial-open:hover,
.dg-link-btn:hover,
.dg-submit:hover {
  background: #e65608;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 99, 16, 0.24);
}

.dg-trial-open:focus,
.dg-link-btn:focus,
.dg-submit:focus,
.dg-btn-secondary:focus,
.dg-toggle-more:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 99, 16, 0.22);
}

.dg-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dg-btn-secondary:hover {
  border-color: #ff6310;
  color: #ff6310;
  background: #fff7f3;
}

.dg-toggle-more {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff6310;
  font-weight: 600;
  cursor: pointer;
}

.dg-toggle-more:hover {
  color: #e65608;
}

.dg-link-secondary {
  display: inline-block;
  margin-left: 12px;
  color: #111827;
  text-decoration: underline;
  font-weight: 500;
}

.dg-link-secondary:hover {
  color: #ff6310;
}

.dg-trial-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.dg-trial-modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.dg-trial-modal[aria-hidden="true"] .dg-trial-backdrop {
  opacity: 0;
}

.dg-trial-modal[aria-hidden="false"] .dg-trial-backdrop {
  opacity: 1;
}

.dg-trial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.54);
  transition: opacity 0.25s ease;
}

.dg-trial-dialog {
  position: absolute;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(760px, 100vw);
  background: #ffffff;
  padding: 32px 24px 24px;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  will-change: transform;
}

.dg-trial-modal[aria-hidden="false"] .dg-trial-dialog {
  transform: translate3d(0, 0, 0);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.16);
}

.dg-trial-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dg-trial-close:hover {
  color: #ff6310;
  transform: scale(1.05);
}

.dg-trial-panel {
  width: 100%;
  box-sizing: border-box;
}

.dg-stepbar {
  margin-bottom: 20px;
}

.dg-stepbar-meta {
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.dg-stepbar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.dg-stepbar-fill {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: 999px;
  background: #ff6310;
  transition: width 0.25s ease;
}

.dg-trial-panel h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.1;
  color: #0f172a;
}

.dg-trial-panel p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 16px;
  line-height: 1.5;
}

.dg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dg-span-2 {
  grid-column: span 2;
}

.dg-grid label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: #111827;
}

.dg-grid input,
.dg-grid select,
.dg-grid textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 52px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
  font: inherit;
  color: #111827;
  background: #ffffff;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dg-grid input:focus,
.dg-grid select:focus,
.dg-grid textarea:focus {
  outline: none;
  border-color: #ff6310;
  box-shadow: 0 0 0 3px rgba(255, 99, 16, 0.14);
}

.dg-grid textarea {
  resize: vertical;
  min-height: 160px;
  padding-top: 14px;
}

.dg-grid select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}

.dg-grid select::-ms-expand {
  display: none;
}

.dg-more-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.dg-actions {
  margin-top: 24px;
}

.dg-actions-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dg-status {
  margin-top: 12px;
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.4;
}

.dg-result h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.dg-result p {
  margin-bottom: 14px;
}

.dg-result-actions {
  margin-top: 20px;
}

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

@media (max-width: 767px) {
  .dg-trial-dialog {
    width: 100vw;
    padding: 28px 16px 20px;
  }

  .dg-grid {
    grid-template-columns: 1fr;
  }

  .dg-span-2 {
    grid-column: span 1;
  }

  .dg-actions-split {
    flex-direction: column;
  }

  .dg-link-secondary {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }

  .dg-trial-panel h3 {
    font-size: 1.75rem;
  }

  .dg-grid textarea {
    min-height: 140px;
  }
}