/* ── OVERLAY ─────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── BOX — 700px max ─────────────────────── */
.popup-cover {
  width: 75%;
  height: 90vh;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.popup-box {
  width: 100%;
  background: #fff;
  transform: translateY(60px) scale(0.95);
  transition: all 0.4s ease;
  position: relative;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.popup-overlay.active .popup-box {
  transform: translateY(0) scale(1);
}

/* ── CLOSE ───────────────────────────────── */
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  z-index: 10;
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
  margin: 0;
  padding: 0;
}
.popup-close:hover {
  background: var(--secondary);
  color: #fff;
}

/* ── HERO ────────────────────────────────── */
.popup-hero {
  position: relative;
  height: 350px;
  overflow: hidden;
  flex-shrink: 0;
}

.popup-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.popup-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(21, 101, 192, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.popup-hero-content {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: #fff;
  z-index: 2;
}

.popup-hero-content h2 {
  font-size: 36px !important;
  margin: 0;
  color: #fff !important;
}

/* ── BODY (scrollable) ───────────────────── */
.popup-body {
  padding: 36px;
  flex: 1;
}

/* ── DESC ────────────────────────────────── */
.popup-desc {
  color: var(--text);
  margin-bottom: 30px;
}

/* ── GRID WRAPPER ────────────────────────── */
.popup-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top row: 3 list cards side by side */
.popup-grid-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── CARD (shared base) ──────────────────── */
.popup-card {
  background: #f5f7fa;
  padding: 25px;
  border-radius: 10px;
  position: relative;
  transition: 0.3s;
}

.popup-card:hover {
  transform: translateY(-4px);
}

.popup-card h4 {
  margin-bottom: 15px;
  font-size: 18px !important;
  font-weight: 500 !important;
}

/* ── LIST CARDS (top 3) ──────────────────── */
.popup-card--list {
  flex: 1 1 calc(33.333% - 11px);
  min-width: 200px;
}

.popup-card--list ul {
  padding-left: 18px;
  color: #555;
  margin: 0;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

.popup-card--list ul li {
  font-size: 16px !important;
  font-weight: normal !important;
}

/* ── SOURCING CARD (full-width bottom row) ── */
.popup-card--sourcing {
  width: 100%;
  flex: none;
  background: var(--gr-lg-4) !important;
  /* background: #eef3fb; */
  /* border-left: 4px solid #2d6cdf; */
}

.popup-card--sourcing h4 {
  color: #2d6cdf;
}

.sourcing-text {
  color: #444;
  font-size: 16px !important;
  line-height: 1.7;
  margin: 0;
}

/* ── FORM ────────────────────────────────── */
.popup-form {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.form-title {
  font-size: 26px !important;
  margin-bottom: 26px;
}
form#popupEnquiryForm {
  padding: 26px;
  border-radius: 10px;
  background: #f5f7fa;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 6px;
  color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dcdfe4;
  outline: none;
  transition: 0.25s;
  background: #fff;
  font-family: inherit;
  color: #222;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2d6cdf;
}

/* ── BUTTONS ─────────────────────────────── */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: #2d6cdf;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1a52b3;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border: 1px solid #2d6cdf;
  color: #2d6cdf;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-outline:hover {
  background: #2d6cdf;
  color: #fff;
}

/* ── THANK YOU ───────────────────────────── */
.form-thankyou {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 13px 16px;
  color: #2e7d32;
  margin-top: 16px;
}

.form-note {
  margin-top: 16px;
  color: var(--secondary-dark);
}

/* ── SCROLLBAR ───────────────────────────── */
.popup-body::-webkit-scrollbar {
  width: 6px;
}

.popup-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* ── TABLET ──────────────────────────────── */
@media (max-width: 900px) {
  .popup-cover {
    width: 90%;
  }

  .popup-box {
    max-height: 95vh;
  }

  .popup-body {
    padding: 25px !important;
    padding-bottom: 75px !important;
  }

  .popup-hero {
    height: 220px;
  }

  .popup-card--list {
    flex: 1 1 calc(50% - 8px);
  }
}

/* ── MOBILE ──────────────────────────────── */
@media (max-width: 600px) {
  .popup-cover {
    width: 95%;
    border-radius: 12px;
  }

  .popup-hero {
    height: 180px;
  }

  .popup-body {
    padding: 16px;
  }

  .popup-card--list {
    flex: 1 1 100%;
  }

  .popup-close {
    top: 10px;
    right: 15px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  form#popupEnquiryForm {
    padding: 20px !important;
  }
  .form-title {
    font-size: 18px !important;
  }
  .popup-body {
    padding-bottom: 50px !important;
  }
  .popup-card--list ul li {
    font-size: 14px !important;
  }
  .popup-hero-content h2 {
    font-size: 20px !important;
  }
  .popup-hero-content {
    width: calc(100% - 30px) !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .popup-cover {
    width: 90% !important;
  }
  .popup-card--list ul li {
    font-size: 16px !important;
  }
  .popup-hero-content h2 {
    font-size: 34px !important;
  }
  .popup-hero-content {
    width: calc(100% - 30px) !important;
  }
}
