html, body {
  margin: 0 !important;
  padding: 0 !important;
}
/* Berry Law Sponsorship Request Form */
.bl-wrap {
  /* Berry Law brand: gold accent (buttons, borders, highlights) + a dark
     charcoal "ink" color for accent text/links, since gold text fails
     contrast on white. Matches /attorney-referral and /book. */
  --vi-primary: #ecbe3e;
  --vi-primary-hover: #bd9832;
  --vi-primary-light: rgba(236, 190, 62, .08);
  --vi-ink: #2c3639;
  --vi-ink-hover: #1c2426;
  --vi-secondary: #000;
  --vi-gray-50: #f9fafb;
  --vi-gray-100: #f3f4f6;
  --vi-gray-200: #e5e7eb;
  --vi-gray-300: #d1d5db;
  --vi-gray-400: #9ca3af;
  --vi-gray-500: #6b7280;
  --vi-gray-700: #374151;
  --vi-gray-900: #111827;
  --vi-white: #fff;
  --vi-danger: #ef4444;
  --vi-warning: #f59e0b;
  --vi-success: #10b981;
  --vi-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vi-radius-xl: 22px;
  --vi-shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, .3)
}

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

.bl-wrap {
  font-family: var(--vi-font);
  color: var(--vi-gray-900);
  line-height: 1.5
}

.bl-page-bg {
  background: linear-gradient(140deg, #000 0%, #0a0a0a 55%, #141414 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  border: none !important;
}

.bl-form-wrapper {
  width: 100%;
  max-width: none;
  background: var(--vi-white);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* Center inner content with a comfortable max-width on wide screens
   while letting the wrapper span edge-to-edge. */
.bl-form-header,
.bl-progress-wrapper,
.bl-step-content,
.bl-nav,
.bl-form-footer {
  padding-left: max(24px, calc((100% - 920px) / 2));
  padding-right: max(24px, calc((100% - 920px) / 2));
}

.bl-form-header {
  background: var(--vi-secondary);
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.bl-brand-image {
  height: 42px;
  width: auto;
  display: block;
}

.bl-secure-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--vi-gray-400);
  font-weight: 500
}

.bl-progress-wrapper {
  background: var(--vi-gray-50);
  border-bottom: 1px solid var(--vi-gray-200);
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
}

.bl-progress-track {
  flex: 1;
  height: 6px;
  background: var(--vi-gray-200);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vi-primary), var(--vi-primary-hover));
  border-radius: 999px;
  width: 0%;
  transition: width .55s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}

.bl-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 14px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4));
  border-radius: 999px;
}

.bl-step-area {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.bl-step-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .32s ease;
}

.bl-step-content {
  padding-top: 24px;
  padding-bottom: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.bl-step-eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--vi-ink);
  background: var(--vi-primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.bl-step-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--vi-gray-900);
  line-height: 1.3;
  margin-bottom: 6px
}

.bl-step-subtitle {
  font-size: .92rem;
  color: var(--vi-gray-500);
  line-height: 1.55;
  margin-bottom: 22px
}

.bl-options-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 8px
}

.bl-option-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 2px solid var(--vi-gray-200);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
  background: var(--vi-white);
  user-select: none
}

.bl-option-card:hover {
  border-color: var(--vi-primary);
  background: var(--vi-primary-light);
  transform: translateX(2px)
}

.bl-option-card.selected {
  border-color: var(--vi-primary);
  background: var(--vi-primary-light)
}

.bl-option-indicator {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--vi-gray-300);
  background: var(--vi-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .18s ease, background .18s ease;
  position: relative
}

.bl-option-card.selected .bl-option-indicator {
  border-color: var(--vi-primary);
  background: var(--vi-primary)
}

.bl-option-card.selected .bl-option-indicator::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff
}

.bl-option-card.is-checkbox .bl-option-indicator {
  border-radius: 6px
}

.bl-option-card.is-checkbox.selected .bl-option-indicator::after {
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.5 8.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat
}

.bl-option-text {
  font-size: .93rem;
  font-weight: 500;
  color: var(--vi-gray-700);
  flex: 1;
  line-height: 1.4
}

.bl-option-card.selected .bl-option-text {
  color: var(--vi-ink);
  font-weight: 600
}

.bl-conditional-field {
  display: none;
  margin-top: 10px;
  padding: 16px 20px;
  background: var(--vi-gray-50);
  border: 1px solid var(--vi-gray-200);
  border-radius: 10px;
  animation: bl-fade-down .22s ease forwards
}

.bl-conditional-field.visible {
  display: block
}

@keyframes bl-fade-down {
  from { opacity: 0; transform: translateY(-6px) }
  to { opacity: 1; transform: translateY(0) }
}

