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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Top bar */
.topbar {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 6px 24px;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}
.topbar-left svg { stroke: #4ade80; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Google Translate widget overrides */
#google_translate_element { display: inline-block; }
.goog-te-gadget { font-size: 0 !important; }
.goog-te-gadget .goog-te-combo {
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #475569;
  background: #334155;
  color: #e2e8f0;
}
.skiptranslate { display: inline !important; }
body > .skiptranslate { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* Header */
.app-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.app-header:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-icon {
  flex-shrink: 0;
}
.logo-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #1e293b;
}
.logo-year {
  color: #2563eb;
  font-weight: 900;
}
.logo-since {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.header-contact-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.header-contact-link:hover {
  background: #2563eb;
  color: #fff;
}
.header-contact-link:hover svg {
  stroke: #fff;
}
.header-account-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a5f, #2d5a8e);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.header-account-link:hover {
  opacity: 0.9;
}
.header-account-link svg {
  stroke: #fff;
}
.header-tagline {
  color: #64748b;
  font-size: 13px;
  margin-left: auto;
}
.header-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars-icons {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}
.stars-text {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Main */
.main-content {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 24px;
}

/* Progress Steps */
/* Form Intro */
.form-intro {
  text-align: center;
  margin-bottom: 32px;
}
.form-intro-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 8px;
}
.form-intro-desc {
  color: #64748b;
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Progress Stepper */
.progress-container {
  margin-bottom: 32px;
}
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px 24px 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: none;
  position: relative;
}
.step span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.step.active span,
.step.completed span {
  color: #2563eb;
}
.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.35s ease;
  border: 2px solid #e2e8f0;
}
.step.active .step-circle {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe, 0 4px 12px rgba(37,99,235,0.2);
}
.step.active .step-circle svg { stroke: #fff; }
.step.completed .step-circle {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px #dcfce7;
}
.step.completed .step-circle svg { stroke: #fff; }
.step-line {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin: 0 8px;
  margin-bottom: 22px;
  border-radius: 3px;
  transition: background 0.4s ease;
}
.step-line.completed {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}
.progress-bar-track {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Form Card */
.form-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);
  padding: 44px;
  border: 1px solid #f1f5f9;
}

/* Step Header */
.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid #f1f5f9;
}
.step-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-header-icon-green {
  background: #f0fdf4;
}
.step-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.step-header p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

/* Form Layout */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fadeInStep 0.35s ease;
}
@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full-width {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}
label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
}
.required {
  color: #ef4444;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="month"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  font-family: inherit;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
  background: #fff;
}
input.error,
select.error,
textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px #fee2e2;
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.error-msg {
  font-size: 12px;
  color: #ef4444;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Input with prefix */
.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
}
.input-prefix-wrapper input {
  padding-left: 26px;
}

/* Payment Preview */
.payment-preview {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}
.payment-preview h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 14px;
}
.payment-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
}
.payment-item.highlight {
  padding-top: 10px;
  border-top: 1px solid #bae6fd;
  font-size: 16px;
  color: #0369a1;
  font-weight: 700;
}
.payment-item strong {
  font-weight: 700;
}
.preview-note {
  margin-top: 12px;
  font-size: 11px;
  color: #64748b;
}

/* Review Section */
.review-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.review-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s;
}
.review-group:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.review-group h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.review-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 0;
}
.review-item .review-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.review-item .review-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
}

/* Consent Box */
.consent-box {
  background: #fafafa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #2563eb;
  cursor: pointer;
  margin-top: 2px;
}
.checkbox-label a {
  color: #2563eb;
  text-decoration: none;
}
.checkbox-label a:hover {
  text-decoration: underline;
}

/* Navigation Buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid #f1f5f9;
  gap: 12px;
}
.form-nav-step {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  flex: 1;
  text-align: center;
}
.btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  margin-left: auto;
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}
.btn-submit {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  margin-left: auto;
  padding: 14px 32px;
  font-size: 15px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.3);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ═══ Contract Screen ═══ */
