/* ==========================================================================
   DESIGNS BY KOA - COMPONENTS & INTERACTIVE MODULES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Interactive Before/After CAD vs Render Slider
   -------------------------------------------------------------------------- */
.comparison-wrapper {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-solid);
  user-select: none;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: ew-resize;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid var(--accent-gold);
}

.comparison-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: #090a0d;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  box-shadow: 0 0 20px rgba(207, 168, 88, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(207, 168, 88, 0.9);
}

.slider-handle svg {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
}

.slider-label {
  position: absolute;
  bottom: 24px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: var(--backdrop-blur);
  pointer-events: none;
}

.label-before {
  left: 24px;
  background: rgba(15, 17, 23, 0.85);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.label-after {
  right: 24px;
  background: rgba(207, 168, 88, 0.2);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
}

.comparison-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.comparison-caption strong {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   2. Dynamic Fair-Value Pricing Calculator
   -------------------------------------------------------------------------- */
.calculator-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.calc-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.calc-section-title span.step-num {
  width: 24px;
  height: 24px;
  background: var(--accent-gold-glow);
  color: var(--accent-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid var(--border-accent);
}

.calc-form-group {
  margin-bottom: 30px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.category-option {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-option:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.category-option.active {
  border-color: var(--accent-gold);
  background: rgba(207, 168, 88, 0.08);
}

.category-option .cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.category-option .cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-option .cat-rate {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.category-option .cat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Views Counter & Stepper */
.views-control-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
}

.views-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.views-header-row .views-count {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.views-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.views-range-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: #2a2e3d;
  outline: none;
  cursor: pointer;
}

.views-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(207, 168, 88, 0.7);
  transition: transform 0.15s ease;
}

.views-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-glow);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Quality Level & Turnaround Pills */
.options-pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pill-option {
  padding: 12px 14px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pill-option:hover {
  border-color: var(--border-medium);
}

.pill-option.active {
  border-color: var(--accent-gold);
  background: rgba(207, 168, 88, 0.1);
}

.pill-option .pill-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.pill-option .pill-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* Add-ons Checkboxes */
.addons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.addon-checkbox-label:hover {
  border-color: var(--border-medium);
}

.addon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.addon-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.addon-info .addon-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.addon-info .addon-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.addon-cost {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

/* Calculator Summary Card (Right Side) */
.calc-summary-card {
  background: linear-gradient(180deg, #161922 0%, #101218 100%);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.calc-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.summary-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.summary-header h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.summary-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.summary-line-items {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.summary-line-item .item-label {
  color: var(--text-secondary);
}

.summary-line-item .item-val {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--accent-emerald-glow);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 24px;
}

.summary-total-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-bottom: 24px;
}

.total-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.total-amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent-gold-light);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.total-amount span.currency {
  font-size: 1.5rem;
}

.total-amount span.period {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-weight: 400;
}

.summary-guarantees {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.guarantee-item svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Transparent Pricing Packages Cards
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-smooth);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(207, 168, 88, 0.08) 0%, rgba(22, 25, 34, 0.85) 100%);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 16px 45px rgba(207, 168, 88, 0.15);
}

.featured-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b89142 100%);
  color: #0b0c10;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.card-header-block {
  margin-bottom: 24px;
}

.card-header-block h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.card-header-block p {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 42px;
}

.card-price-block {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.price-main {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   4. US Market Analysis & Fair-Value Comparison
   -------------------------------------------------------------------------- */
.market-view-toggle {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.view-toggle-btn svg {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.view-toggle-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: rgba(207, 168, 88, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.view-toggle-btn.active svg {
  color: var(--accent-gold);
}

/* Mobile Comparison Cards Container */
.market-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.market-comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.market-comp-card:hover {
  border-color: var(--border-medium);
}

.comp-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comp-card-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(207, 168, 88, 0.12);
  border: 1px solid var(--border-accent);
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.comp-card-header h4 {
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.25;
}

.comp-winner-block {
  background: linear-gradient(135deg, rgba(207, 168, 88, 0.12) 0%, rgba(22, 25, 34, 0.9) 100%);
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(207, 168, 88, 0.1);
}

.winner-header {
  margin-bottom: 5px;
}

.winner-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-light);
  display: inline-block;
}

.winner-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.comp-alternatives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.alt-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alt-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
}

.alt-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.market-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--backdrop-blur);
}

