/* ================================================================
   APEX SPORTSWEAR — Premium RFQ Form v2
   Ultra-modern Glassmorphism · Animated Stepper · Confetti Success
   ================================================================ */

/* ----------------------------------------------------------------
   KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes rfqFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes rfqSlideRight {
  from { opacity: 0; transform: translateX(60px) scale(0.97);  }
  to   { opacity: 1; transform: translateX(0) scale(1);        }
}
@keyframes rfqSlideLeft {
  from { opacity: 0; transform: translateX(-60px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1);        }
}
@keyframes rfqPulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
@keyframes rfqShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
@keyframes rfqDrawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes rfqDrawCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes rfqSuccessPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes rfqConfetti {
  0%   { transform: translateY(0) rotate(0deg) scale(1);     opacity: 1; }
  100% { transform: translateY(-160px) rotate(720deg) scale(0); opacity: 0; }
}
@keyframes rfqProgressGlow {
  0%,100% { box-shadow: 0 0 8px rgba(99,102,241,0.4); }
  50%     { box-shadow: 0 0 24px rgba(99,102,241,0.8); }
}
@keyframes rfqSpin {
  to { transform: rotate(360deg); }
}
@keyframes rfqDropPulse {
  0%,100% { border-color: rgba(99,102,241,0.3); }
  50%     { border-color: rgba(99,102,241,0.7); }
}
@keyframes rfqFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes rfqGlowOrb {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%     { opacity: 0.7; transform: scale(1.15); }
}
@keyframes rfqParticle {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(40px); opacity: 0; }
}
@keyframes rfqStepPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes rfqGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes rfqSuccessFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rfqRipple {
  to { transform: scale(2.5); opacity: 0; }
}

/* ----------------------------------------------------------------
   PAGE HERO
   ---------------------------------------------------------------- */
.rfq-hero {
  padding: 140px 0 70px;
  text-align: center;
  background: linear-gradient(175deg, #06060e 0%, #0a0a1a 40%, #0e0e16 100%);
  position: relative;
  overflow: hidden;
}

.rfq-hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.04) 40%, transparent 70%);
  pointer-events: none;
}

.rfq-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.06), transparent 70%);
  pointer-events: none;
  animation: rfqGlowOrb 6s ease-in-out infinite;
}

.rfq-hero h1 {
  margin-bottom: 16px;
  position: relative;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.rfq-hero p {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   RFQ PAGE WRAPPER
   ---------------------------------------------------------------- */
.rfq-page {
  background: linear-gradient(180deg, #0e0e16 0%, #080812 50%, #0a0a14 100%);
  padding: 0 0 100px;
  position: relative;
  min-height: 80vh;
}

/* Ambient background orbs */
.rfq-page::before {
  content: '';
  position: absolute;
  top: 200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.04), transparent 65%);
  pointer-events: none;
  animation: rfqGlowOrb 8s ease-in-out infinite;
}

.rfq-page::after {
  content: '';
  position: absolute;
  bottom: 300px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.035), transparent 65%);
  pointer-events: none;
  animation: rfqGlowOrb 10s ease-in-out 3s infinite;
}

.rfq-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------------
   FLOATING PARTICLES
   ---------------------------------------------------------------- */
.rfq-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rfq-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(99,102,241,0.3);
  animation: rfqParticle linear infinite;
}

/* ----------------------------------------------------------------
   PROGRESS INDICATOR
   ---------------------------------------------------------------- */
.rfq-progress-wrap {
  padding: 0 0 48px;
  position: relative;
  scroll-margin-top: 100px;
}

.rfq-steps-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Progress connecting line */
.rfq-steps-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 44px;
  right: 44px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  z-index: 0;
}

.rfq-progress-line {
  position: absolute;
  top: 22px;
  left: 44px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
  border-radius: 4px;
  z-index: 1;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 16px rgba(99,102,241,0.4);
}

.rfq-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.rfq-step-item:hover {
  transform: translateY(-2px);
}