.contract-screen {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);
  padding: 48px 44px;
  border: 1px solid #f1f5f9;
}
.contract-header {
  text-align: center;
  margin-bottom: 28px;
}
.contract-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #eff6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.contract-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.contract-header p {
  color: #64748b;
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}
.contract-actions-top {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.contract-document {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  max-height: 600px;
  overflow-y: auto;
  padding: 40px 36px;
  margin-bottom: 32px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}
.contract-body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: #1e293b;
}
.contract-body .contract-logo-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1e3a5f;
}
.contract-body .contract-logo-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}
.contract-body .contract-logo-header p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}
.contract-body .contract-ref-line {
  text-align: right;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}
.contract-body .contract-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  margin: 24px 0 20px;
  padding: 10px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.contract-body .contract-article {
  margin-bottom: 20px;
}
.contract-body .contract-article h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: 'Inter', sans-serif;
}
.contract-body .contract-article p,
.contract-body .contract-article ul {
  margin: 6px 0;
  text-align: justify;
}
.contract-body .contract-article ul {
  padding-left: 20px;
}
.contract-body .contract-article ul li {
  margin-bottom: 4px;
}
.contract-body .contract-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.contract-body .contract-data-table td {
  padding: 7px 12px;
  border: 1px solid #d1d5db;
  vertical-align: top;
}
.contract-body .contract-data-table td:first-child {
  font-weight: 600;
  color: #374151;
  width: 40%;
  background: #f8fafc;
}
.contract-body .contract-data-table td:last-child {
  color: #1e293b;
}
.contract-body .contract-seal {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.contract-body .contract-seal p {
  font-size: 11px;
  color: #94a3b8;
  margin: 4px 0;
}
.contract-body .contract-parties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.contract-body .contract-party-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #fafbfc;
}
.contract-body .contract-party-box h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.contract-body .contract-party-box p {
  font-size: 13px;
  margin: 2px 0;
  color: #1e293b;
}

/* Signature Section */
.contract-signature-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
}
.contract-signature-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.signature-instructions {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.signature-agreement {
  margin-bottom: 24px;
}
.signature-pad-wrapper {
  margin-bottom: 20px;
}
.signature-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.signature-pad-container {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}
.signature-pad-container canvas {
  display: block;
  width: 100%;
  height: 180px;
}
.signature-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  transition: opacity 0.2s;
}
.signature-placeholder.hidden {
  opacity: 0;
}
.signature-pad-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.signature-date {
  font-size: 12px;
  color: #64748b;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
}
.signature-typed {
  margin-bottom: 24px;
}
.signature-typed label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  width: 100%;
  justify-content: center;
}
@media (max-width: 600px) {
  .contract-screen {
    padding: 24px 18px;
  }
  .contract-document {
    padding: 24px 18px;
  }
  .contract-actions-top {
    flex-direction: column;
  }
  .contract-body .contract-parties-grid {
    grid-template-columns: 1fr;
  }
  .contract-signature-section {
    padding: 20px 16px;
  }
}

/* Success Screen */
.success-screen {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.06);
  padding: 60px 40px;
  text-align: center;
}
.success-icon {
  margin-bottom: 24px;
}
.success-screen h2 {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}
.success-screen > p {
  color: #475569;
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto 24px;
}
.ref-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 24px;
  display: inline-block;
  margin-bottom: 20px;
  text-align: center;
}
.ref-box span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.ref-box strong {
  font-size: 22px;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 2px;
}
.success-note {
  color: #64748b;
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 32px;
}

/* Footer */
.app-footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #94a3b8;
  font-size: 13px;
  padding: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover {
  color: #60a5fa;
}
.footer-col-brand {
  padding-right: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo strong {
  font-size: 18px;
  color: #fff;
  display: block;
}
.footer-logo span {
  font-size: 11px;
  color: #64748b;
}
.footer-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: #64748b;
}
.footer-security-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-security-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(74,222,128,0.15);
}
.footer-security-badges svg {
  stroke: #4ade80;
}
.app-footer .footer-note {
  margin-top: 6px;
  font-size: 11px;
}

/* Fees Box */
.fees-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fcd34d;
  border-radius: 14px;
  padding: 22px;
  margin-top: 24px;
}
.fees-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #92400e;
}
.fees-box-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}
.fees-box-header svg {
  flex-shrink: 0;
  stroke: #d97706;
}
.fees-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #fde68a;
}
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  gap: 12px;
}
.fee-row:not(:last-child) {
  border-bottom: 1px solid #fde68a;
}
.fee-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fee-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.fee-desc {
  font-size: 11px;
  color: #94a3b8;
}
.fee-amount {
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}
.fee-row-total {
  background: #fef3c7;
}
.fee-row-total .fee-name {
  color: #92400e;
}
.fee-row-total .fee-amount {
  font-size: 15px;
  color: #b45309;
}
.fees-note {
  font-size: 12px;
  color: #92400e;
  margin-top: 12px;
  line-height: 1.5;
}

