/* =========================================
   DMCA Form — Multi-step
   ========================================= */

.dmca-form-wrap {
  background: #5184b3;
  border-radius: 12px;
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
  font-family: inherit;
  color: #fff;
}

/* Persistent title */
.dmca-form-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

/* Progress bar */
.dmca-progress {
  margin-bottom: 28px;
}

.dmca-progress-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c5d8ee;
  margin-bottom: 8px;
}

.dmca-progress-track {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.dmca-progress-bar {
  background: #fff;
  height: 8px;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Step indicators */
.dmca-steps-nav {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.dmca-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s;
}

.dmca-step-dot.active {
  background: #fff;
}

.dmca-step-dot.done {
  background: rgba(255,255,255,0.6);
}

/* Step panels */
.dmca-step {
  display: none;
}

.dmca-step.active {
  display: block;
}

/* Step heading */
.dmca-step-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}

.dmca-step-subheading {
  font-size: 13px;
  color: #c5d8ee;
  margin: 0 0 24px;
}

.dmca-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0 0 24px;
}

/* Intro text */
.dmca-intro {
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #ddeaf7;
  margin-bottom: 24px;
}

/* Fields */
.dmca-field {
  margin-bottom: 18px;
}

.dmca-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f5f5f0;
  margin-bottom: 6px;
}

.dmca-label .required {
  color: #d4e4f5;
  margin-left: 2px;
}

.dmca-field-description {
  font-size: 12px;
  color: #c5d8ee;
  font-style: italic;
  margin-bottom: 6px;
}

.dmca-sub-label {
  display: block;
  font-size: 11px;
  color: #c5d8ee;
  margin-top: 4px;
  margin-bottom: 0;
}

.dmca-input,
.dmca-select,
.dmca-textarea {
  width: 100%;
  background: #3d6fa0 !important;
  border: 1px solid #2e5a8a !important;
  border-radius: 8px !important;
  color: #fff !important;
  padding: 10px 14px;
  font-size: 14px;
  box-sizing: border-box;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none;
  transition: border-color 0.2s;
}

.dmca-input:focus,
.dmca-select:focus,
.dmca-textarea:focus {
  border-color: #a0c0e0 !important;
}

.dmca-input::placeholder,
.dmca-textarea::placeholder {
  color: #c5d8ee !important;
  opacity: 1 !important;
}

.dmca-textarea {
  resize: vertical;
  min-height: 100px;
}

.dmca-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c5d8ee' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
  cursor: pointer;
}

.dmca-select option {
  background: #2e5a8a;
  color: #fff;
}

/* Autofill bar */
.dmca-autofill-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.dmca-autofill-bar.is-visible {
  display: flex;
}

.dmca-autofill-label {
  font-size: 13px !important;
  color: #fff !important;
  flex: 1;
}

.dmca-autofill-btn {
  background: #2e5a8a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.dmca-autofill-btn:hover {
  background: #3d6fa0 !important;
  color: #fff !important;
}

.dmca-autofill-btn--clear {
  background: rgba(255,255,255,0.15) !important;
  display: none;
}

.dmca-autofill-btn--clear:hover {
  background: rgba(255,255,255,0.25) !important;
}

.dmca-autofill-label {
  color: #fff !important;
}

/* Save details row */
.dmca-save-details-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.dmca-save-details-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #c5d8ee;
  user-select: none;
}

.dmca-save-details-label span {
  font-weight: 500;
}

.dmca-save-details-label input[type="checkbox"] {
  accent-color: #5184b3;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Date input */
.dmca-date-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dmca-date-icon {
  font-size: 20px;
  line-height: 1;
  cursor: default;
}

input[type="date"].dmca-date-input {
  width: 200px !important;
  background: #3d6fa0 !important;
  color: #f5f5f0 !important;
  border: 2px solid #2e5a8a !important;
  border-radius: 8px !important;
  color-scheme: dark;
  padding: 10px 14px !important;
  font-size: 14px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Same as holder checkbox */
.dmca-same-as-holder {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #c5d8ee !important;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.dmca-same-as-holder span {
  color: #c5d8ee !important;
}

/* Two-column row */
.dmca-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dmca-row .dmca-field {
  flex: 1;
}

/* Radio options */
.dmca-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dmca-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0,0,0,0.15);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dmca-option:hover {
  background: rgba(0,0,0,0.25);
}

.dmca-option.selected {
  border-color: #fff;
  background: rgba(0,0,0,0.25);
}

.dmca-option input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #fff;
  width: 16px;
  height: 16px;
}

.dmca-option-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.dmca-option-desc {
  font-size: 12px;
  color: #c5d8ee;
  line-height: 1.5;
}

/* Option info panels */
.dmca-option-info {
  background: rgba(0,0,0,0.2);
  border-left: 3px solid rgba(255,255,255,0.4);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #ddeaf7;
  animation: dmca-fadein 0.25s ease;
}

.dmca-option-info p {
  margin: 0 0 10px;
}

.dmca-option-info p:last-child {
  margin-bottom: 0;
}

.dmca-option-info a {
  color: #c5d8ee;
  text-decoration: underline;
}

