/* ===========================
   Signify — Email Signature Builder
   styles.css
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-400:    #5aaee3;
  --blue-500:    #3a8fd1;
  --blue-600:    #2a72aa;
  --glow:        rgba(58,143,209,0.15);

  --text:        #1a2b3c;
  --text-mid:    #4a6070;
  --text-muted:  #8aa4b8;

  --border:      rgba(58,143,209,0.14);
  --border-2:    rgba(58,143,209,0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(58,143,209,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 24px rgba(58,143,209,0.12), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 16px 48px rgba(58,143,209,0.16), 0 4px 12px rgba(0,0,0,0.06);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #e9f2fa;
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 100% 60% at 10% -10%, rgba(110,198,245,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 90% 110%, rgba(90,174,227,0.3) 0%, transparent 55%);
  background-attachment: fixed;
}

/* ================================================================
   HEADER
   ================================================================ */
.progress-header {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.8);
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(58,143,209,0.08);
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue-600);
  font-style: italic;
}

/* ================================================================
   PROGRESS STEPS
   ================================================================ */
.progress-steps {
  display: flex;
  align-items: center;
  flex: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.65);
  border: 0.25px solid rgba(58, 143, 209, 0.4);
  color: rgba(58, 143, 209, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.progress-step.active .step-bubble {
  border: none;
  color: var(--blue-400);
  box-shadow: 0 0 0 2px var(--glow), 0 1px 1px rgba(58,143,209,0.9);
}

.progress-step.completed .step-bubble {
  background: rgba(255,255,255,0.8);
  border-color: var(--blue-400);
  color: var(--blue-500);
  font-size: 0;
}

.progress-step.completed .step-bubble::after {
  content: '✓';
  font-size: 12px;
}

.step-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.progress-step.active .step-name    { color: var(--blue-500); font-weight: 700; }
.progress-step.completed .step-name { color: var(--blue-400); }

.progress-connector {
  flex: 1;
  height: 1.5px;
  background: rgba(58,143,209,0.18);
  margin: 0 6px;
  margin-bottom: 14px;
  border-radius: 2px;
  overflow: hidden;
}

.connector-fill {
  height: 100%;
  width: 0%;
  background: var(--blue-400);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.connector-fill.filled { width: 100%; }

/* ================================================================
   LAYOUT
   ================================================================ */
.wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ================================================================
   STEP HEADER
   ================================================================ */
.step-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.step-eyebrow,
h1,
.sub {
  text-align: center;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.sub {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* ================================================================
   DROP ZONE — standalone box, not inside a card
   ================================================================ */
.drop-wrapper {
  padding: 2rem;
  border: 0.5px solid #7aafd4;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  background: #f8fbff;
}
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: #f8fbff;
  border: 0.25px solid #7aafd4;
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: default;
}

.drop-zone.drag-over {
  border-color: var(--blue-500);
  background: #f0f8ff;
  box-shadow: 0 0 0 4px var(--glow), var(--shadow-md);
}

.drop-icon {
  color: #90b8d8;
  display: flex;
  margin-bottom: 4px;
}

.drop-primary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.drop-secondary {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 32px;
  margin-top: 6px;
  border: 1.5px solid #ccdce8;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.browse-btn:hover {
  border-color: var(--blue-400);
  background: #f5fbff;
  box-shadow: 0 0 0 3px var(--glow), 0 1px 4px rgba(0,0,0,0.07);
}

/* Logo preview after upload */
.logo-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid #dde8f0;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.logo-img-wrapper {
  width: 100%;
  height: 60px;
  background: #f8fbfd;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 6px;
  border: 1px solid #e4eef5;
}

.logo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo-filename {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.logo-remove-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  border: 1px solid rgba(200,60,60,0.3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #c43c3c;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}

.logo-remove-btn:hover { background: rgba(200,60,60,0.07); }

/* ================================================================
   CARD
   ================================================================ */
.card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 0.875rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ================================================================
   CHOICE LIST
   ================================================================ */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 1rem 1.25rem;
  border: .5px solid #7aafd4;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.choice-card:hover {
  border-color: var(--blue-400);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-sm), 0 0 0 3px var(--glow);
  transform: translateY(-1px);
}

.choice-card.selected {
  border-color: var(--blue-500);
  background: rgba(194,226,246,0.35);
  box-shadow: 0 0 0 3px var(--glow);
}

.choice-text {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-left: 2px;
}

.choice-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.choice-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

/* ================================================================
   FORM
   ================================================================ */
.form-grid {
  display: grid;
  gap: 14px;
}

.section-divider {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue-400);
  padding-top: 6px;
  border-top: 1px solid rgba(58,143,209,0.15);
  margin-top: 4px;
}

.field-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pipe-sep {
  font-size: 20px;
  color: #b8cfe8;
  font-weight: 300;
  align-self: flex-end;
  padding-bottom: 10px;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.optional {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  background: rgba(255,255,255,0.6);
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid rgba(58,143,209,0.15);
}

.field input {
  width: 100%;
  padding: 10px 14px;
  border: .5px solid #7aafd4;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6);
  color: var(--text);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: all 0.2s ease;
}

.field input:focus {
  border-color: var(--blue-400);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 3px var(--glow);
}

.field input::placeholder { color: var(--text-muted); }

/* ================================================================
   BUTTONS
   ================================================================ */
.primary-btn {
  width: 100%;
  padding: 12px;
  background: var(--blue-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(58,143,209,0.35);
}

.primary-btn:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(58,143,209,0.42);
}

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

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.5);
  color: var(--text-mid);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 0.75rem;
}

.back-btn:hover {
  background: rgba(255,255,255,0.8);
  color: var(--text);
}

/* ================================================================
   OUTPUT
   ================================================================ */
.output-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sig-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.sig-preview {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #222;
  line-height: 1.7;
  padding: 1.5rem 1.75rem;
  background: #fff;
}

.sig-preview a { color: #1155CC; text-decoration: none; }

.copy-btn {
  flex-shrink: 0;
  padding: 8px 22px;
  border: 1.5px solid rgba(58,143,209,0.25);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.65);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
}

.copy-btn:hover, .copy-btn.copied {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 4px 16px rgba(58,143,209,0.3);
}

.instructions {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.85;
  position: relative;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.instructions::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue-400);
  border-radius: 2px 0 0 2px;
}

.instructions strong {
  font-weight: 700;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-500);
}

/* ================================================================
   UTILITY
   ================================================================ */
.field-error {
  font-size: 12px;
  color: #c43c3c;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 560px) {
  .progress-header { padding: 0.75rem 1rem; }
  .header-inner { gap: 1rem; }
  .step-name { display: none; }
  .step-bubble { width: 24px; height: 24px; font-size: 10px; }
  .wrap { padding: 1.75rem 1rem 4rem; }
  h1 { font-size: 1.55rem; }
  .card { padding: 1.25rem; }
  .field-row { flex-direction: column; gap: 14px; }
  .pipe-sep { display: none; }
  .output-header { flex-direction: column; }
  .copy-btn { width: 100%; text-align: center; justify-content: center; }
}