.bl-inline-info {
  display: none;
  margin-top: 6px;
  padding: 12px 16px;
  border-left: 3px solid var(--vi-warning);
  background: rgba(245, 158, 11, .07);
  border-radius: 0 8px 8px 0;
  font-size: .85rem;
  color: var(--vi-gray-700);
  line-height: 1.5;
}

.bl-inline-info.visible {
  display: block;
  animation: bl-fade-down .22s ease forwards
}

.bl-info-step {
  padding: 22px 26px;
  border-radius: 14px;
  background: rgba(236, 190, 62, .08);
  border: 1px solid rgba(236, 190, 62, .25);
  margin-bottom: 8px;
  font-size: .93rem;
  color: var(--vi-gray-700);
  line-height: 1.65;
}

.bl-info-step p { margin-bottom: 10px; }
.bl-info-step p:last-child { margin-bottom: 0; }
.bl-info-step strong { color: var(--vi-gray-900); }
.bl-info-step a {
  color: var(--vi-ink);
  font-weight: 600;
  text-decoration: underline;
}
.bl-info-step a:hover { color: var(--vi-ink-hover); }

.bl-fields-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px
}

.bl-field-row {
  display: flex;
  gap: 12px
}

.bl-field-row .bl-form-group {
  flex: 1
}

.bl-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.bl-form-group.mi {
  flex: 0 0 80px
}

.bl-form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--vi-gray-700)
}

.bl-form-help {
  font-size: .76rem;
  color: var(--vi-gray-400);
  margin-top: 2px;
  line-height: 1.4;
}

.bl-form-input,
.bl-form-select,
.bl-form-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 2px solid var(--vi-gray-200);
  border-radius: 9px;
  font-size: .93rem;
  font-family: var(--vi-font);
  color: var(--vi-gray-900);
  background: var(--vi-white);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease
}

.bl-form-input:focus,
.bl-form-select:focus,
.bl-form-textarea:focus {
  border-color: var(--vi-primary);
  box-shadow: 0 0 0 3px rgba(236, 190, 62, .25)
}

.bl-form-input.has-error,
.bl-form-select.has-error,
.bl-form-textarea.has-error {
  border-color: var(--vi-danger)
}

.bl-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px
}

.bl-form-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.bl-input-with-prefix {
  position: relative;
}
.bl-input-with-prefix .bl-input-prefix {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vi-gray-500);
  font-size: .93rem;
  font-weight: 600;
  pointer-events: none;
}
.bl-input-with-prefix .bl-form-input {
  padding-left: 26px;
}

.bl-optional {
  font-size: .68rem;
  font-weight: 500;
  color: var(--vi-gray-400);
  background: var(--vi-gray-100);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle
}

.bl-step-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 8px;
  font-size: .83rem;
  color: var(--vi-danger);
  font-weight: 500
}

.bl-step-error.visible {
  display: block
}

.bl-nav {
  display: flex;
  gap: 10px;
  padding-top: 0;
  padding-bottom: 20px;
  flex-shrink: 0;
}

.bl-btn-continue {
  flex: 1;
  padding: 14px 20px;
  background: var(--vi-primary);
  color: var(--vi-gray-900);
  border: none;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--vi-font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease
}

.bl-btn-continue:hover {
  background: var(--vi-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(236, 190, 62, .35)
}

.bl-btn-continue:active {
  transform: translateY(0)
}

.bl-btn-continue:disabled {
  background: var(--vi-gray-300);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bl-btn-back {
  padding: 14px 18px;
  background: transparent;
  border: 2px solid var(--vi-gray-200);
  border-radius: 11px;
  color: var(--vi-gray-500);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--vi-font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s ease-in-out
}

.bl-btn-back:hover {
  background: var(--vi-gray-100);
  color: var(--vi-gray-700);
  border-color: var(--vi-gray-300)
}

.bl-btn-back.hidden { display: none }

.bl-thankyou {
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.bl-thankyou-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: bl-pop .45s cubic-bezier(.34, 1.56, .64, 1) forwards;
  color: #fff
}

@keyframes bl-pop {
  from { transform: scale(0); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}

.bl-thankyou h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vi-gray-900);
  margin-bottom: 12px
}

.bl-thankyou p {
  font-size: .97rem;
  color: var(--vi-gray-500);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.65
}

.bl-thankyou-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--vi-primary);
  color: var(--vi-gray-900);
  border-radius: 11px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--vi-font);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease
}

.bl-thankyou-phone:hover {
  background: var(--vi-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 190, 62, .3)
}

.bl-thankyou-note {
  margin-top: 32px;
  font-size: .8rem;
  color: var(--vi-gray-400)
}