.rfq-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rfq-step-number {
  font-family: var(--font-space, 'Space Grotesk', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  transition: all 0.4s ease;
}

.rfq-step-check {
  position: absolute;
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.rfq-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.4s ease;
  white-space: nowrap;
}

/* Active step */
.rfq-step-item.active .rfq-step-circle {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(99,102,241,0.5), 0 0 48px rgba(99,102,241,0.2);
  animation: rfqPulseRing 2s ease-out infinite;
}

.rfq-step-item.active .rfq-step-number {
  color: #fff;
}

.rfq-step-item.active .rfq-step-label {
  color: rgba(255,255,255,0.9);
}

/* Done step */
.rfq-step-item.done .rfq-step-circle {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(34,197,94,0.35);
}

.rfq-step-item.done .rfq-step-number {
  opacity: 0;
  transform: scale(0);
}

.rfq-step-item.done .rfq-step-check {
  opacity: 1;
  transform: scale(1);
}

.rfq-step-item.done .rfq-step-label {
  color: rgba(34,197,94,0.8);
}

/* ----------------------------------------------------------------
   FORM CARD — GLASS PANEL
   ---------------------------------------------------------------- */
.rfq-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 48px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* Top gradient accent line */
.rfq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, #a855f7, transparent);
  z-index: 1;
}

/* Inner glow */
.rfq-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(99,102,241,0.03), transparent 50%);
  pointer-events: none;
}

/* ----------------------------------------------------------------
   CARD HEADER
   ---------------------------------------------------------------- */
.rfq-card-head {
  padding: 40px 44px 0;
  position: relative;
  z-index: 2;
}

.rfq-card-step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #8b5cf6;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rfq-card-title {
  font-family: var(--font-manrope, 'Manrope', sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.rfq-card-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 520px;
}

/* ----------------------------------------------------------------
   PANELS — STEP CONTENT
   ---------------------------------------------------------------- */
.rfq-panels {
  position: relative;
  z-index: 2;
}

.rfq-panel {
  display: none;
  padding: 36px 44px 10px;
  animation: rfqSlideRight 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.rfq-panel.active {
  display: block;
}

.rfq-panel.slide-back {
  animation-name: rfqSlideLeft;
}

/* ----------------------------------------------------------------
   FORM ELEMENTS — GLASS INPUTS
   ---------------------------------------------------------------- */
.rfq-field {
  margin-bottom: 22px;
}

.rfq-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rfq-required {
  color: #f43f5e;
  font-weight: 700;
}

.rfq-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  color: #8b5cf6;
  font-size: 0.6rem;
  font-style: normal;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 4px;
  transition: background 0.3s ease;
}

.rfq-info:hover {
  background: rgba(99,102,241,0.3);
}

.rfq-info::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(15,15,25,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 14px;
  border-radius: 10px;
  width: 240px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 50;
}

.rfq-info:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.rfq-input,
.rfq-select,
.rfq-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rfq-input::placeholder,
.rfq-textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.rfq-input:focus,
.rfq-select:focus,
.rfq-textarea:focus {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 0 24px rgba(99,102,241,0.08);
  outline: none;
}

.rfq-input.error,
.rfq-select.error {
  border-color: #f43f5e;
  background: rgba(244,63,94,0.05);
  animation: rfqShake 0.5s ease;
}

.rfq-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.rfq-select option {
  background: #1a1a2e;
  color: #fff;
}

.rfq-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.rfq-error-msg {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #f43f5e;
  margin-top: 6px;
  padding-left: 2px;
}

.rfq-error-msg.show {
  display: flex;
}

.rfq-error-msg::before {
  content: '⚠';
  font-size: 0.7rem;
}

/* Grid helpers */
.rfq-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rfq-phone-row {
  display: flex;
  gap: 10px;
}

.rfq-phone-prefix {
  max-width: 80px;
  flex-shrink: 0;
  text-align: center;
}

/* Section label */
.rfq-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rfq-section-label::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 4px;
}

.rfq-section-gap {
  margin-top: 32px;
}

/* ----------------------------------------------------------------
   PRODUCT TYPE CARDS
   ---------------------------------------------------------------- */
.rfq-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rfq-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.rfq-product-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.1);
}

