/* ===== Variables & base ===== */
:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --text: #1a1d26;
  --text-muted: #5c6370;
  --accent: #c41e3a;
  --accent-hover: #a01830;
  --accent-soft: #fef2f4;
  --success: #0d9488;
  --success-soft: #ccfbf1;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
  --font: 'Outfit', 'DM Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ===== Premium header ===== */
.premium-header {
  text-align: center;
  margin-bottom: 2rem;
}

.header-banner {
  display: none;
  max-width: 640px;
  margin: 0 auto 1.25rem;
  padding: 0.875rem 1.25rem;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}

.header-banner--agent.visible {
  display: block;
}

.premium-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.premium-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-row {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}

.benefits-row.visible {
  display: flex;
}

.benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.benefit-icon {
  color: var(--success);
  font-weight: 700;
}

/* ===== Plan tabs (radio-style buttons) ===== */
.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.plan-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: var(--shadow);
}

.plan-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.plan-tabs input:checked + .plan-tab {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-tab-icon {
  font-size: 1.25rem;
}

/* ===== Package sections visibility ===== */
.packages-section {
  animation: fadeIn 0.3s ease;
}

.packages-section[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Individual layout: table + callback ===== */
.packages-individual {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.individual-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.individual-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .individual-layout {
    grid-template-columns: 1fr;
  }
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table .feature-col {
  text-align: left;
  background: #f8f9fc;
  font-weight: 500;
  color: var(--text);
  min-width: 180px;
}

.comparison-table--individual th:not(.feature-col) {
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}

.comparison-table--individual .best-col {
  background: #fffbf0;
  border-left: 2px solid #eab308;
  border-right: 2px solid #eab308;
}

.best-badge {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.price-row td {
  padding-top: 1rem;
  border-bottom: none;
}

.price {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.price-best {
  font-size: 1.25rem;
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-buy {
  background: #7c2d3a;
  color: #fff;
  width: 100%;
}

.btn-buy:hover {
  background: #6b2632;
}

.btn-buy-best {
  background: var(--accent);
  color: #fff;
}

.btn-buy-best:hover {
  background: var(--accent-hover);
}

.btn-callback {
  background: var(--accent);
  color: #fff;
  width: 100%;
  padding: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.btn-callback:hover {
  background: var(--accent-hover);
}

/* Callback card (Individual) */
.callback-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  position: sticky;
  top: 1rem;
}

.callback-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.callback-card .field {
  margin-bottom: 0.875rem;
}

.callback-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.callback-card input,
.callback-card textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.input-row .country-code {
  width: 90px;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
}

.input-row input {
  flex: 1;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem !important;
  margin-bottom: 0.75rem !important;
  cursor: pointer;
}

.footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ===== Agent/Builder/Developer section ===== */
.packages-agent {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.agent-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.field-inline label {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.city-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.link:hover {
  text-decoration: underline;
}

/* Agent comparison table */
.comparison-table--agent th.feature-col {
  min-width: 160px;
}

.comparison-table--agent .plan-col {
  min-width: 140px;
  vertical-align: top;
  padding: 1rem 0.75rem;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.comparison-table--agent .plan-recommended {
  background: #f0fdf4;
  border-left: 2px solid var(--success);
}

.recommended-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #065f46;
  background: var(--success-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.plan-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.price-old {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.15rem;
}

.price-new {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.validity {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.comparison-table--agent .plan-col .btn {
  width: 100%;
}

.comparison-table--agent .tick {
  color: var(--success);
  font-weight: 700;
}

.comparison-table--agent .cross {
  color: #dc2626;
  font-weight: 600;
}

/* Special packages */
.special-packages {
  margin-top: 1.5rem;
}

.special-packages h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.special-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.special-info strong {
  display: block;
  margin-bottom: 0.25rem;
}

.special-info p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.special-price {
  text-align: right;
}

.special-price .price-new {
  display: block;
  margin-bottom: 0.5rem;
}

/* Disclaimer & trust */
.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Request callback (Agent) */
.callback-section--agent {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .callback-section--agent {
    grid-template-columns: 1fr;
  }
}

.talk-experts {
  background: var(--success);
  color: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
}

.talk-experts strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.callback-form h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.callback-form .field input,
.callback-form .field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
}

.callback-form .field textarea {
  min-height: 80px;
  resize: vertical;
}

/* ===== Buy Now Popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: popupFadeIn 0.2s ease;
}

.popup-overlay[hidden] {
  display: none !important;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: popupSlideIn 0.25s ease;
}

@keyframes popupSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.popup-close:hover {
  color: var(--text);
  background: var(--bg);
}

.popup-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.popup-plan,
.popup-price {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.popup-price strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.popup-form {
  margin-top: 1.25rem;
}

.popup-form .field {
  margin-bottom: 0.875rem;
}

.popup-form .field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.popup-form .field input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
}

.popup-date-input {
  cursor: pointer;
}

.popup-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

.popup-form .field-row-date-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 380px) {
  .popup-form .field-row-date-time {
    grid-template-columns: 1fr;
  }
}

.popup-time-input {
  cursor: pointer;
}

.popup-time-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

.popup-form .checkbox-label {
  margin-bottom: 1rem !important;
}

.btn-popup-submit {
  width: 100%;
  margin-top: 0.25rem;
}