/* Bank Transfer Card */
.bank-transfer-card {
  background: #f0f9ff;
  border: 1.5px solid #7dd3fc;
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}
.bank-transfer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #0369a1;
}
.bank-transfer-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0369a1;
}
.bank-transfer-header svg {
  flex-shrink: 0;
  stroke: #0369a1;
}
.bank-transfer-intro {
  font-size: 13px;
  color: #475569;
  margin-bottom: 18px;
  line-height: 1.5;
}
.bank-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #bae6fd;
  margin-bottom: 16px;
}
.bank-field {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bank-field:not(:last-child) {
  border-bottom: 1px solid #e0f2fe;
}
.bank-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.bank-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bank-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}
.bank-field-amount {
  background: #e0f2fe;
}
.bank-amount {
  font-size: 20px;
  font-weight: 800;
  color: #0369a1;
  font-family: inherit;
}
.copy-btn {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.copy-btn:hover {
  background: #bae6fd;
}
.copy-btn.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}

/* Transfer methods */
.bank-transfer-methods {
  margin-bottom: 16px;
}
.bank-methods-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.method-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.method-tag {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.method-tag.wu {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.method-tag.mg {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.method-tag.ria {
  background: #fef3c7;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
.bank-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: #9a3412;
  line-height: 1.5;
}

/* ══ Hero Section ══ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1d4ed8 100%);
  padding: 80px 24px 72px;
  overflow: hidden;
  text-align: center;
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  top: -100px;
  right: -80px;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: #7c3aed;
  bottom: -60px;
  left: -60px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: #06b6d4;
  top: 40%;
  left: 40%;
  animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -30px); }
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 24px;
}
.hero-pill-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 1px;
}
.hero-section h1 {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-accent {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
}
.hero-cta-main {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.hero-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}
.hero-cta-alt {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
}
.hero-cta-alt:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.hero-feat svg {
  stroke: #4ade80;
}

/* Partners Section */
.partners-section {
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 0 16px 8px;
  text-align: center;
}
.partners-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 12px;
}
.partners-section img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: block;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .form-intro-title {
    font-size: 22px;
  }
  .progress-steps {
    padding: 14px 16px 10px;
  }
  .step-circle {
    width: 36px;
    height: 36px;
  }
  .step-circle svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 600px) {
  .form-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .security-strip {
    margin: -24px -18px 24px;
    padding: 10px 18px;
    border-radius: 14px 14px 0 0;
    gap: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .three-col {
    grid-template-columns: 1fr;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .progress-steps .step span {
    display: none;
  }
  .header-tagline {
    display: none;
  }
  .step-header {
    flex-direction: column;
    gap: 12px;
  }
  .form-nav {
    flex-wrap: wrap;
  }
  .form-nav-step {
    order: -1;
    flex-basis: 100%;
    margin-bottom: 4px;
  }
  .form-intro-title {
    font-size: 20px;
  }
}

/* ── Security badge in header ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── Security strip at top of form card ── */
.security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, #f8fafc, #f0fdf4);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 18px 18px 0 0;
  margin: -44px -44px 32px;
  padding-left: 44px;
  padding-right: 44px;
}
.security-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.security-item svg {
  stroke: #16a34a;
  flex-shrink: 0;
}

/* ── Section label within steps ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 28px 0 14px;
  padding: 8px 14px;
  background: #eff6ff;
  border-radius: 8px;
  border-left: 3px solid #2563eb;
}
.section-label svg {
  flex-shrink: 0;
  stroke: #2563eb;
}
.section-note {
  font-size: 12px;
  color: #64748b;
  margin: -6px 0 14px;
  line-height: 1.5;
  padding-left: 2px;
}

/* ── Input with show/hide toggle ── */
.input-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-toggle-wrapper input {
  padding-right: 44px;
  width: 100%;
}
.toggle-visibility {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.toggle-visibility:hover {
  color: #2563eb;
}
.eye-icon {
  pointer-events: none;
}

/* ── Security seals (Step 4) ── */
.security-seals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px;
  margin: 20px 0 0;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}
.seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  text-align: center;
}

/* ── Masked notice label ── */
.masked-notice {
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 8px;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Review layout ── */
.review-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.review-group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.review-group h3 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.review-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.review-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
}
.review-value {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  word-break: break-word;
}

/* ══════════════════════════════════════════ */
/*  Trust Stats Bar                          */
/* ══════════════════════════════════════════ */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: -36px auto 0;
  position: relative;
  z-index: 10;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.trust-stat {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 24px 12px 20px;
  border-right: 1px solid #f1f5f9;
  transition: background 0.2s;
}
.trust-stat:first-child { border-radius: 16px 0 0 16px; }
.trust-stat:last-child { border-right: none; border-radius: 0 16px 16px 0; }
.trust-stat:hover { background: #f8fafc; }
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.trust-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}
.trust-stat span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* ══ Section Tag Badge ══ */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
}

