/**
 * Common Postcode Popup - Enter Postcode modal
 * Use on all pages. Link: <link rel="stylesheet" href="css/postcode-popup.css">
 */

/* Backdrop */
#postcodeModal.postcode-popup-wrapper {
  position: fixed;
  inset: 0;
  z-index: 100;
}
#postcodeModal.postcode-popup-wrapper.hidden {
  display: none !important;
}
.postcode-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Centered container */
.postcode-popup-center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}
.postcode-popup-dialog {
  pointer-events: auto;
}

/* Popup card - 459x390, gradient, rounded */
.postcode-popup {
  position: relative;
  width: 100%;
  max-width: 459px;
  min-height: 353px;
  box-sizing: border-box;
  background: linear-gradient(173.56deg, #FFFFFF 0.5%, rgba(232, 228, 255, 0) 0.5%, #6D4DFF 166.4%, rgba(0, 102, 255, 0.2) 172.1%), #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative rings - assets/coverage/postcode_ring.svg */
.postcode-popup-rings {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 271px;
  background: url("../assets/coverage/postcode_ring.svg") no-repeat bottom center;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
}

/* Content area */
.postcode-popup-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Close button */
.postcode-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.postcode-popup-close:hover {
  background: rgba(0, 0, 0, 0.05);
}
.postcode-popup-close-icon {
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  position: relative;
  background: transparent;
}
.postcode-popup-close-icon::before,
.postcode-popup-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #647187;
  transform: translate(-50%, -50%) rotate(45deg);
}
.postcode-popup-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Title - gradient text */
.postcode-popup-title {
  width: 100%;
  max-width: 224px;
  margin: 0 auto 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-align: center;
  background: linear-gradient(76.51deg, #D9CFFF -40.59%, #171718 24.55%, #171718 76.34%, #D8CFFF 133.18%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.postcode-popup-desc {
  width: 100%;
  max-width: 351px;
  margin: 0 auto 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  text-align: center;
  letter-spacing: -0.02em;
  color: #4C485E;
}

/* Form block - input + button */
.postcode-popup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 365px;
  margin: 0 auto;
}

/* Input wrapper */
.postcode-popup-input-wrap {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  box-shadow: 0px 4px 8px -2px rgba(14, 24, 41, 0.1), 0px 2px 4px -2px rgba(14, 24, 41, 0.06);
  border-radius: 12px;
}
.postcode-popup-input-wrap .postcode-popup-pin {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 8px;
  opacity: 0.5;
}
.postcode-popup-input-wrap .postcode-popup-pin path,
.postcode-popup-input-wrap .postcode-popup-pin circle {
  fill: #4C485D;
  stroke: none;
}
.postcode-popup-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
  color: #4C485D;
}
.postcode-popup-input::placeholder {
  color: #4C485D;
  opacity: 0.5;
}

/* Check Now button */
.postcode-popup-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, rgba(4, 4, 6, 0.9) 0%, rgba(16, 16, 23, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 4px 8px -2px rgba(14, 24, 41, 0.1), 0px 2px 4px -2px rgba(14, 24, 41, 0.06);
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.postcode-popup-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
}
.postcode-popup-btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