.table-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(207, 168, 88, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-align: center;
}

.table-scroll-hint svg {
  color: var(--accent-gold);
  animation: pulseX 1.5s ease-in-out infinite;
}

@keyframes pulseX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 780px;
}

.market-table th, .market-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.market-table th {
  background: var(--bg-elevated);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.market-table th.col-highlight {
  background: rgba(207, 168, 88, 0.12);
  color: var(--accent-gold-light);
  border-bottom: 2px solid var(--accent-gold);
}

.market-table td.col-highlight {
  background: rgba(207, 168, 88, 0.04);
  font-weight: 600;
  color: #fff;
}

.market-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.market-table tr:hover td.col-highlight {
  background: rgba(207, 168, 88, 0.08);
}

.status-check {
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.status-cross {
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   5. Filterable Portfolio Gallery
   -------------------------------------------------------------------------- */
.portfolio-filter-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold);
  color: #0b0c10;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 18px rgba(207, 168, 88, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-solid);
  cursor: pointer;
  transition: var(--transition-smooth);
  aspect-ratio: 4 / 3;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 10, 13, 0.95) 0%, rgba(9, 10, 13, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 6px;
  font-weight: 700;
}

.portfolio-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.portfolio-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Onboarding Modal / Brief Submission
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.85);
  backdrop-filter: var(--backdrop-blur);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #11141c;
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px; /* Prevents auto-zoom on iOS mobile */
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(207, 168, 88, 0.25);
}

.upload-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.upload-dropzone:hover {
  border-color: var(--accent-gold);
  background: rgba(207, 168, 88, 0.04);
}