/* ══ How It Works ══ */
.howit-section {
  padding: 64px 24px 56px;
  background: #fff;
  text-align: center;
}
.howit-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.howit-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 40px;
}
.howit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.howit-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.howit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #bfdbfe;
}
.howit-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.howit-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.howit-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.howit-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

/* ══════════════════════════════════════════ */
/*  Customer Reviews                         */
/* ══════════════════════════════════════════ */
.reviews-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.reviews-header {
  text-align: center;
  margin-bottom: 32px;
}
.reviews-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.reviews-score {
  font-size: 36px;
  font-weight: 800;
  color: #2563eb;
}
.reviews-stars {
  color: #f59e0b;
  font-size: 22px;
  letter-spacing: 2px;
}
.reviews-count {
  font-size: 13px;
  color: #64748b;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.review-top strong {
  font-size: 13px;
  color: #1e293b;
}
.review-date {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}
.review-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.review-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
}
.review-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}
.review-badge.verified {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.reviews-more {
  text-align: center;
}
.reviews-breakdown {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: #f8fafc;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.breakdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.bd-bar {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
}
.bd-5 { width: 160px; background: #16a34a; }
.bd-4 { width: 32px; background: #84cc16; }
.bd-3 { width: 12px; background: #eab308; }
.bd-2 { width: 6px; background: #f97316; }
.bd-1 { width: 4px; background: #ef4444; }

/* ══════════════════════════════════════════ */
/*  Referral / Sponsorship                   */
/* ══════════════════════════════════════════ */
.referral-section {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
  padding: 56px 24px;
}
.referral-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.referral-icon {
  margin-bottom: 12px;
}
.referral-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}
.referral-subtitle {
  font-size: 14px;
  color: #475569;
  margin-bottom: 28px;
}
.referral-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  margin-bottom: 32px;
}
.referral-benefit {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.referral-benefit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.rb-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #f0fdf4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.referral-benefit strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}
.referral-benefit span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.referral-how {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}
.referral-how h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}
.referral-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 140px;
  text-align: center;
}
.rs-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-step span {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}
.rs-arrow {
  font-size: 20px;
  color: #94a3b8;
  margin-top: -16px;
}
.referral-hint {
  display: block;
  font-size: 11px;
  color: #16a34a;
  margin-top: 4px;
  font-weight: 600;
}

/* ── Referral code box on success screen ── */
.referral-discount-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 12px 18px;
  margin: 16px auto;
  max-width: 500px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
}
.referral-code-box {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 18px 24px;
  margin: 20px auto;
  max-width: 420px;
  text-align: center;
}
.rcb-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  display: block;
  margin-bottom: 10px;
}
.rcb-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.rcb-code {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}
.rcb-hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* ══════════════════════════════════════════ */
/*  Why Trust Us                             */
/* ══════════════════════════════════════════ */
.why-trust-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}
.why-trust-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 36px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #bfdbfe;
}
.why-card svg {
  margin-bottom: 14px;
}
.why-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

