/* Decency Water – Customer Verification Page v2 */

#dwl-verify-wrap {
  display: flex; justify-content: center;
  padding: 40px 16px; min-height: 60vh; align-items: flex-start;
}

.dwl-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 36px 32px; width: 100%; max-width: 520px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

.dwl-logo { font-size: 1.4rem; font-weight: 900; color: #1d4ed8; margin-bottom: 8px; letter-spacing: .5px; }
.dwl-card h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.dwl-sub { color: #6b7280; font-size: .9rem; margin-bottom: 24px; line-height: 1.6; }

/* ── Step 1: Code input ── */
.dwl-input-row { display: flex; gap: 8px; margin-bottom: 8px; }
.dwl-input-row input {
  flex: 1; padding: 13px 16px;
  border: 2px solid #e5e7eb; border-radius: 8px;
  font-size: 1rem; font-family: 'Courier New', monospace;
  letter-spacing: 2px; font-weight: 700; color: #0f172a;
  text-transform: uppercase; outline: none; transition: border-color .15s;
}
.dwl-input-row input:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.dwl-input-row button {
  padding: 13px 20px; background: #1d4ed8; color: #fff;
  border: none; border-radius: 8px; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.dwl-input-row button:hover { background: #1e40af; }
.dwl-input-row button:disabled { background: #93c5fd; cursor: default; }

/* ── Step 2: Contact form ── */
.dwl-contact-box {
  background: #f0fdf4; border: 1.5px solid #86efac;
  border-radius: 12px; padding: 20px; margin-top: 4px;
}
.dwl-contact-intro {
  font-size: .9rem; color: #166534; font-weight: 600; margin-bottom: 14px;
}
.dwl-contact-fields {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}
.dwl-contact-fields input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .9rem; color: #0f172a; outline: none;
  transition: border-color .15s;
}
.dwl-contact-fields input:focus { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.dwl-confirm-btn {
  width: 100%; padding: 13px;
  background: #166534; color: #fff; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .15s; margin-bottom: 10px;
}
.dwl-confirm-btn:hover { background: #15803d; }
.dwl-confirm-btn:disabled { background: #6ee7b7; cursor: default; }
.dwl-contact-note { font-size: .78rem; color: #9ca3af; text-align: center; line-height: 1.5; }

/* ── Result panels ── */
.dwl-result-box { border-radius: 12px; padding: 20px; margin-top: 12px; }
.dwl-result-genuine  { background: #f0fdf4; border: 1.5px solid #86efac; }
.dwl-result-warning  { background: #fffbeb; border: 1.5px solid #fcd34d; }
.dwl-result-overused { background: #fff1f2; border: 1.5px solid #fca5a5; }
.dwl-result-invalid  { background: #fff1f2; border: 1.5px solid #fca5a5; }
.dwl-result-disabled { background: #f8fafc; border: 1.5px solid #cbd5e1; }

.dwl-result-icon     { font-size: 2rem; margin-bottom: 6px; }
.dwl-result-headline { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.dwl-result-genuine  .dwl-result-headline { color: #166534; }
.dwl-result-warning  .dwl-result-headline { color: #92400e; }
.dwl-result-overused .dwl-result-headline,
.dwl-result-invalid  .dwl-result-headline,
.dwl-result-disabled .dwl-result-headline { color: #991b1b; }

.dwl-result-msg { font-size: .875rem; color: #4b5563; margin-bottom: 14px; line-height: 1.6; }

/* Label type badge */
.dwl-label-type {
  display: inline-block; font-size: .75rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 14px;
  letter-spacing: .4px; text-transform: uppercase;
  background: #0f172a; color: #fff;
}

/* Info table */
.dwl-info-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-bottom: 14px; }
.dwl-info-table tr+tr td { border-top: 1px solid #e5e7eb; }
.dwl-info-table td { padding: 7px 4px; }
.dwl-info-table td:first-child { color: #6b7280; font-weight: 600; width: 42%; }
.dwl-info-table td:last-child  { font-weight: 700; color: #0f172a; }

/* Loading */
.dwl-loading { text-align: center; padding: 24px; color: #6b7280; font-size: .9rem; }
.dwl-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid #e5e7eb; border-top-color: #1d4ed8;
  border-radius: 50%; animation: dwl-spin .7s linear infinite;
  margin-right: 8px; vertical-align: middle;
}
@keyframes dwl-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .dwl-card { padding: 22px 16px; }
  .dwl-input-row { flex-direction: column; }
}
