/* ===== VRT Post Rates — جدول نرخ داخل صفحه پست ویزا ===== */

.vrt-post-rates {
  margin: 40px 0 24px;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* ── Header ── */
.vrt-post-rates__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #7f77dd;
}
.vrt-post-rates__icon {
  width: 38px;
  height: 38px;
  background: #eeedfe;
  border-radius: 10px;
  display: flex;
  display: none !important;
  align-items: center;
  justify-content: center;
  color: #534ab7;
  flex-shrink: 0;
}
.vrt-post-rates__title {
  font-size: 17px;
  font-weight: 700;
  color: #26215c;
  margin: 0;
  flex: 1;
}
.vrt-post-rates__country {
  background: #eeedfe;
  color: #534ab7;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(83, 74, 183, 0.2);
}

/* ── Table wrap ── */
.vrt-post-rates__table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1.5px solid rgba(83, 74, 183, 0.12);
}
.vrt-post-rates__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 13px;
  background: #ffffff;
}
.vrt-post-rates__table thead {
  background: linear-gradient(
    135deg,
    rgba(127, 119, 221, 0.07),
    rgba(83, 74, 183, 0.04)
  );
  border-bottom: 1.5px solid rgba(83, 74, 183, 0.12);
}
.vrt-post-rates__table th {
  padding: 10px 14px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #8b87b8;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[dir="ltr"] .vrt-post-rates__table th {
  text-align: left;
}
.vrt-post-rates__table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(83, 74, 183, 0.07);
  vertical-align: middle;
}
.vrt-post-rates__table tr:last-child td {
  border-bottom: none;
}
.vrt-post-rates__table tbody tr {
  transition: background 0.15s;
}
.vrt-post-rates__table tbody tr:hover {
  background: rgba(127, 119, 221, 0.04);
}

/* ── Pills & chips ── */
.vrt-pr-pill--type {
  display: inline-flex;
  align-items: center;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: #534ab7;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.vrt-pr-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.vrt-pr-price small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}
.vrt-pr-price--colleague {
  background: rgba(29, 158, 117, 0.08);
  border: 1px solid rgba(29, 158, 117, 0.2);
  color: #0f6e56;
}
.vrt-pr-price--traveler {
  background: rgba(55, 138, 221, 0.08);
  border: 1px solid rgba(55, 138, 221, 0.2);
  color: #185fa5;
}
.vrt-pr-price--base {
  background: rgba(83, 74, 183, 0.07);
  border: 1px solid rgba(83, 74, 183, 0.15);
  color: #534ab7;
}
.vrt-pr-text {
  font-size: 12px;
  color: #444;
}
.vrt-pr-dash {
  color: #bbb;
  font-size: 13px;
}

/* ── Requirements button ── */
.vrt-pr-req-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(108, 99, 255, 0.07);
  border: 1.5px solid rgba(108, 99, 255, 0.25);
  border-radius: 20px;
  color: #534ab7;
  font-size: 12px;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.vrt-pr-req-btn:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: #534ab7;
  transform: translateY(-1px);
}

/* ── Requirements Modal ── */
.vrt-pr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 28, 0.6);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
}
.vrt-pr-modal-overlay.open {
  opacity: 1;
}
.vrt-pr-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
.vrt-pr-modal-overlay.open .vrt-pr-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.vrt-pr-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #ebebeb;
  gap: 10px;
}
.vrt-pr-modal-sub {
  color: #8b87b8;
  font-size: 11px;
  margin: 0 0 3px;
  font-weight: 500;
}
.vrt-pr-modal-name {
  color: #26215c;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.vrt-pr-modal-x {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  color: #888;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
  font-family: inherit;
}
.vrt-pr-modal-x:hover {
  background: #ffe4e8;
  border-color: #ffc0c8;
  color: #e53e5a;
}
.vrt-pr-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.vrt-pr-modal-body::-webkit-scrollbar {
  width: 4px;
}
.vrt-pr-modal-body::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}
.vrt-pr-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vrt-pr-req-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f9f8ff;
  border: 1px solid rgba(83, 74, 183, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #333;
  line-height: 1.6;
  transition: background 0.15s;
}
.vrt-pr-req-item:hover {
  background: #eeedfe;
  border-color: rgba(83, 74, 183, 0.2);
}
.vrt-pr-req-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  background: rgba(29, 158, 117, 0.1);
  border: 1px solid rgba(29, 158, 117, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d9e75;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.vrt-pr-modal-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid #ebebeb;
  display: flex;
  justify-content: center;
}
.vrt-pr-modal-close {
  background: linear-gradient(135deg, #7f77dd, #534ab7);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 32px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
  min-width: 110px;
}
.vrt-pr-modal-close:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .vrt-pr-modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .vrt-pr-modal {
    max-height: 78vh;
    border-radius: 18px 18px 0 0;
    max-width: 100%;
  }
}
