/**
 * Premium Quote Modal - Industrial UX/UI
 * Inspired by: Mark Wheeler, Jony Ive, Leo Natsume, Luke Wroblewski, Steve Jobs
 * 
 * Philosophy: Clarity, Hierarchy, Purposeful Animation, Zero AI-feel
 * Design System: Clear Painéis Industrial
 */

/* ============================================
   PREMIUM BANNER (FAQ CTA)
   ============================================ */

.faq__premium-banner {
  position: relative;
  margin: 100px auto 0;
  max-width: 1100px;
  isolation: isolate;
}

.premium-banner__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 800px 200px at 50% 50%,
      rgba(199, 166, 84, 0.08) 0%,
      rgba(199, 166, 84, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.premium-banner__content {
  position: relative;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(199, 166, 84, 0.15);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.02),
    0 8px 24px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(199, 166, 84, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-banner__content:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.03),
    0 12px 32px rgba(0, 0, 0, 0.05),
    0 24px 64px rgba(199, 166, 84, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-banner__header {
  text-align: center;
  margin-bottom: 32px;
}

.premium-banner__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #C7A654;
  background: rgba(199, 166, 84, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.premium-banner__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: #0f0f0f;
  margin: 0 0 12px 0;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.premium-banner__title-highlight {
  display: block;
  background: linear-gradient(135deg, #C7A654 0%, #B89640 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.premium-banner__title-text {
  display: block;
  font-weight: 400;
  color: #464646;
}

.premium-banner__description {
  font-size: 15px;
  line-height: 1.6;
  color: #646464;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.premium-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.premium-banner__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #C7A654 0%, #B08D44 100%);
  border: none;
  border-radius: 12px;
  padding: 18px 36px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 2px 8px rgba(199, 166, 84, 0.2),
    0 8px 24px rgba(199, 166, 84, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.premium-banner__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.premium-banner__cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 4px 12px rgba(199, 166, 84, 0.25),
    0 12px 32px rgba(199, 166, 84, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.premium-banner__cta:hover::before {
  left: 100%;
}

.premium-banner__cta:active {
  transform: translateY(0) scale(0.98);
}

.premium-banner__cta-icon {
  display: flex;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-banner__cta:hover .premium-banner__cta-icon {
  transform: translateY(-2px);
}

.premium-banner__cta-arrow {
  margin-left: 4px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-banner__cta:hover .premium-banner__cta-arrow {
  transform: translateX(4px);
}

.premium-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #646464;
  text-decoration: none;
  transition: all 0.2s ease;
}

.premium-banner__link:hover {
  color: #C7A654;
}

.premium-banner__link-icon {
  transition: transform 0.2s ease;
}

.premium-banner__link:hover .premium-banner__link-icon {
  transform: scale(1.1);
}

.premium-banner__trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.premium-banner__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #464646;
}

.premium-banner__trust-item svg {
  color: #C7A654;
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive - Mobile Premium Refinements (Wheeler, Ive, Natsume, Wroblewski) */
@media (max-width: 768px) {
  .faq__premium-banner {
    margin: 64px auto 0;
    /* Even spacing */
  }

  .premium-banner__content {
    padding: 32px 24px;
  }

  /* Badge: Consistent with site badges */
  .premium-banner__label {
    font-size: 12px;
    padding: 8px 16px;
    letter-spacing: 0.08em;
  }

  /* Title: Larger, even size (28px) */
  .premium-banner__title {
    font-size: 28px;
    margin-bottom: 16px;
    /* Even spacing */
  }

  /* Description: 16px as requested, CENTERED */
  .premium-banner__description {
    font-size: 16px;
    width: 320px;
    line-height: 1.5;
    text-align: center;
    margin: 0 auto;
  }

  /* Actions spacing */
  .premium-banner__actions {
    width: 100%;
    gap: 16px;
    /* Even spacing */
    margin-bottom: 24px;
    /* Even spacing */
  }

  .premium-banner__cta {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    /* Even padding */
    font-size: 15px;
  }

  /* Secondary link: 14px as requested */
  .premium-banner__link {
    font-size: 14px;
    margin-top: 8px;
    /* Even spacing from button */
  }

  /* Trust items: Larger, more prominent */
  .premium-banner__trust {
    flex-direction: column;
    gap: 14px;
    /* Even spacing */
    align-items: center;
    padding-top: 24px;
    /* Even spacing */
  }

  .premium-banner__trust-item {
    font-size: 15px;
    font-weight: 500;
    gap: 10px;
    color: #333;
  }

  .premium-banner__trust-item svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   PREMIUM MODAL REDESIGN
   ============================================ */

/* Modal Product Selection - COMPLETE REDESIGN */

.quote-card {
  background: #ffffff;
}

.quote-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 0;
}

.quote-hero__subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #0f0f0f;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.quote-hero__description {
  font-size: 14px;
  line-height: 1.6;
  color: #646464;
  margin: 0;
}

/* Premium Product Selector */
.quote-field {
  margin-bottom: 24px;
}

.quote-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #464646;
  margin-bottom: 12px;
}

.quote-custom-select {
  position: relative;
}

.quote-select-trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 15px;
  color: #0f0f0f;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.quote-select-trigger:hover {
  border-color: rgba(199, 166, 84, 0.3);
  background: rgba(199, 166, 84, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.quote-select-trigger:focus {
  outline: none;
  border-color: #C7A654;
  box-shadow:
    0 0 0 4px rgba(199, 166, 84, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.quote-custom-select.open .quote-select-trigger {
  border-color: #C7A654;
  box-shadow:
    0 0 0 4px rgba(199, 166, 84, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.quote-select-arrow {
  flex-shrink: 0;
  color: #646464;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-custom-select.open .quote-select-arrow {
  transform: rotate(180deg);
}

.quote-select-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

/* Premium Options Dropdown */
.quote-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 12px 48px rgba(0, 0, 0, 0.12);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  transform-origin: top center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-custom-select.open .quote-select-options {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0) scale(1);
  overflow-y: auto;
}

.quote-select-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  color: #0f0f0f;
}

.quote-select-option:hover {
  background: rgba(199, 166, 84, 0.06);
  transform: translateX(4px);
}

.quote-select-option.selected {
  background: linear-gradient(135deg, rgba(199, 166, 84, 0.12) 0%, rgba(199, 166, 84, 0.08) 100%);
  color: #C7A654;
  font-weight: 600;
}

.quote-option-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Variant Select (Standard Select Enhancement) */
#variantGroup {
  transform-origin: top;
  animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.quote-select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #0f0f0f;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.quote-select:hover {
  border-color: rgba(199, 166, 84, 0.3);
  background-color: rgba(199, 166, 84, 0.02);
  transform: translateY(-1px);
}

.quote-select:focus {
  outline: none;
  border-color: #C7A654;
  box-shadow:
    0 0 0 4px rgba(199, 166, 84, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Action Buttons - Premium Design */
.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.quote-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.quote-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #C7A654 0%, #B08D44 100%);
  box-shadow:
    0 2px 8px rgba(199, 166, 84, 0.2),
    0 8px 24px rgba(199, 166, 84, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quote-btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.quote-btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 4px 12px rgba(199, 166, 84, 0.25),
    0 12px 32px rgba(199, 166, 84, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.quote-btn--primary:hover::before {
  left: 100%;
}

.quote-btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.quote-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.quote-btn--add-more {
  color: #646464;
  background: rgba(0, 0, 0, 0.03);
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.quote-btn--add-more:hover {
  color: #C7A654;
  background: rgba(199, 166, 84, 0.06);
  border-color: rgba(199, 166, 84, 0.2);
  transform: translateY(-1px);
}

.quote-helper {
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #969696;
  margin: 8px 0 0 0;
}

/* Cart Summary - Premium Design */
.quote-summary {
  background: linear-gradient(135deg, rgba(249, 249, 249, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}

.quote-summary__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.quote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #C7A654;
  background: rgba(199, 166, 84, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
}

.quote-summary__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: #969696;
}

.quote-summary__empty svg {
  opacity: 0.3;
}

/* Cart Items */
.quote-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-item:hover {
  border-color: rgba(199, 166, 84, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quote-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #0f0f0f;
  margin: 0;
}

.quote-item__variant {
  font-size: 12px;
  color: #969696;
}

.quote-item__remove {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #969696;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-item__remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  transform: scale(1.1);
}

/* Focus States - Accessibility */
.quote-btn:focus-visible,
.quote-select:focus-visible,
.quote-select-trigger:focus-visible {
  outline: 2px solid #C7A654;
  outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .quote-hero__subtitle {
    font-size: 18px;
  }

  .quote-summary {
    padding: 20px;
  }

  .quote-btn {
    font-size: 14px;
    padding: 14px 20px;
  }
}