.rfq-product-card:hover::before {
  opacity: 1;
}

.rfq-product-card.selected {
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 24px rgba(99,102,241,0.15), 0 0 0 1px rgba(99,102,241,0.3) inset;
  transform: translateY(-2px);
}

.rfq-product-card.selected::before {
  opacity: 1;
}

.rfq-product-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  animation: rfqStepPop 0.4s ease;
}

.rfq-product-icon {
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
}

.rfq-product-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.rfq-product-card.selected .rfq-product-name {
  color: #fff;
}

/* ----------------------------------------------------------------
   FABRIC SELECTION CARDS
   ---------------------------------------------------------------- */
.rfq-fabric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rfq-fabric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-fabric-card:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

.rfq-fabric-card.selected {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 20px rgba(99,102,241,0.1);
}

.rfq-fabric-swatch {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s ease;
}

.rfq-fabric-card.selected .rfq-fabric-swatch {
  border-color: rgba(99,102,241,0.5);
}

.rfq-fabric-info {
  flex: 1;
  min-width: 0;
}

.rfq-fabric-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2px;
}

.rfq-fabric-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
}

.rfq-check-tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.rfq-fabric-card.selected .rfq-check-tick {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

/* ----------------------------------------------------------------
   PRINTING METHOD CARDS
   ---------------------------------------------------------------- */
.rfq-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rfq-method-card {
  padding: 22px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-method-card:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.rfq-method-card.selected {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 24px rgba(99,102,241,0.12);
}

.rfq-method-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.rfq-method-card.selected .rfq-method-badge {
  opacity: 1;
  transform: scale(1);
}

.rfq-method-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.rfq-method-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.rfq-method-desc {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
}

/* ----------------------------------------------------------------
   EMBROIDERY TOGGLE
   ---------------------------------------------------------------- */
.rfq-toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 28px;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-toggle-row:hover {
  border-color: rgba(99,102,241,0.2);
}

.rfq-toggle-row.on {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.04);
}

.rfq-toggle-switch {
  width: 50px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.rfq-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.rfq-toggle-row.on .rfq-toggle-switch {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 0 16px rgba(99,102,241,0.3);
}

.rfq-toggle-row.on .rfq-toggle-switch::after {
  left: 25px;
  background: #fff;
}

.rfq-toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.rfq-toggle-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* ----------------------------------------------------------------
   FILE UPLOAD DROPZONES
   ---------------------------------------------------------------- */
.rfq-dropzones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rfq-dropzone {
  position: relative;
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.rfq-drop-inner {
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.rfq-dropzone:hover {
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.03);
}

.rfq-dropzone.drag-over {
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.06);
  animation: rfqDropPulse 1s ease infinite;
}

.rfq-drop-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  animation: rfqFloat 3s ease-in-out infinite;
}

.rfq-drop-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}

.rfq-drop-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

.rfq-drop-types {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rfq-drop-type {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  color: #8b5cf6;
  border-radius: 6px;
}

/* File preview state */
.rfq-file-preview {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.rfq-dropzone.has-file .rfq-drop-inner {
  display: none;
}

.rfq-dropzone.has-file .rfq-file-preview {
  display: flex;
}

.rfq-dropzone.has-file {
  border-style: solid;
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.04);
}

.rfq-file-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34,197,94,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.rfq-file-info {
  flex: 1;
  min-width: 0;
}

.rfq-file-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfq-file-size {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.rfq-file-remove {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.2);
  color: #f43f5e;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
}

.rfq-file-remove:hover {
  background: rgba(244,63,94,0.2);
  transform: scale(1.1);
}

/* ----------------------------------------------------------------
   SIZES — CHIP SELECTORS
   ---------------------------------------------------------------- */
.rfq-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rfq-size-chip {
  position: relative;
  cursor: pointer;
}

.rfq-size-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rfq-size-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 42px;
  padding: 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.rfq-size-chip input:checked + .rfq-size-label {
  color: #fff;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 16px rgba(99,102,241,0.15);
  transform: scale(1.05);
}

.rfq-size-label:hover {
  border-color: rgba(99,102,241,0.25);
  color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   COLORS — SWATCH PICKER
   ---------------------------------------------------------------- */
.rfq-colors-wrap {
  margin-bottom: 28px;
}

.rfq-preset-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rfq-color-swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

.rfq-color-swatch-btn:hover {
  transform: scale(1.15);
  border-color: rgba(255,255,255,0.2);
}

.rfq-color-swatch-btn.active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}

.rfq-color-swatch-btn.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.rfq-color-custom-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rfq-color-picker-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.rfq-color-picker {
  width: 60px;
  height: 60px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: -10px;
  left: -10px;
}

.rfq-color-text-input {
  flex: 1;
}

/* ----------------------------------------------------------------
   QUANTITY GRID
   ---------------------------------------------------------------- */
.rfq-qty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rfq-qty-card {
  padding: 18px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-qty-card:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-2px);
}

