/* ====================================================================
   CW Smart Lead — Form Styles
   Light theme with glassmorphism transparency.
   ==================================================================== */

#cwsl-app {
  font-family: 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}
#cwsl-app *, #cwsl-app *::before, #cwsl-app *::after { box-sizing: inherit; }

/* ------------------------------------------------------------------ */
/*  Shell                                                               */
/* ------------------------------------------------------------------ */
.cwsl-wrap {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 48px 36px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.cwsl-wrap::before,
.cwsl-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cwsl-wrap::before {
  top: -100px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(14,156,143,.08) 0%, transparent 70%);
}
.cwsl-wrap::after {
  bottom: -80px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,.06) 0%, transparent 70%);
}

/* ------------------------------------------------------------------ */
/*  Header                                                              */
/* ------------------------------------------------------------------ */
.cwsl-header { text-align: center; margin-bottom: 40px; position: relative; z-index: 1; }

.cwsl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,156,143,.1); border: 1px solid rgba(14,156,143,.25);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #0b7a71;
}
.cwsl-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #0e9c8f;
  animation: cwsl-pulse 2s infinite;
}

.cwsl-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 4.5vw, 40px);
  color: #1a1a2e;
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.2;
}
.cwsl-title em { color: #0b7a71; font-style: italic; }

.cwsl-subtitle {
  color: rgba(30,30,60,.5);
  font-size: 15px;
  font-weight: 300;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/*  Card                                                                */
/* ------------------------------------------------------------------ */
.cwsl-card {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  padding: 28px;
  position: relative; z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

/* ------------------------------------------------------------------ */
/*  Labels & inputs                                                     */
/* ------------------------------------------------------------------ */
.cwsl-flabel {
  display: block;
  color: rgba(30,30,60,.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  margin-bottom: 10px;
}

.cwsl-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 10px;
  padding: 14px;
  color: #1a1a2e;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cwsl-textarea:focus {
  border-color: rgba(14,156,143,.5);
  box-shadow: 0 0 0 3px rgba(14,156,143,.1);
}
.cwsl-textarea::placeholder { color: rgba(30,30,60,.3); }

.cwsl-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 9px;
  color: #1a1a2e;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cwsl-input:focus {
  border-color: rgba(14,156,143,.5);
  box-shadow: 0 0 0 3px rgba(14,156,143,.1);
}
.cwsl-input::placeholder { color: rgba(30,30,60,.28); }

/* ------------------------------------------------------------------ */
/*  Chips                                                               */
/* ------------------------------------------------------------------ */
.cwsl-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 22px; }
.cwsl-chip {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.1);
  color: rgba(30,30,60,.55);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.cwsl-chip:hover {
  background: rgba(14,156,143,.08);
  border-color: rgba(14,156,143,.3);
  color: #0b7a71;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                             */
/* ------------------------------------------------------------------ */
.cwsl-btn-main {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #0e9c8f, #0b7a71);
  border: none;
  border-radius: 11px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .03em;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 4px 16px rgba(14,156,143,.3);
}
.cwsl-btn-main:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.cwsl-btn-main:active:not(:disabled) { transform: translateY(0); }
.cwsl-btn-main:disabled {
  background: rgba(0,0,0,.07);
  color: rgba(0,0,0,.25);
  cursor: not-allowed;
  box-shadow: none;
}

.cwsl-btn-back {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  background: transparent;
  border: none;
  color: rgba(30,30,60,.35);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s;
}
.cwsl-btn-back:hover { color: rgba(30,30,60,.6); }

/* ------------------------------------------------------------------ */
/*  Analyzing                                                           */
/* ------------------------------------------------------------------ */
.cwsl-analyzing { text-align: center; padding: 60px 20px; position: relative; z-index: 1; }
.cwsl-spin-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(14,156,143,.1); border: 1px solid rgba(14,156,143,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 26px;
  animation: cwsl-spin 3s linear infinite;
  box-shadow: 0 4px 20px rgba(14,156,143,.15);
}
.cwsl-anl-title { color: #1a1a2e; font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.cwsl-anl-sub   { color: rgba(30,30,60,.45); font-size: 13px; margin: 0; }

/* ------------------------------------------------------------------ */
/*  AI Analysis box                                                     */
/* ------------------------------------------------------------------ */
.cwsl-ai-box {
  background: rgba(14,156,143,.06);
  border: 1px solid rgba(14,156,143,.2);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex; gap: 14px; align-items: flex-start;
  position: relative; z-index: 1;
}
.cwsl-ai-star   { font-size: 22px; flex-shrink: 0; line-height: 1.4; }
.cwsl-ai-label  { color: #0b7a71; font-size: 11px; font-weight: 600; letter-spacing: .1em; margin: 0 0 5px; }
.cwsl-ai-text   { color: #1a1a2e; font-size: 14px; line-height: 1.6; margin: 0; }
.cwsl-ai-urgency{ color: #c07a10; font-size: 12px; margin: 8px 0 0; font-style: italic; }

/* ------------------------------------------------------------------ */
/*  Package cards                                                       */
/* ------------------------------------------------------------------ */
.cwsl-pkg {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 24px;
  cursor: pointer;
  transition: all .22s;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.cwsl-pkg:hover {
  background: rgba(255,255,255,.85);
  border-color: rgba(0,0,0,.13);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.cwsl-pkg-sel {
  background: rgba(255,255,255,.85);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.cwsl-popular-badge {
  position: absolute; top: 14px; right: 14px;
  background: #e94560; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  padding: 4px 11px; border-radius: 100px;
}

.cwsl-pkg-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 14px;
  flex-wrap: wrap; gap: 10px;
}
.cwsl-pkg-icon  { font-size: 26px; margin-bottom: 6px; }
.cwsl-pkg-name  { color: #1a1a2e; font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.cwsl-pkg-tag   { color: rgba(30,30,60,.45); font-size: 12px; }
.cwsl-pkg-price { text-align: right; }
.cwsl-price-num { font-size: 28px; font-weight: 700; line-height: 1; }
.cwsl-price-sub { color: rgba(30,30,60,.35); font-size: 11px; margin-top: 3px; }

.cwsl-ai-note {
  border: 1px solid; border-radius: 8px;
  padding: 9px 13px; margin-bottom: 14px;
}
.cwsl-ai-note-text { font-size: 12px; font-style: italic; margin: 0; }

.cwsl-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 7px;
}
.cwsl-feat       { display: flex; align-items: flex-start; gap: 7px; }
.cwsl-feat-check { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.cwsl-feat-text  { color: rgba(30,30,60,.65); font-size: 12px; line-height: 1.4; }

.cwsl-pkg-footer {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex; justify-content: space-between; align-items: center;
}
.cwsl-pkg-ideal { color: rgba(30,30,60,.4); font-size: 12px; max-width: 78%; }
.cwsl-radio {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.cwsl-radio-check { color: #fff; font-size: 10px; font-weight: 700; }

.cwsl-btn-proceed { margin-top: 16px; }

/* ------------------------------------------------------------------ */
/*  Lead capture                                                        */
/* ------------------------------------------------------------------ */
.cwsl-lf-selected {
  display: flex; gap: 12px; align-items: center;
  background: rgba(14,156,143,.06); border: 1px solid rgba(14,156,143,.15);
  border-radius: 10px; padding: 14px; margin-bottom: 22px;
}
.cwsl-lf-icon     { font-size: 24px; flex-shrink: 0; }
.cwsl-lf-pkg-label{ color: rgba(30,30,60,.45); font-size: 11px; font-weight: 600; letter-spacing: .08em; margin: 0 0 3px; }
.cwsl-lf-pkg-name { color: #1a1a2e; font-size: 15px; font-weight: 500; margin: 0; }
.cwsl-lf-h        { color: #1a1a2e; font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.cwsl-lf-sub      { color: rgba(30,30,60,.45); font-size: 13px; margin: 0 0 20px; }
.cwsl-lf-group    { display: flex; flex-direction: column; gap: 13px; }
.cwsl-inp-wrap label { margin-bottom: 6px; }

.cwsl-btn-submit  { margin-top: 4px; }
.cwsl-error       { color: #c0392b; font-size: 13px; margin: 4px 0 0; }

/* ------------------------------------------------------------------ */
/*  Done                                                                */
/* ------------------------------------------------------------------ */
.cwsl-done { text-align: center; padding: 50px 20px; position: relative; z-index: 1; }
.cwsl-done-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(14,156,143,.1); border: 1px solid rgba(14,156,143,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; font-size: 28px; color: #0b7a71;
  box-shadow: 0 4px 20px rgba(14,156,143,.15);
}
.cwsl-done-h  {
  font-family: 'DM Serif Display', Georgia, serif;
  color: #1a1a2e; font-size: 26px; font-weight: 400; margin: 0 0 12px;
}
.cwsl-done-p  { color: rgba(30,30,60,.55); font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.cwsl-done-badge {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(14,156,143,.08); border: 1px solid rgba(14,156,143,.2);
  border-radius: 100px; padding: 9px 18px;
  color: #0b7a71; font-size: 12px; font-weight: 500;
}
.cwsl-done-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #0e9c8f;
}

/* ------------------------------------------------------------------ */
/*  Animations                                                          */
/* ------------------------------------------------------------------ */
@keyframes cwsl-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes cwsl-spin  { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ------------------------------------------------------------------ */
/*  Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 540px) {
  .cwsl-wrap { padding: 32px 18px; }
  .cwsl-features { grid-template-columns: 1fr; }
  .cwsl-pkg-top { flex-direction: column; }
  .cwsl-pkg-price { text-align: left; }
}
