/**
 * Hitender.biz - Website Discovery & Requirement Wizard Styling
 * Official Hitender.biz Theme (Clean, Crisp, Light Luxury SaaS)
 */

:root {
  --htb-primary: #004AAD;
  --htb-primary-light: #2563eb;
  --htb-primary-glow: rgba(0, 74, 173, 0.15);
  --htb-accent: #18B488;
  --htb-accent-glow: rgba(24, 180, 136, 0.18);
  --htb-navy: #0D183D;
  --htb-bg: #f8fafc;
  --htb-card-bg: #ffffff;
  --htb-input-bg: #ffffff;
  --htb-border: #e2e8f0;
  --htb-border-hover: #cbd5e1;
  --htb-text: #0f172a;
  --htb-text-muted: #64748b;
  --htb-text-dim: #94a3b8;
  --htb-danger: #ef4444;
  --htb-warning: #f59e0b;
  --htb-radius-sm: 10px;
  --htb-radius-md: 16px;
  --htb-radius-lg: 24px;
  --htb-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.webreq-page-wrap {
  background-color: var(--htb-bg);
  color: var(--htb-text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 85vh;
  padding: 10.5rem 1rem 5rem;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 74, 173, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(24, 180, 136, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Container & Shell */
.webreq-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* Header Action Row (Inside Container) */
.webreq-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.webreq-badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 74, 173, 0.06);
  color: var(--htb-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.45rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(0, 74, 173, 0.12);
}

.btn-header-resume {
  background: #ffffff;
  border: 1.5px solid var(--htb-border);
  color: var(--htb-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--htb-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-header-resume:hover {
  background: #f1f5f9;
  color: var(--htb-primary);
  border-color: var(--htb-primary);
}

/* Progress Area */
.webreq-progress-card {
  background: #ffffff;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 74, 173, 0.04);
}

.webreq-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.webreq-step-badge {
  font-weight: 800;
  color: var(--htb-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.webreq-step-badge .pill {
  background: linear-gradient(135deg, var(--htb-primary), #0066ff);
  color: #fff;
  font-size: 0.76rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.webreq-autosave-indicator {
  font-size: 0.8rem;
  color: var(--htb-text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  transition: var(--htb-transition);
}

.webreq-autosave-indicator.saving {
  color: var(--htb-warning);
}

.webreq-autosave-indicator.saved {
  color: var(--htb-accent);
}

.webreq-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.webreq-progress-bar-fill {
  height: 100%;
  width: 8.33%;
  background: linear-gradient(90deg, var(--htb-primary), var(--htb-accent));
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wizard Master Card */
.webreq-main-card {
  background: var(--htb-card-bg);
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 10px 40px -10px rgba(0, 74, 173, 0.06);
  position: relative;
  transition: var(--htb-transition);
}

@media (max-width: 640px) {
  .webreq-main-card {
    padding: 2rem 1.25rem;
    border-radius: var(--htb-radius-md);
  }
}

/* Step Views */
.webreq-step-pane {
  display: none;
  animation: fadeInStep 0.3s ease forwards;
}

.webreq-step-pane.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Headings */
.webreq-step-header {
  margin-bottom: 2.25rem;
}

.webreq-step-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--htb-primary);
  font-weight: 800;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.webreq-step-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--htb-text);
  letter-spacing: -0.6px;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.webreq-step-desc {
  font-size: 1rem;
  color: var(--htb-text-muted);
  max-width: 700px;
  line-height: 1.6;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.65rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 720px) {
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

label.webreq-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

label.webreq-label .req {
  color: var(--htb-danger);
  margin-left: 3px;
}

label.webreq-label .sub {
  font-size: 0.78rem;
  color: var(--htb-text-muted);
  font-weight: normal;
  margin-left: 6px;
}

.webreq-input, 
.webreq-select, 
.webreq-textarea {
  width: 100%;
  background: var(--htb-input-bg);
  border: 1.5px solid var(--htb-border);
  border-radius: var(--htb-radius-sm);
  padding: 12px 16px;
  font-size: 0.94rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: var(--htb-transition);
}

.webreq-input:focus, 
.webreq-select:focus, 
.webreq-textarea:focus {
  border-color: var(--htb-primary);
  box-shadow: 0 0 0 3px var(--htb-primary-glow);
  background: #ffffff;
}

.webreq-input::placeholder, 
.webreq-textarea::placeholder {
  color: #94a3b8;
}

.webreq-textarea {
  min-height: 115px;
  resize: vertical;
}

.webreq-select option {
  background: #ffffff;
  color: #0f172a;
}

/* Card Selection Grids */
.webreq-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.webreq-cards-grid-dense {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.webreq-choice-card {
  background: #ffffff;
  border: 1.5px solid var(--htb-border);
  border-radius: var(--htb-radius-md);
  padding: 1.35rem 1.25rem;
  cursor: pointer;
  transition: var(--htb-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.webreq-choice-card:hover {
  background: #f8fafc;
  border-color: var(--htb-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.webreq-choice-card.selected {
  background: rgba(0, 74, 173, 0.04);
  border-color: var(--htb-primary);
  box-shadow: 0 4px 20px var(--htb-primary-glow);
}

.webreq-choice-card.selected::after {
  content: "✓";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--htb-primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.choice-icon {
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
  display: inline-block;
}

.choice-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--htb-text);
  margin-bottom: 0.35rem;
}

.choice-desc {
  font-size: 0.84rem;
  color: var(--htb-text-muted);
  line-height: 1.45;
}

/* Visual Pill Checkboxes */
.webreq-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.webreq-pill {
  background: #f1f5f9;
  border: 1.5px solid var(--htb-border);
  color: #334155;
  padding: 0.6rem 1.15rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--htb-transition);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.webreq-pill:hover {
  border-color: #94a3b8;
  color: var(--htb-primary);
  background: #e2e8f0;
}

.webreq-pill.selected {
  background: linear-gradient(135deg, var(--htb-primary), #0066ff);
  border-color: var(--htb-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--htb-primary-glow);
}

/* Color Preferences Chips */
.color-picker-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.color-picker-box {
  background: #f8fafc;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-sm);
  padding: 1rem;
}

.color-picker-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.color-input-native {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.color-input-native::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-input-native::-webkit-color-swatch {
  border: 2px solid #cbd5e1;
  border-radius: 8px;
}

.color-palette-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preset-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--htb-border);
  padding: 0.55rem 0.85rem;
  border-radius: var(--htb-radius-sm);
  cursor: pointer;
  transition: var(--htb-transition);
}

.preset-chip:hover {
  border-color: var(--htb-border-hover);
  background: #f8fafc;
}

.preset-chip.selected {
  border-color: var(--htb-primary);
  background: rgba(0, 74, 173, 0.06);
}

.preset-swatches {
  display: flex;
  gap: 3px;
}

.preset-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Typography Preview */
.font-preview-card {
  background: #f8fafc;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-sm);
  padding: 1.35rem;
  margin-top: 1rem;
}

.font-preview-text-lg {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.font-preview-text-sm {
  font-size: 0.92rem;
  color: var(--htb-text-muted);
}

/* Drag & Drop Rankable List */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.rank-item {
  background: #ffffff;
  border: 1.5px solid var(--htb-border);
  border-radius: var(--htb-radius-sm);
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  transition: var(--htb-transition);
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.rank-item:active {
  cursor: grabbing;
}

.rank-item.dragging {
  opacity: 0.4;
  border-color: var(--htb-primary);
}

.rank-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rank-number {
  background: var(--htb-primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-handle {
  color: var(--htb-text-dim);
  font-size: 1.2rem;
}

/* File Upload Zone */
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--htb-radius-md);
  padding: 2.75rem 1.5rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: var(--htb-transition);
}

.upload-dropzone:hover, 
.upload-dropzone.dragover {
  border-color: var(--htb-primary);
  background: rgba(0, 74, 173, 0.04);
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.uploaded-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.uploaded-file-item {
  background: #ffffff;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-sm);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.uploaded-file-item .file-name {
  color: #1e293b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-del-file {
  background: none;
  border: none;
  color: var(--htb-danger);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.4rem;
}

/* Reference & Competitor Dynamic Inputs */
.dynamic-row-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.dynamic-row-card {
  background: #f8fafc;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-sm);
  padding: 1.15rem;
}

.btn-add-row {
  background: #ffffff;
  border: 1.5px dashed #94a3b8;
  color: var(--htb-primary);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.85rem 1.25rem;
  border-radius: var(--htb-radius-sm);
  cursor: pointer;
  width: 100%;
  transition: var(--htb-transition);
}

.btn-add-row:hover {
  background: rgba(0, 74, 173, 0.04);
  border-color: var(--htb-primary);
}

/* Review Summary Cards */
.review-section-card {
  background: #ffffff;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.review-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-review-edit {
  background: rgba(0, 74, 173, 0.06);
  border: 1px solid rgba(0, 74, 173, 0.15);
  color: var(--htb-primary);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  transition: var(--htb-transition);
}

.btn-review-edit:hover {
  background: var(--htb-primary);
  color: #fff;
}

.review-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  font-size: 0.88rem;
}

.review-data-item .lbl {
  color: var(--htb-text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.review-data-item .val {
  color: #0f172a;
  font-weight: 700;
  word-break: break-word;
}

/* Wizard Navigation Bar */
.webreq-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--htb-border);
}

.webreq-nav-left, .webreq-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-nav-back {
  background: #ffffff;
  border: 1.5px solid var(--htb-border);
  color: #334155;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--htb-radius-sm);
  cursor: pointer;
  transition: var(--htb-transition);
}

.btn-nav-back:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-nav-save {
  background: transparent;
  border: 1.5px dashed #94a3b8;
  color: var(--htb-text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--htb-radius-sm);
  cursor: pointer;
  transition: var(--htb-transition);
}

.btn-nav-save:hover {
  border-color: var(--htb-primary);
  color: var(--htb-primary);
}

.btn-nav-next {
  background: linear-gradient(135deg, var(--htb-primary), #0066ff);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0.85rem 2rem;
  border-radius: var(--htb-radius-sm);
  cursor: pointer;
  transition: var(--htb-transition);
  box-shadow: 0 4px 16px var(--htb-primary-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 74, 173, 0.35);
}

.btn-nav-submit {
  background: linear-gradient(135deg, var(--htb-accent), #10b981);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.95rem 2.5rem;
  border-radius: var(--htb-radius-sm);
  cursor: pointer;
  transition: var(--htb-transition);
  box-shadow: 0 4px 18px var(--htb-accent-glow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-nav-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 180, 136, 0.4);
}

/* Success Celebration View */
.success-card {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon-badge {
  width: 80px;
  height: 80px;
  background: rgba(24, 180, 136, 0.12);
  border: 2px solid var(--htb-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.success-ref-box {
  background: rgba(0, 74, 173, 0.05);
  border: 1.5px dashed var(--htb-primary);
  border-radius: var(--htb-radius-md);
  padding: 1.25rem 2rem;
  display: inline-block;
  margin: 1.75rem 0;
}

.success-ref-id {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--htb-primary);
  letter-spacing: 2px;
}

/* Modal Popup */
.webreq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.webreq-modal-overlay.open {
  display: flex;
}

.webreq-modal {
  background: #ffffff;
  border: 1px solid var(--htb-border);
  border-radius: var(--htb-radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.webreq-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--htb-text-dim);
  font-size: 1.4rem;
  cursor: pointer;
}

.webreq-modal-close:hover {
  color: #0f172a;
}

/* Toast Notifications */
.webreq-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--htb-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: none;
  align-items: center;
  gap: 0.6rem;
  animation: slideInToast 0.3s ease;
}

.webreq-toast.show {
  display: flex;
}

.webreq-toast.success {
  border-left: 4px solid var(--htb-accent);
}

.webreq-toast.error {
  border-left: 4px solid var(--htb-danger);
}

@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.input-error {
  border-color: var(--htb-danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.error-text {
  color: var(--htb-danger);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}