.rfq-qty-card.selected {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 20px rgba(99,102,241,0.1);
}

.rfq-qty-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px 4px 0 0;
}

.rfq-qty-num {
  font-family: var(--font-space, 'Space Grotesk', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.rfq-qty-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rfq-qty-card.selected .rfq-qty-num {
  color: #c4b5fd;
}

/* ----------------------------------------------------------------
   PACKAGING CARDS
   ---------------------------------------------------------------- */
.rfq-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rfq-pkg-card {
  padding: 22px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-pkg-card:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-2px);
}

.rfq-pkg-card.selected {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 20px rgba(99,102,241,0.12);
}

.rfq-pkg-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  animation: rfqStepPop 0.4s ease;
}

.rfq-pkg-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 8px;
}

.rfq-pkg-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.rfq-pkg-desc {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.4;
}

/* ----------------------------------------------------------------
   REVIEW GRID (Step 5)
   ---------------------------------------------------------------- */
.rfq-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rfq-review-card {
  padding: 16px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rfq-review-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
}

.rfq-review-card-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ----------------------------------------------------------------
   TERMS CHECKBOX
   ---------------------------------------------------------------- */
.rfq-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.rfq-terms-row:hover {
  border-color: rgba(99,102,241,0.2);
}

.rfq-terms-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  margin-top: 2px;
}

.rfq-terms-check::after {
  content: '✓';
  font-size: 0.7rem;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.rfq-terms-row.checked .rfq-terms-check {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

.rfq-terms-row.checked .rfq-terms-check::after {
  opacity: 1;
  transform: scale(1);
}

.rfq-terms-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.rfq-terms-text a {
  color: #8b5cf6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rfq-terms-text a:hover {
  color: #a78bfa;
}

/* ----------------------------------------------------------------
   NAVIGATION BAR
   ---------------------------------------------------------------- */
.rfq-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 44px 30px;
  position: relative;
  z-index: 2;
}

.rfq-btn-back,
.rfq-btn-next,
.rfq-btn-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.35s ease;
  cursor: pointer;
  border: none;
}

.rfq-btn-back {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rfq-btn-back:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(-2px);
}

.rfq-btn-back:disabled {
  opacity: 0;
  pointer-events: none;
}

.rfq-btn-next {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.rfq-btn-next:hover {
  box-shadow: 0 6px 28px rgba(99,102,241,0.45);
  transform: translateY(-2px);
}

.rfq-btn-submit {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}

.rfq-btn-submit:hover {
  box-shadow: 0 6px 28px rgba(34,197,94,0.45);
  transform: translateY(-2px);
}

.rfq-btn-submit.loading .rfq-submit-text,
.rfq-btn-submit.loading .rfq-submit-icon {
  opacity: 0;
}

.rfq-btn-submit.loading .rfq-submit-spinner {
  display: block;
}

.rfq-submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rfqSpin 0.7s linear infinite;
  position: absolute;
}

.rfq-submit-icon {
  font-size: 1rem;
}

.rfq-nav-step-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

.rfq-nav-step-count strong {
  color: rgba(255,255,255,0.7);
}

/* ----------------------------------------------------------------
   SUCCESS SCREEN
   ---------------------------------------------------------------- */