/* ── Partners section ── */
.partners-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Responsive for new sections ── */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .referral-benefits {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-section h1 {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-section {
    padding: 56px 16px 48px;
  }
  .trust-bar {
    flex-wrap: wrap;
    margin-top: -24px;
    border-radius: 12px;
    margin-left: 16px;
    margin-right: 16px;
  }
  .trust-stat {
    min-width: 100px;
    flex: 1 1 33%;
  }
  .trust-stat:first-child,
  .trust-stat:last-child { border-radius: 0; }
  .howit-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .referral-steps {
    flex-direction: column;
    gap: 16px;
  }
  .rs-arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-security-badges {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-section h1 {
    font-size: 24px;
  }
  .hero-features {
    flex-direction: column;
    gap: 8px;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .hero-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ═══ Session Lock Screen ═══ */
.session-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.session-lock-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: lockCardIn 0.4s ease;
}
@keyframes lockCardIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.lock-icon {
  margin-bottom: 16px;
}
.session-lock-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}
.session-lock-card p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 6px;
  line-height: 1.5;
}
.lock-sub {
  font-weight: 600;
  color: #334155 !important;
  margin-bottom: 20px !important;
}
.lock-form {
  text-align: left;
  margin-top: 16px;
}
.lock-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.lock-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lock-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.lock-error {
  display: block;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 10px;
}
.lock-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.lock-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.lock-new-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.lock-new-btn:hover {
  color: #2563eb;
}
.lock-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  color: #94a3b8;
}

/* ═══ Session Timer Bar ═══ */
.session-timer-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 6px 24px;
}
.stb-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}
.stb-inner strong {
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}
.stb-saved {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #16a34a;
  font-weight: 600;
  animation: savedPop 0.3s ease;
}
@keyframes savedPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 700px) {
  .session-lock-card {
    padding: 28px 20px;
  }
}

/* ═══ Housing Dynamic Branches ═══ */
.housing-dynamic-block {
  margin-top: 12px;
  margin-bottom: 16px;
}
.housing-branch {
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  padding: 20px 18px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  animation: branchFadeIn 0.3s ease;
}
.branch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 1px solid #dbeafe;
}
@keyframes branchFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ Loan Simulator ═══ */
.simulator-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 56px 24px;
  border-top: 1px solid #e2e8f0;
}
.simulator-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.simulator-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.simulator-header svg {
  flex-shrink: 0;
}
.simulator-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
}
.simulator-header p {
  font-size: 14px;
  color: #64748b;
}
.simulator-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.sim-inputs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sim-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.sim-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sim-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.sim-prefix {
  font-weight: 700;
  color: #64748b;
  font-size: 15px;
}
.sim-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  background: transparent;
  font-family: inherit;
  width: 100%;
  min-width: 0;
}
.sim-input-wrap input::-webkit-inner-spin-button,
.sim-input-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sim-input-wrap input[type=number] {
  -moz-appearance: textfield;
}
.sim-range {
  width: 100%;
  margin-top: 8px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
.sim-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.sim-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
  cursor: pointer;
}
.sim-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.sim-results {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.sim-result-card {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.sim-monthly {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
}
.sim-result-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.sim-result-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #1e40af;
  line-height: 1.2;
}
.sim-result-sub {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}
.sim-result-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.sim-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.sim-detail-row:last-child {
  border-bottom: none;
}
.sim-detail-row span {
  font-size: 14px;
  color: #64748b;
}
.sim-detail-row strong {
  font-size: 14px;
  color: #1e293b;
  font-weight: 700;
}
.sim-cta {
  margin-bottom: 16px;
}
.sim-apply-btn {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 15px;
  text-decoration: none;
}
.sim-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .simulator-body {
    grid-template-columns: 1fr;
  }
  .sim-result-value {
    font-size: 28px;
  }
}

