/* ===== Plus Glamping Solution Advisor v2 — Frontend CSS ===== */
/* All colors use CSS variables injected inline from the plugin settings */

.pgdm-wrap * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.pgdm-wrap {
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  color: #3a3a3a;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ===== Hero ===== */
.pgdm-hero {
  background: linear-gradient(135deg, var(--pgdm-blue-dark) 0%, var(--pgdm-blue) 60%, var(--pgdm-blue-light) 100%);
  color: #fff;
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pgdm-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(208, 175, 133, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}
.pgdm-hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.pgdm-hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pgdm-gold);
  border: 1px solid rgba(208, 175, 133, 0.4);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 18px;
}
.pgdm-hero h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
}
.pgdm-hero p {
  font-size: 15px;
  opacity: 0.88;
  max-width: 480px;
  margin: 0 auto;
}
.pgdm-hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pgdm-hero-stat { text-align: center; }
.pgdm-hero-stat .num { font-size: 22px; font-weight: 700; color: var(--pgdm-gold); }
.pgdm-hero-stat .lbl { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }

@media (min-width: 640px) {
  .pgdm-hero { padding: 70px 20px 60px; }
  .pgdm-hero h1 { font-size: 34px; }
  .pgdm-hero p { font-size: 16px; }
}

/* ===== Tool Container ===== */
.pgdm-tool-wrap {
  max-width: 680px;
  margin: 20px auto 40px;
  padding: 0 16px;
}
.pgdm-container {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d0dae5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Progress bar */
.pgdm-progress-bar {
  height: 5px;
  background: #e8eef4;
  position: relative;
}
.pgdm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pgdm-blue), var(--pgdm-blue-light));
  transition: width 0.4s ease;
  width: 0%;
}
.pgdm-progress-text {
  display: flex;
  justify-content: space-between;
  padding: 10px 24px 0;
  font-size: 12px;
  color: #6b6b6b;
}

/* Question screen */
.pgdm-screen {
  padding: 28px 24px 24px;
  display: none;
}
.pgdm-screen.active { display: block; }
.pgdm-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pgdm-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pgdm-question {
  font-size: 19px;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 6px;
  line-height: 1.4;
}
.pgdm-hint {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 22px;
}

/* Options */
.pgdm-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 480px) {
  .pgdm-options { grid-template-columns: repeat(2, 1fr); }
}
.pgdm-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #d0dae5;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  min-height: 56px;
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.pgdm-option:hover {
  border-color: var(--pgdm-blue);
  background: #e7f1fb;
}
.pgdm-option.selected {
  border-color: var(--pgdm-blue);
  background: #e7f1fb;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}
.pgdm-opt-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8eef4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pgdm-option.selected .pgdm-opt-icon {
  background: var(--pgdm-blue);
  color: #fff;
}

/* Navigation */
.pgdm-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #d0dae5;
  background: #e8eef4;
}
.pgdm-btn {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  font-family: inherit;
}
.pgdm-btn-back {
  background: transparent;
  color: #6b6b6b;
  border: 1px solid #d0dae5;
}
.pgdm-btn-back:hover { background: #fff; }
.pgdm-btn-next {
  background: var(--pgdm-blue);
  color: #fff;
}
.pgdm-btn-next:hover { background: var(--pgdm-blue-dark); }
.pgdm-btn-next:disabled {
  background: #d0dae5;
  color: #6b6b6b;
  cursor: not-allowed;
}

/* ===== Results ===== */
.pgdm-results { padding: 32px 24px; }
.pgdm-results h2 {
  font-size: 22px;
  color: #2b2b2b;
  margin-bottom: 6px;
  font-family: Georgia, serif;
}
.pgdm-results-sub {
  font-size: 14px;
  color: #6b6b6b;
  margin-bottom: 24px;
}
.pgdm-results-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pgdm-sum-item {
  font-size: 12px;
  color: #6b6b6b;
  background: #e8eef4;
  padding: 5px 12px;
  border-radius: 16px;
}
.pgdm-sum-item strong { color: #2b2b2b; }

/* Section labels */
.pgdm-section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b6b6b;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8eef4;
}

/* Badges */
.pgdm-best-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}
.pgdm-budget-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(45, 122, 79, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}
.pgdm-rec-best {
  border: 2px solid var(--pgdm-gold);
  box-shadow: 0 4px 20px rgba(208, 175, 133, 0.2);
}

