/* ============================================================
   Postcode Delivery Checker v2.0.0 — Modal Styles
   ============================================================ */

:root {
  --pdc2-bg: #0d0d0d;
  --pdc2-surface: #1a1a1a;
  --pdc2-border: #2e2e2e;
  --pdc2-accent: #ff5c1a;
  --pdc2-accent-dark: #d94a10;
  --pdc2-text: #f0ece4;
  --pdc2-muted: #888;
  --pdc2-success: #3ecf6e;
  --pdc2-error-bg: #1f1010;
  --pdc2-radius: 16px;
  --pdc2-font: "Outfit", "Segoe UI", sans-serif;
}

/* ── Overlay ── */

.pdc2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pdc2-overlay[hidden] {
  display: none !important;
}
.pdc2-overlay.pdc2-visible {
  opacity: 1;
}

/* ── Modal card ── */
.pdc2-modal {
  position: relative;
  background: var(--pdc2-surface);
  color: var(--pdc2-text);
  font-family: var(--pdc2-font);
  border: 1px solid var(--pdc2-border);
  border-radius: var(--pdc2-radius);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pdc2-overlay.pdc2-visible .pdc2-modal {
  transform: translateY(0) scale(1);
}

/* ── Close button ── */
.pdc2-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--pdc2-border);
  border: none;
  color: var(--pdc2-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.pdc2-close:hover {
  background: #3a3a3a;
  color: var(--pdc2-text);
}

/* ── Form view ── */
.pdc2-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.pdc2-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--pdc2-text) !important;
  line-height: 1.2;
}

.pdc2-subtitle {
  font-size: 14px;
  color: var(--pdc2-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ── Input row ── */
.pdc2-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pdc2-input {
  flex: 1;
  background: #111;
  border: 1.5px solid var(--pdc2-border);
  border-radius: 10px;
  color: var(--pdc2-text);
  font-family: var(--pdc2-font);
  font-size: 15px;
  padding: 12px 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.pdc2-input:focus {
  border-color: var(--pdc2-accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 26, 0.15);
}
.pdc2-input::placeholder {
  text-transform: none;
  color: #555;
}

/* ── Buttons ── */
.pdc2-btn {
  font-family: var(--pdc2-font);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.pdc2-btn:active {
  transform: scale(0.97);
}
.pdc2-btn--full {
  width: 100%;
}

.pdc2-btn--primary {
  background: var(--pdc2-accent);
  color: #fff;
}
.pdc2-btn--primary:hover {
  background: var(--pdc2-accent-dark);
}

.pdc2-btn--phone {
  background: var(--pdc2-accent);
  color: #fff;
  margin-top: 16px;
  padding: 14px;
  font-size: 15px;
}
.pdc2-btn--phone:hover {
  background: var(--pdc2-accent-dark);
  color: #fff;
}

.pdc2-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--pdc2-border);
  color: var(--pdc2-muted);
  margin-top: 10px;
  padding: 11px;
}
.pdc2-btn--ghost:hover {
  border-color: #555;
  color: var(--pdc2-text);
}

/* ── Covered areas badges ── */
.pdc2-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--pdc2-border);
}
.pdc2-areas__label {
  font-size: 12px;
  color: var(--pdc2-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}
.pdc2-badge {
  background: #252525;
  border: 1px solid var(--pdc2-border);
  color: var(--pdc2-accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
}

/* ── Result views (success / error) ── */
.pdc2-result-view {
  text-align: center;
  padding: 8px 0;
}
.pdc2-result-view[hidden] {
  display: none !important;
}

.pdc2-result-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.pdc2-result-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}
.pdc2-result-title--success {
  color: var(--pdc2-success) !important;
}
.pdc2-result-title--error {
  color: #ff8070 !important;
}

.pdc2-result-body {
  font-size: 12px;
  color: #bbb;
  line-height: 1.75;
  margin: 0 0 4px;
}
.pdc2-result-body strong {
  color: var(--pdc2-text);
}

#pdc2-success-close {
  margin-top: 1rem;
}

/* ── Animations ── */
@keyframes pdc2-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
.pdc2-shake {
  animation: pdc2-shake 0.4s ease;
}

p.delivery-time{
  color: #efcf18 !important;

}

/* ── Responsive ── */
@media (max-width: 480px) {
  .pdc2-modal {
    padding: 32px 20px 24px;
  }
  .pdc2-input-row {
    flex-direction: column;
  }
  .pdc2-btn--primary {
    width: 100%;
  }
}