.upload-dropzone svg {
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.upload-dropzone p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.upload-dropzone span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-content {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
  background: #090a0d;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: #000;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-details {
  padding: 28px 32px;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  color: var(--accent-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 22px;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #11141c;
  border: 1px solid var(--accent-gold);
  padding: 16px 24px;
  border-radius: 12px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Media Queries */
/* ==========================================================================
   Responsive Component Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
    gap: 28px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  /* Portfolio Mobile Scroll Filter */
  .portfolio-filter-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px 8px 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portfolio-filter-nav::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  /* Comparison Slider Mobile */
  .comparison-slider {
    aspect-ratio: 16 / 10;
  }
  .slider-label {
    padding: 6px 12px;
    font-size: 0.72rem;
    bottom: 12px;
    border-radius: 6px;
  }
  .label-before {
    left: 12px;
  }
  .label-after {
    right: 12px;
  }
  .slider-handle {
    width: 42px;
    height: 42px;
  }
  .slider-handle svg {
    width: 18px;
    height: 18px;
  }
  .comparison-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
    font-size: 0.82rem;
  }

  /* Market Analysis Mobile Cards & View Switcher */
  .market-view-toggle {
    display: flex;
  }
  .market-mobile-cards {
    display: flex;
  }
  .market-table-card {
    display: none;
  }
  .market-table-card.show-table {
    display: block !important;
  }
  .market-mobile-cards.hide-cards {
    display: none !important;
  }

  /* Calculator Mobile */
  .calculator-container {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .calc-section-title {
    font-size: 0.98rem;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .category-option {
    padding: 14px;
  }
  .options-pill-group {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .pill-option {
    padding: 10px 14px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .pill-option .pill-sub {
    margin-top: 0;
    font-size: 0.75rem;
  }
  .views-control-box {
    padding: 16px 14px;
  }
  .addon-checkbox-label {
    padding: 10px 14px;
    gap: 12px;
  }
  .addon-left {
    gap: 10px;
  }
  .addon-cost {
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .calc-summary-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .total-amount {
    font-size: 2.2rem;
  }

  /* Portfolio Grid Single Column */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .portfolio-card {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }
  .portfolio-overlay {
    padding: 18px;
  }
  .portfolio-title {
    font-size: 1.05rem;
  }

  /* Pricing Cards Mobile */
  .pricing-card {
    padding: 32px 20px;
    border-radius: 16px;
  }
  .price-main {
    font-size: 2.4rem;
  }
  .feature-list li {
    font-size: 0.86rem;
    gap: 10px;
  }

  /* Modal Form Mobile */
  .modal-backdrop {
    padding: 12px;
  }
  .modal-content {
    padding: 24px 18px;
    max-height: 92vh;
    border-radius: 16px;
  }
  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .upload-dropzone {
    padding: 20px 14px;
  }
  .upload-dropzone svg {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }
  .upload-dropzone p {
    font-size: 0.82rem;
  }
  .upload-dropzone span {
    font-size: 0.72rem;
  }

  /* Lightbox Mobile */
  .lightbox-content {
    max-height: 92vh;
    overflow-y: auto;
  }
  .lightbox-img-wrap {
    max-height: 260px;
  }
  .lightbox-details {
    padding: 18px 18px;
  }

  /* FAQ Mobile */
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
    gap: 10px;
  }
  .faq-answer {
    padding: 0 18px;
    font-size: 0.88rem;
  }
  .faq-item.open .faq-answer {
    padding-bottom: 18px;
    max-height: 350px;
  }

  /* Toast Notification Mobile */
  .toast-notice {
    bottom: 20px;
    right: 16px;
    left: 16px;
    padding: 14px 18px;
    font-size: 0.85rem;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .comparison-slider {
    aspect-ratio: 4 / 3;
  }
  .market-comp-card {
    padding: 15px 14px;
  }
  .comp-card-header h4 {
    font-size: 0.96rem;
  }
  .comp-alternatives-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pill-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .pill-option .pill-sub {
    font-size: 0.72rem;
  }
  .addon-checkbox-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .addon-cost {
    align-self: flex-end;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   HubSpot Embedded Form Custom Dark/Gold Design System
   ========================================================================== */
.hs-form-frame,
#hubspotFormContainer,
.hs-form {
  font-family: var(--font-sans) !important;
  color: var(--text-primary) !important;
  width: 100% !important;
  position: relative;
  min-height: 460px;
}

.hs-form-frame iframe,
#hubspotFormContainer iframe {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
}

/* Field Containers */
.hs-form .hs-form-field {
  margin-bottom: 20px !important;
}

.hs-form .hs-form-field > label {
  display: block !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 8px !important;
}

.hs-form .hs-form-field > label .hs-form-required {
  color: var(--accent-gold) !important;
  margin-left: 4px !important;
}

/* Inputs, Textareas, Selects */
.hs-form .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]) {
  width: 100% !important;
  max-width: 100% !important;
  padding: 13px 16px !important;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  outline: none !important;
  transition: var(--transition-smooth) !important;
  box-sizing: border-box !important;
}

.hs-form .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 14px rgba(207, 168, 88, 0.25) !important;
}

.hs-form textarea.hs-input {
  min-height: 100px !important;
  resize: vertical !important;
}

.hs-form select.hs-input {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cfa858' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
}

/* Multi-column Rows / Fieldsets */
.hs-form fieldset {
  max-width: 100% !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

@media (max-width: 600px) {
  .hs-form fieldset {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

.hs-form fieldset .hs-form-field {
  width: 100% !important;
  float: none !important;
}

/* Submit Button */
.hs-form .hs-button,
.hs-form input[type="submit"],
.hs-button.primary {
  width: 100% !important;
  padding: 15px 28px !important;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b89142 100%) !important;
  color: #0b0c10 !important;
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  box-shadow: 0 6px 20px rgba(207, 168, 88, 0.25) !important;
  margin-top: 12px !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

.hs-form .hs-button:hover,
.hs-form input[type="submit"]:hover,
.hs-button.primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(207, 168, 88, 0.4) !important;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, #cfa858 100%) !important;
}

/* Validation & Help Messages */
.hs-form .hs-error-msgs {
  list-style: none !important;
  padding: 0 !important;
  margin: 6px 0 0 0 !important;
}

.hs-form .hs-error-msgs label,
.hs-form .hs-error-msg {
  color: #ef4444 !important;
  font-size: 0.8rem !important;
}

.hs-form .hs-field-desc {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
}

/* Submitted Message Success */
.hs-form .submitted-message,
.submitted-message {
  background: rgba(207, 168, 88, 0.1) !important;
  border: 1px solid var(--accent-gold) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  text-align: center !important;
  color: #f5f6f9 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}