/* Warning tags */
.pgdm-rec-tag-warn {
  background: #fff3cd !important;
  color: #856404 !important;
  border: 1px solid #ffc107;
}

.pgdm-rec-note {
  font-size: 12px;
  font-style: italic;
  color: #6b6b6b;
  margin-top: 6px;
  padding: 4px 8px;
  background: #e8eef4;
  border-radius: 6px;
}
.pgdm-rec-card {
  border: 1px solid #d0dae5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.pgdm-rec-header {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pgdm-rec-num {
  font-size: 13px;
  opacity: 0.8;
}
.pgdm-rec-type {
  flex: 1;
}
.pgdm-rec-content {
  display: flex;
  flex-direction: column;
}
@media (min-width: 560px) {
  .pgdm-rec-content { flex-direction: row; }
}
.pgdm-rec-img {
  flex-shrink: 0;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #e8eef4;
}
@media (min-width: 560px) {
  .pgdm-rec-img {
    width: 180px;
    height: auto;
    min-height: 160px;
  }
}
.pgdm-rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pgdm-rec-body {
  padding: 16px;
  font-size: 14px;
  color: #3a3a3a;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}
.pgdm-rec-price {
  font-size: 17px;
  font-weight: 700;
  color: #2d7a4f;
  margin-top: 8px;
}
.pgdm-rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pgdm-rec-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  background: #e8eef4;
  color: #6b6b6b;
}

/* ===== Selection Row (checkbox + quantity) ===== */
.pgdm-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8eef4;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}
@media (max-width: 560px) {
  .pgdm-select-row {
    flex-wrap: wrap;
  }
  .pgdm-qty-wrapper {
    margin-left: 0;
  }
}
.pgdm-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  user-select: none;
  flex-shrink: 0;
}
.pgdm-check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pgdm-blue);
  cursor: pointer;
  flex-shrink: 0;
}
.pgdm-check-text {
  transition: color 0.2s;
}
.pgdm-check-label input:checked ~ .pgdm-check-text {
  color: var(--pgdm-blue);
}

/* Quantity selector */
.pgdm-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d0dae5;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  width: auto;
}
.pgdm-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #e8eef4;
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pgdm-qty-btn:hover {
  background: var(--pgdm-blue);
  color: #fff;
}
.pgdm-qty-btn:active {
  background: var(--pgdm-blue-dark);
}
.pgdm-qty-wrapper .pgdm-qty-input {
  width: 44px;
  height: 32px;
  border: none;
  border-left: 1px solid #d0dae5;
  border-right: 1px solid #d0dae5;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #2b2b2b;
  outline: none;
  font-family: inherit;
  flex-shrink: 0;
  -moz-appearance: textfield;
}
.pgdm-qty-input::-webkit-outer-spin-button,
.pgdm-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pgdm-qty-unit {
  font-size: 12px;
  color: #6b6b6b;
  margin-left: 6px;
  flex-shrink: 0;
}

/* ===== Quote Bar ===== */
.pgdm-quote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--pgdm-blue-dark) 0%, var(--pgdm-blue) 100%);
  border-radius: 12px;
  position: sticky;
  bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}
.pgdm-quote-bar-info {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.pgdm-quote-count {
  font-size: 20px;
  font-weight: 800;
  color: var(--pgdm-gold);
}
.pgdm-quote-btn {
  background: var(--pgdm-gold);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  font-family: inherit;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pgdm-quote-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(208, 175, 133, 0.4);
}
.pgdm-quote-btn:disabled {
  background: #8a8a8a;
  color: #d0d0d0;
  cursor: not-allowed;
}

/* CTA buttons (now secondary) */
.pgdm-results-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pgdm-results-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  min-height: 46px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.pgdm-cta-secondary {
  background: #fff;
  color: var(--pgdm-blue);
  border: 1px solid var(--pgdm-blue);
}
.pgdm-cta-secondary:hover { background: #e7f1fb; }
.pgdm-restart {
  display: block;
  margin: 20px auto 0;
  font-size: 13px;
  color: #6b6b6b;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

/* ===== Info Section ===== */
.pgdm-info {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.pgdm-info-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d0dae5;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.pgdm-info-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 12px;
}
.pgdm-info-card ul {
  list-style: none;
  padding: 0;
}
.pgdm-info-card li {
  font-size: 13px;
  color: #6b6b6b;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}
.pgdm-info-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #2d7a4f;
  font-weight: 700;
}