.bl-form-footer {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid var(--vi-gray-100);
  font-size: .73rem;
  color: var(--vi-gray-400);
  text-align: center;
  line-height: 1.5
}

.bl-form-footer a {
  color: var(--vi-gray-500);
  text-decoration: underline
}

/* File upload styles */
.bl-file-drop {
  border: 2px dashed var(--vi-gray-300);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: var(--vi-gray-50);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.bl-file-drop:hover,
.bl-file-drop.drag-over {
  border-color: var(--vi-primary);
  background: var(--vi-primary-light);
}
.bl-file-drop-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  color: var(--vi-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 190, 62, .15);
  border-radius: 50%;
}
.bl-file-drop-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--vi-gray-900);
  margin-bottom: 4px;
}
.bl-file-drop-title .bl-file-link {
  color: var(--vi-ink);
  text-decoration: underline;
}
.bl-file-drop-hint {
  font-size: .8rem;
  color: var(--vi-gray-500);
}
.bl-file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--vi-white);
  border: 2px solid var(--vi-success);
  border-radius: 11px;
}
.bl-file-selected-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: rgba(16, 185, 129, .12);
  color: var(--vi-success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bl-file-selected-info {
  flex: 1;
  overflow: hidden;
}
.bl-file-selected-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--vi-gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bl-file-selected-size {
  font-size: .76rem;
  color: var(--vi-gray-500);
  margin-top: 2px;
}
.bl-file-remove {
  background: transparent;
  border: none;
  color: var(--vi-gray-400);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease, background .15s ease;
}
.bl-file-remove:hover {
  color: var(--vi-danger);
  background: rgba(239, 68, 68, .08);
}
.bl-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Acknowledgement checkbox */
.bl-ack-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid var(--vi-gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  background: var(--vi-white);
}
.bl-ack-card:hover {
  border-color: var(--vi-primary);
  background: var(--vi-primary-light);
}
.bl-ack-card.selected {
  border-color: var(--vi-primary);
  background: var(--vi-primary-light);
}
.bl-ack-card .bl-option-indicator {
  border-radius: 6px;
  margin-top: 1px;
}
.bl-ack-card.selected .bl-option-indicator {
  border-color: var(--vi-primary);
  background: var(--vi-primary);
}
.bl-ack-card.selected .bl-option-indicator::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.5 8.5L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.bl-ack-text {
  flex: 1;
  font-size: .9rem;
  color: var(--vi-gray-700);
  line-height: 1.55;
}
.bl-ack-card.selected .bl-ack-text {
  color: var(--vi-gray-900);
  font-weight: 500;
}

/* Dropdown for checkbox multi-select */
.bl-dropdown-container { position: relative }
.bl-dropdown-toggle { user-select: none }
.bl-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  background: var(--vi-white);
  border: 2px solid var(--vi-gray-200);
  border-radius: 11px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
  z-index: 10;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px
}
.bl-dropdown-menu.open {
  display: block;
  animation: bl-fade-down .2s ease forwards
}
.bl-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0;
}
.bl-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--vi-primary-light);
  color: var(--vi-ink);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100%;
}
.bl-selected-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bl-tag-remove {
  width: 14px;
  height: 14px;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity .15s ease;
}
.bl-tag-remove:hover { opacity: 1 }

/* Submitting overlay */
.bl-submitting {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.bl-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--vi-gray-200);
  border-top-color: var(--vi-primary);
  border-radius: 50%;
  animation: bl-spin 0.8s linear infinite;
}
@keyframes bl-spin { to { transform: rotate(360deg) } }
.bl-submitting-text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--vi-gray-700);
}

@media (max-width: 900px) {
  .bl-form-header,
  .bl-progress-wrapper,
  .bl-step-content,
  .bl-nav,
  .bl-form-footer {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 560px) {
  .bl-form-header,
  .bl-progress-wrapper,
  .bl-step-content,
  .bl-nav,
  .bl-form-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .bl-form-header { padding-top: 14px; padding-bottom: 14px }
  .bl-progress-wrapper { padding-top: 9px; padding-bottom: 9px }
  .bl-step-content { padding-top: 24px; padding-bottom: 16px }
  .bl-nav { padding-top: 0; padding-bottom: 24px }
  .bl-step-title { font-size: 1.18rem }
  .bl-field-row { flex-direction: column; gap: 10px }
  .bl-form-group.mi { flex: none }
  .bl-thankyou { padding: 40px 20px }
  .bl-form-footer { padding-top: 12px; padding-bottom: 12px }
}

@media (max-width: 380px) {
  .bl-secure-badge-text { display: none }
  .bl-brand-image { height: 36px }
}