.rfq-success {
  display: none;
  text-align: center;
  padding: 60px 44px 50px;
  position: relative;
  z-index: 2;
}

.rfq-success.show {
  display: block;
}

.rfq-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.rfq-confetti-piece {
  position: absolute;
  pointer-events: none;
}

/* SVG Checkmark */
.rfq-success-svg-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  z-index: 2;
}

.rfq-success-circle-bg {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 70%);
  border-radius: 50%;
  animation: rfqSuccessPop 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}

.rfq-success-svg {
  position: relative;
  z-index: 2;
}

.rfq-success-svg circle {
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: rfqDrawCircle 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}

.rfq-success-svg path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: rfqDrawCheck 0.5s cubic-bezier(0.22,1,0.36,1) 0.9s forwards;
}

.rfq-success-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  animation: rfqSuccessFadeIn 0.6s ease 1.2s both;
}

.rfq-success-h1 {
  font-family: var(--font-manrope, 'Manrope', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  animation: rfqSuccessFadeIn 0.6s ease 1.35s both;
}

.rfq-success-p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  max-width: 460px;
  margin: 0 auto 12px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  animation: rfqSuccessFadeIn 0.6s ease 1.5s both;
}

.rfq-success-ref {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  animation: rfqSuccessFadeIn 0.6s ease 1.6s both;
}

.rfq-success-ref strong {
  color: #8b5cf6;
  font-family: var(--font-space, 'Space Grotesk', sans-serif);
}

.rfq-success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  animation: rfqSuccessFadeIn 0.6s ease 1.75s both;
}

/* ----------------------------------------------------------------
   TRUST ROW
   ---------------------------------------------------------------- */
.rfq-trust {
  padding: 24px 44px 32px;
  position: relative;
  z-index: 2;
}

.rfq-trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.rfq-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}

.rfq-trust-item-icon {
  font-size: 0.9rem;
}

/* ----------------------------------------------------------------
   ALERT
   ---------------------------------------------------------------- */
.alert-error {
  background: rgba(244,63,94,0.08);
  border: 1px solid rgba(244,63,94,0.2);
  color: #f43f5e;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .rfq-hero {
    padding: 120px 16px 50px;
  }

  .rfq-wrapper {
    padding: 0 12px;
  }

  .rfq-card-head {
    padding: 28px 24px 0;
  }

  .rfq-card-title {
    font-size: 1.3rem;
  }

  .rfq-panel {
    padding: 28px 24px 10px;
  }

  .rfq-nav {
    padding: 20px 24px 24px;
    gap: 8px;
  }

  .rfq-trust {
    padding: 20px 24px 28px;
  }

  .rfq-grid-2 {
    grid-template-columns: 1fr;
  }

  .rfq-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rfq-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rfq-fabric-grid {
    grid-template-columns: 1fr;
  }

  .rfq-qty-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rfq-pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rfq-dropzones {
    grid-template-columns: 1fr;
  }

  .rfq-review-grid {
    grid-template-columns: 1fr;
  }

  .rfq-steps-track {
    gap: 4px;
  }

  .rfq-step-label {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .rfq-step-circle {
    width: 38px;
    height: 38px;
  }

  .rfq-btn-back,
  .rfq-btn-next,
  .rfq-btn-submit {
    padding: 12px 20px;
    font-size: 0.8rem;
  }

  .rfq-nav-step-count {
    display: none;
  }

  .rfq-success {
    padding: 40px 24px 40px;
  }

  .rfq-success-h1 {
    font-size: 1.4rem;
  }

  .rfq-success-actions {
    flex-direction: column;
    align-items: center;
  }

  .rfq-trust-row {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .rfq-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rfq-qty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rfq-pkg-grid {
    grid-template-columns: 1fr;
  }

  .rfq-method-grid {
    grid-template-columns: 1fr;
  }

  .rfq-steps-track {
    gap: 2px;
    padding: 0 4px;
  }

  .rfq-step-label {
    font-size: 0.55rem;
  }

  .rfq-card-step-label {
    font-size: 0.6rem;
    padding: 5px 12px;
  }
}