/* ═══ Contact Section ═══ */
.contact-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 56px 24px;
  border-top: 1px solid #e2e8f0;
}
.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.contact-header {
  text-align: center;
  margin-bottom: 36px;
}
.contact-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}
.contact-header p {
  color: #64748b;
  font-size: 15px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.contact-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.contact-channel.wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
}
.contact-channel.wa strong,
.contact-channel.wa span {
  color: #fff;
}
.contact-channel.email-ch {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
}
.contact-channel.email-ch strong,
.contact-channel.email-ch span {
  color: #fff;
}
.cc-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
}
.cc-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.cc-text strong {
  font-size: 16px;
  font-weight: 700;
}
.cc-text span {
  font-size: 12px;
  opacity: 0.9;
}
.cc-detail {
  font-weight: 600;
  font-size: 13px !important;
  opacity: 1 !important;
  margin-top: 2px;
}
.cc-arrow {
  font-size: 20px;
  opacity: 0.7;
  transition: transform 0.2s;
}
.contact-channel:hover .cc-arrow {
  transform: translateX(4px);
}
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.contact-form-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
}
.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.cf-field {
  margin-bottom: 14px;
}
.cf-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: #fff;
}
.cf-field textarea {
  resize: vertical;
  min-height: 90px;
}
.cf-actions {
  margin-top: 8px;
}
.cf-submit {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cf-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.cf-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.cf-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Focus styles for accessibility */
.header-contact-link:focus-visible,
.contact-channel:focus-visible,
.whatsapp-float:focus-visible,
.footer-col a:focus-visible,
.cf-submit:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* ═══ Floating WhatsApp Button ═══ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  animation: none;
}
.whatsapp-float svg {
  flex-shrink: 0;
}
.wa-float-label {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
}

/* Responsive contact */
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cf-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
  }
  .wa-float-label {
    display: none;
  }
  .whatsapp-float {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}

/* ═══ AI Assistant ═══ */
.ai-float-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: aiFloatPulse 3s ease-in-out infinite;
}
.ai-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(29, 78, 216, 0.45);
}
@keyframes aiFloatPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(29, 78, 216, 0.35); }
  50% { box-shadow: 0 6px 32px rgba(124, 58, 237, 0.5); }
}
.ai-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-float-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.ai-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 9991;
  width: 420px;
  max-height: 600px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: aiPanelIn 0.3s ease;
}
@keyframes aiPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: #fff;
}
.ai-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-panel-title strong {
  font-size: 15px;
  display: block;
}
.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 4px;
  vertical-align: middle;
}
.ai-status-text {
  font-size: 11px;
  opacity: 0.85;
}
.ai-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.ai-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 200px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-welcome {
  text-align: center;
  padding: 20px 10px;
}
.ai-welcome-icon {
  margin-bottom: 12px;
}
.ai-welcome h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}
.ai-welcome p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.ai-msg {
  display: flex;
  gap: 8px;
  animation: aiMsgIn 0.3s ease;
}
@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-msg.user {
  flex-direction: row-reverse;
}
.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}
.ai-msg.bot .ai-msg-avatar {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: #2563eb;
}
.ai-msg.user .ai-msg-avatar {
  background: #f1f5f9;
  color: #475569;
}
.ai-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.ai-msg.bot .ai-msg-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 4px;
}
.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-msg-actions .ai-action-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  color: #2563eb;
  font-family: inherit;
  transition: all 0.2s;
}
.ai-msg-actions .ai-action-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.ai-filled-fields {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0fdf4;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}
.ai-filled-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #166534;
  padding: 2px 0;
}
.ai-filled-item svg {
  flex-shrink: 0;
}
.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: aiTypingBounce 1.4s ease-in-out infinite;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTypingBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.ai-suggestions {
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid #f1f5f9;
}
.ai-chip {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  color: #475569;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.ai-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}
.ai-input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid #f1f5f9;
}
.ai-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.ai-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  color: #1e293b;
}
.ai-input::placeholder {
  color: #94a3b8;
}
.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ai-send-btn:hover {
  transform: scale(1.05);
}
.ai-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 8px;
}
.ai-context-tip {
  position: fixed;
  bottom: 170px;
  right: 24px;
  z-index: 9989;
  max-width: 380px;
  animation: aiTipIn 0.4s ease;
}
@keyframes aiTipIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-tip-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}
.ai-tip-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.ai-tip-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 2px;
  transition: color 0.2s;
}
.ai-tip-close:hover {
  color: #475569;
}
@media (max-width: 500px) {
  .ai-panel {
    right: 8px;
    left: 8px;
    bottom: 80px;
    width: auto;
    max-height: 70vh;
  }
  .ai-float-btn {
    right: 12px;
    bottom: 82px;
    padding: 12px 16px;
    font-size: 13px;
  }
  .ai-float-btn .ai-float-label {
    display: none;
  }
  .ai-context-tip {
    right: 8px;
    left: 8px;
    max-width: none;
    bottom: 150px;
  }
}