.dmca-option-info a:hover {
  color: #fff;
  text-decoration: underline;
}

.dmca-option-info--warning {
  border-left-color: #f0c040;
  color: #f0e0a0;
}

@keyframes dmca-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Field error */
.dmca-field-error {
  color: #f0c040 !important;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.dmca-field-error.visible {
  display: block;
}

/* Navigation buttons */
.dmca-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.dmca-btn {
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.dmca-btn-next,
.dmca-btn-submit {
  background: #2e5a8a;
  color: #fff !important;
}

.dmca-btn-next:hover,
.dmca-btn-submit:hover {
  background: #3d6fa0;
}

.dmca-btn-prev {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
}

.dmca-btn-prev:hover {
  background: rgba(255,255,255,0.25);
}

.dmca-btn-prev.hidden {
  visibility: hidden;
}

/* ── WHOIS Overlay ─────────────────────────────────────────── */

#dmca-whois-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dmca-fadein 0.2s ease;
}

#dmca-whois-modal {
  background: #3d6fa0;
  border: 1px solid #2e5a8a;
  border-radius: 12px;
  width: 95%;
  max-width: 820px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#dmca-whois-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

#dmca-whois-modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

#dmca-whois-close {
  background: none;
  border: none;
  color: #c5d8ee;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

#dmca-whois-close:hover {
  color: #fff;
}

#dmca-whois-modal-body {
  padding: 20px;
}

.dmca-whois-intro {
  font-size: 13px;
  color: #c5d8ee;
  margin: 0 0 16px;
}

.dmca-whois-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.dmca-whois-search-row .dmca-input {
  flex: 1;
}

.dmca-whois-search-row .dmca-btn {
  white-space: nowrap;
  padding: 10px 18px;
}

#dmca-whois-spinner {
  font-size: 13px;
  color: #c5d8ee;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dmca-whois-spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dmca-spin 0.7s linear infinite;
}

@keyframes dmca-spin {
  to { transform: rotate(360deg); }
}

.dmca-whois-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.dmca-whois-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dmca-whois-table tr:last-child {
  border-bottom: none;
}

.dmca-whois-table td {
  padding: 8px 6px;
  vertical-align: top;
  color: #ddeaf7;
}

.dmca-whois-table td:first-child {
  font-weight: 600;
  color: #c5d8ee;
  white-space: nowrap;
  width: 140px;
}

.dmca-whois-table td:last-child {
  text-align: right;
}

.dmca-whois-use-btn {
  background: #2e5a8a;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
}

.dmca-whois-use-btn:hover {
  background: #5184b3;
}

.dmca-whois-copy-btn {
  background: rgba(255,255,255,0.1);
  color: #c5d8ee !important;
  border: none;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 4px;
}

.dmca-whois-copy-btn:hover {
  background: rgba(255,255,255,0.2);
}

.dmca-whois-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a0c0e0;
  margin-bottom: 8px;
}

.dmca-whois-note {
  font-size: 11px;
  color: #a0c0e0;
  margin: 8px 0 0;
  font-style: italic;
}

/* Email role assignment select in overlay */
.dmca-whois-role-select {
  background: #2e5a8a !important;
  border: 1px solid #5184b3 !important;
  border-radius: 4px !important;
  color: #fff !important;
  padding: 4px 8px;
  font-size: 12px;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  min-width: 130px;
}

.dmca-whois-role-select option {
  background: #2e5a8a;
}

.dmca-whois-role-select:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Email role rows on Step 4 */
.dmca-email-roles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.dmca-email-role-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 10px 14px;
}

.dmca-email-role-label {
  flex: 0 0 160px;
}

.dmca-role-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.dmca-role-desc {
  display: block;
  font-size: 11px;
  color: #a0c0e0;
  margin-top: 1px;
}

.dmca-email-role-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dmca-email-role-input .dmca-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
}

.dmca-email-role-row.assigned .dmca-input {
  border-color: rgba(255,255,255,0.4) !important;
}

.dmca-email-clear-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #c5d8ee;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
}

.dmca-email-role-row.assigned .dmca-email-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dmca-email-clear-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

#dmca-whois-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: #a0c0e0;
  font-style: italic;
}

#dmca-whois-modal-footer a {
  color: #c5d8ee;
  text-decoration: underline;
}

#dmca-whois-modal-footer a:hover {
  color: #fff;
}

#dmca-whois-error {
  background: rgba(240,192,64,0.15);
  border: 1px solid #f0c040;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f0c040;
}

/* Success message */
.dmca-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.dmca-success.visible {
  display: block;
}

.dmca-success h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff !important;
}

.dmca-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.dmca-success p {
  color: #c5d8ee;
  margin-bottom: 20px;
}

.dmca-download-btn {
  display: inline-block;
  background: #2e5a8a;
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.dmca-download-btn:hover {
  background: #3d6fa0;
  color: #fff !important;
}

/* Validation summary */
.dmca-error-summary {
  background: rgba(240,192,64,0.15);
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #f0c040;
  display: none;
}

.dmca-error-summary.visible {
  display: block;
}
