/* =============================================================================
   ROBONIX — EXPLORE PHYSICAL AI USE CASES MODAL (Card 1 Redesign)
   Compact, centered modal consistent with ROBONIX R&D & Consulting design language.
   Proportioned with zero wasted whitespace, adaptive height, and aligned 2-column form.
   ============================================================================= */

/* 1. Modal Overlay (Restrained dark overlay with subtle blur) */
#useCasesModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: rgba(5, 16, 15, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

#useCasesModalOverlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 2. Compact Centered Modal Container */
#useCasesModalContainer {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(92vh, 820px);
  background-color: #FFFFFF;
  border: 1px solid #DDE5E1;
  border-radius: 20px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.28), 0 4px 16px -2px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
  opacity: 0;
  box-sizing: border-box;
}

#useCasesModalOverlay.is-open #useCasesModalContainer {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 3. Circular Close (X) Button (Upper-Right Corner) */
#useCasesModalContainer .rnd-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #FFFFFF;
  color: #1B1F23;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

#useCasesModalContainer .rnd-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.4;
}

#useCasesModalContainer .rnd-modal-close:hover {
  background-color: #F2F7F4;
  border-color: #0F7B5F;
  color: #0F7B5F;
  transform: scale(1.06);
}

#useCasesModalContainer .rnd-modal-close:focus-visible {
  outline: 3px solid #00E08E;
  outline-offset: 2px;
}

/* 4. Scrollable Container (Adapts to Content Height) */
.uc-modal-scroll {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 24px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Custom Sleek Scrollbar */
.uc-modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.uc-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.uc-modal-scroll::-webkit-scrollbar-thumb {
  background: #D1DDD7;
  border-radius: 4px;
}
.uc-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #A3B5AC;
}

/* 5. Header Section (Hierarchy: Pill -> Title with POC in Green -> Supporting Text) */
.uc-hero-header {
  position: relative;
  padding-right: 48px; /* Leave breathing room for the close button */
  margin-bottom: 12px;
  flex-shrink: 0;
}

.uc-hero-header .rnd-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0F7B5F;
  background: #E8F5F1;
  border: 1px solid rgba(15, 123, 95, 0.22);
  border-radius: 9999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.uc-hero-header .rnd-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00E08E;
  box-shadow: 0 0 6px #00E08E;
}

.uc-title {
  font-family: "Inter Tight", system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #111827;
  margin: 0 0 5px 0;
  letter-spacing: -0.015em;
}

.uc-title .rnd-accent {
  color: #0F7B5F;
}

.uc-tagline {
  font-size: 13px;
  line-height: 1.45;
  color: #4B5563;
  margin: 0 0 12px 0;
  max-width: 680px;
}

/* 6. Simplified Progress Indicator (Directly below Header) */
.uc-wizard-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: #F4F8F6;
  border: 1px solid #E2EBE6;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.uc-wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #64748B;
  transition: all 0.2s ease;
}

.uc-wizard-step.is-active {
  color: #0F7B5F;
  font-weight: 600;
}

.uc-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E2ECE7;
  color: #64748B;
  font-size: 10.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.uc-wizard-step.is-active .uc-step-badge {
  background: #0F7B5F;
  color: #FFFFFF;
  box-shadow: 0 0 8px rgba(15, 123, 95, 0.35);
}

.uc-wizard-step.is-completed .uc-step-badge {
  background: #00E08E;
  color: #0B1E17;
}

.uc-wizard-line {
  width: 24px;
  height: 2px;
  background: #DDE5E1;
  border-radius: 1px;
}

/* 7. Main Stage Container */
.uc-wizard-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.uc-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* 8. Balanced 2-Column Form Layout */
.uc-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.uc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 20px;
  align-items: start;
}

.uc-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.uc-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.uc-req {
  color: #0F7B5F;
  font-weight: 700;
}

.uc-opt {
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 400;
  text-transform: none;
}

.uc-input-wrap {
  position: relative;
  width: 100%;
}

.uc-input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #D1DDD7;
  background-color: #FFFFFF;
  color: #111827;
  font-family: inherit;
  font-size: 13.5px;
  padding: 0 12px;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.uc-input::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

.uc-input:focus {
  outline: none;
  border-color: #0F7B5F;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.12);
}

.uc-field.is-disabled .uc-input {
  background-color: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Phone Group (Calling Code Selector + Phone Input) */
.uc-phone-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.uc-phone-code-combobox {
  position: relative;
  flex-shrink: 0;
}

.uc-phone-code-btn {
  height: 42px;
  padding: 0 10px;
  border-radius: 8px 0 0 8px;
  border: 1px solid #D1DDD7;
  border-right: none;
  background: #F8FAF9;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.uc-phone-code-btn:hover {
  background: #EFF5F2;
}

.uc-phone-code-btn:focus-visible {
  outline: 2px solid #0F7B5F;
  outline-offset: -1px;
}

.uc-phone-flag {
  font-size: 14px;
  line-height: 1;
}

.uc-chevron-svg {
  width: 14px;
  height: 14px;
  stroke: #64748B;
  transition: transform 0.18s ease;
}

.uc-phone-code-combobox.is-open .uc-chevron-svg,
.uc-combobox-wrap.is-open .uc-chevron-svg {
  transform: rotate(180deg);
}

.uc-phone-input-wrap {
  flex: 1 1 auto;
}

.uc-phone-input-wrap .uc-input {
  border-radius: 0 8px 8px 0;
}

/* Searchable Comboboxes (Country, State, City) */
.uc-combobox-wrap {
  position: relative;
  width: 100%;
}

.uc-combobox-input {
  padding-right: 36px;
  cursor: text;
}

.uc-combobox-arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 42px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  padding: 0;
}

.uc-combobox-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.uc-combobox-dropdown,
.uc-phone-code-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: min(210px, 40vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid #D1DDD7;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 100;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overscroll-behavior: contain;
}

.uc-phone-code-dropdown {
  width: 240px;
  left: 0;
  right: auto;
}

.uc-dropdown-search-wrap {
  padding: 6px 8px;
  border-bottom: 1px solid #EEF3F0;
  background: #F9FCFB;
}

.uc-dropdown-search {
  width: 100%;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #D1DDD7;
  padding: 0 8px;
  font-size: 12.5px;
  font-family: inherit;
  box-sizing: border-box;
}

.uc-dropdown-search:focus {
  outline: none;
  border-color: #0F7B5F;
}

.uc-dropdown-list {
  max-height: 160px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uc-option-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  -webkit-user-select: none;
  min-height: 34px;
  box-sizing: border-box;
  outline: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.uc-option-item:hover,
.uc-option-item:focus,
.uc-option-item.is-selected {
  background: #E8F5F1;
  color: #0F7B5F;
  font-weight: 500;
}

.uc-option-empty {
  padding: 10px 12px;
  font-size: 12.5px;
  color: #8C9993;
  text-align: center;
}

/* Inline Validation States */
.uc-error-msg {
  display: none;
  font-size: 11px;
  color: #DC2626;
  margin-top: 3px;
  line-height: 1.3;
}

.uc-field.has-error .uc-error-msg {
  display: block;
}

.uc-field.has-error .uc-input {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
}

.uc-field.has-error .uc-input:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

/* 9. Compact Confidentiality Notice in Right Column (Row 4) */
.uc-assurance-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #F4F9F6;
  border: 1px solid #D1E7DD;
  border-left: 3px solid #0F7B5F;
  border-radius: 8px;
  height: 42px;
  box-sizing: border-box;
  margin-top: 22px; /* Aligns with input beneath the label of the left column */
}

.uc-assurance-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.uc-assurance-icon svg {
  width: 17px;
  height: 17px;
  color: #0F7B5F;
  display: block;
}

.uc-assurance-text {
  font-size: 11px;
  line-height: 1.35;
  color: #374151;
}

.uc-assurance-text strong {
  color: #0F7B5F;
  font-weight: 600;
}

/* 10. Footer and Continue Button (Inside Popup, Subtle Divider, Right-Aligned) */
.uc-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #EEF3F0;
  flex-shrink: 0;
}

.uc-continue-btn {
  height: 42px;
  padding: 0 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0F7B5F 0%, #0A5E48 100%);
  color: #FFFFFF;
  border: 1px solid rgba(0, 224, 142, 0.35);
  box-shadow: 0 4px 14px rgba(15, 123, 95, 0.28);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uc-continue-btn:hover {
  background: linear-gradient(135deg, #129271 0%, #0F7B5F 100%);
  border-color: #00E08E;
  box-shadow: 0 6px 18px rgba(15, 123, 95, 0.38), 0 0 14px rgba(0, 224, 142, 0.3);
  transform: translateY(-1px);
}

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

.uc-continue-btn:focus-visible {
  outline: 3px solid #00E08E;
  outline-offset: 2px;
}

/* 11. Step 2 Specific Styles (POC Scope & Use Cases) */
.uc-form-grid--step2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  align-items: start;
}

.uc-form-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Conditional Other Industry Field */
.uc-field--conditional {
  animation: ucFadeSlideDown 0.2s ease forwards;
}

@keyframes ucFadeSlideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Multiline Textarea */
.uc-field--textarea .uc-textarea-wrap {
  position: relative;
  width: 100%;
}

.uc-textarea {
  width: 100%;
  min-height: 84px;
  max-height: 140px;
  border-radius: 8px;
  border: 1px solid #D1DDD7;
  background-color: #FFFFFF;
  color: #111827;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.uc-textarea::placeholder {
  color: #94A3B8;
  font-size: 12.5px;
}

.uc-textarea:focus {
  outline: none;
  border-color: #0F7B5F;
  box-shadow: 0 0 0 3px rgba(15, 123, 95, 0.12);
}

.uc-textarea-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #64748B;
}

.uc-hint-bullet {
  color: #94A3B8;
}

/* Grouped Multi-Select Dropdown */
.uc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.uc-clear-all-btn {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.uc-clear-all-btn:hover {
  text-decoration: underline;
}

.uc-multiselect-wrap {
  position: relative;
  width: 100%;
}

.uc-multiselect-trigger {
  position: relative;
  width: 100%;
}

.uc-multiselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: min(230px, 42vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
  border: 1px solid #D1DDD7;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 120;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overscroll-behavior: contain;
}

.uc-req-group {
  margin-bottom: 4px;
}

.uc-req-group-title {
  padding: 6px 12px 4px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0F7B5F;
  background: #F4F9F6;
  border-top: 1px solid #EEF3F0;
  border-bottom: 1px solid #EEF3F0;
  user-select: none;
  -webkit-user-select: none;
}

.uc-req-group:first-child .uc-req-group-title {
  border-top: none;
}

.uc-req-option-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #1F2937;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  min-height: 34px;
  box-sizing: border-box;
  outline: none;
  transition: background 0.12s ease;
}

.uc-req-option-item:hover,
.uc-req-option-item:focus {
  background: #EFF5F2;
}

.uc-req-option-item.is-selected {
  background: #E8F5F1;
  color: #0F7B5F;
  font-weight: 500;
}

.uc-req-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #94A3B8;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  transition: all 0.15s ease;
}

.uc-req-option-label {
  flex: 1 1 auto;
  pointer-events: none;
  line-height: 1.35;
}

.uc-req-option-item.is-selected .uc-req-checkbox {
  background: #0F7B5F;
  border-color: #0F7B5F;
  color: #FFFFFF;
}

.uc-req-checkbox svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.8;
  display: none;
}

.uc-req-option-item.is-selected .uc-req-checkbox svg {
  display: block;
}

/* Selected Removable Chips Area */
.uc-req-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  max-height: 84px;
  overflow-y: auto;
}

.uc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 9px;
  background: #E8F5F1;
  border: 1px solid rgba(15, 123, 95, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #0F7B5F;
  animation: ucChipIn 0.16s ease;
}

@keyframes ucChipIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.uc-chip-remove {
  background: none;
  border: none;
  color: #0F7B5F;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.uc-chip-remove:hover {
  background: rgba(15, 123, 95, 0.2);
  color: #064E3B;
}

.uc-chip-remove svg {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* File Upload Component */
.uc-upload-header {
  margin-bottom: 5px;
}

.uc-upload-subtitle {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-top: -2px;
}

.uc-dropzone {
  border: 1.5px dashed #C2D6CD;
  border-radius: 8px;
  background: #F8FAF9;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.uc-dropzone:hover,
.uc-dropzone.is-dragover {
  border-color: #0F7B5F;
  background: #EFF6F3;
}

.uc-dropzone-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uc-dropzone-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E8F5F1;
  color: #0F7B5F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uc-dropzone-icon svg {
  width: 15px;
  height: 15px;
}

.uc-dropzone-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uc-dropzone-text {
  font-size: 12px;
  color: #1F2937;
}

.uc-browse-btn {
  background: none;
  border: none;
  color: #0F7B5F;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.uc-dropzone-hint {
  font-size: 10px;
  color: #94A3B8;
}

.uc-file-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 80px;
  overflow-y: auto;
}

.uc-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #F1F6F4;
  border-radius: 6px;
  font-size: 11px;
  color: #1F2937;
}

.uc-file-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-file-icon {
  width: 13px;
  height: 13px;
  color: #0F7B5F;
  flex-shrink: 0;
}

.uc-file-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.uc-file-size {
  color: #64748B;
  font-size: 10px;
}

.uc-file-status {
  font-size: 9.5px;
  color: #0F7B5F;
  background: #E8F5F1;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

.uc-file-remove {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.uc-file-remove:hover {
  color: #DC2626;
}

.uc-file-remove svg {
  width: 12px;
  height: 12px;
}

/* Split Action Footer (Back on Left, Continue/Review on Right) */
.uc-card-actions--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uc-back-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #374151;
  border: 1px solid #D1DDD7;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.uc-back-btn:hover {
  background: #F4F8F6;
  border-color: #0F7B5F;
  color: #0F7B5F;
}

/* 12. Review Request State Card */
.uc-card--review {
  display: flex;
  flex-direction: column;
}

.uc-review-content {
  display: flex;
  flex-direction: column;
}

.uc-review-badge-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.uc-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0F7B5F;
  background: #E8F5F1;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(15, 123, 95, 0.2);
}

.uc-review-verified-pill {
  font-size: 11px;
  font-weight: 600;
  color: #0F7B5F;
  background: #E8F5F1;
  padding: 2px 8px;
  border-radius: 999px;
}

.uc-review-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 3px 0;
}

.uc-review-desc {
  font-size: 12.5px;
  color: #4B5563;
  margin: 0 0 12px 0;
}

.uc-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.uc-review-section {
  background: #F8FAF9;
  border: 1px solid #E2EBE7;
  border-radius: 10px;
  padding: 12px 14px;
}

.uc-review-sec-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0F7B5F;
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #E2ECE7;
}

.uc-review-item {
  font-size: 12px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 4px;
}

.uc-review-item strong {
  color: #111827;
}

.uc-review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.uc-review-chip {
  font-size: 10.5px;
  padding: 2px 6px;
  background: #E8F5F1;
  border-radius: 4px;
  color: #0F7B5F;
  font-weight: 500;
}

/* =============================================================================
   12. STEP 3: THANK-YOU CARD (Success State)
   ============================================================================= */
#useCasesModalContainer.is-thankyou .uc-hero-header {
  display: none !important;
}

.uc-card--thankyou {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  width: 100%;
  box-sizing: border-box;
  padding: 36px 20px 28px;
  animation: ucCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.uc-thankyou-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

/* Eyebrow Pill: REQUEST RECEIVED */
.uc-thankyou-pill {
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  background: rgba(15, 123, 95, 0.08);
  color: #0F7B5F;
  border: 1px solid rgba(15, 123, 95, 0.22);
}

/* Simple Green Success Icon (Checkmark inside circle, #0F7B5F) */
.uc-thankyou-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 123, 95, 0.08);
  color: #0F7B5F;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.uc-thankyou-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

/* Prominent Heading: Thank You! */
.uc-thankyou-title {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px 0;
}

/* Concise Supporting Message */
.uc-thankyou-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0 0 28px 0;
  max-width: 420px;
}

/* Primary Button: CLOSE */
.uc-thankyou-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.uc-thankyou-close-btn {
  min-width: 150px;
  height: 42px;
  padding: 0 32px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0F7B5F 0%, #0A5E48 100%);
  color: #FFFFFF;
  border: 1px solid rgba(0, 224, 142, 0.35);
  box-shadow: 0 4px 14px rgba(15, 123, 95, 0.28);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uc-thankyou-close-btn:hover {
  background: linear-gradient(135deg, #129271 0%, #0F7B5F 100%);
  border-color: #00E08E;
  box-shadow: 0 6px 18px rgba(15, 123, 95, 0.38), 0 0 14px rgba(0, 224, 142, 0.3);
  transform: translateY(-1px);
}

.uc-thankyou-close-btn:active {
  transform: translateY(0);
}

.uc-thankyou-close-btn:focus-visible {
  outline: 3px solid #00E08E;
  outline-offset: 2px;
}

/* Submission Loading Spinner */
.uc-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: ucSpin 0.75s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes ucSpin {
  to { transform: rotate(360deg); }
}

.uc-continue-btn:disabled,
.uc-back-btn:disabled,
.uc-thankyou-close-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* Inline Submission Error Banner */
.uc-submit-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  color: #B91C1C;
  font-size: 12.5px;
  margin-top: 12px;
  margin-bottom: 4px;
  box-sizing: border-box;
  animation: ucFadeSlideDown 0.2s ease forwards;
}

.uc-submit-error-icon svg {
  width: 18px;
  height: 18px;
  stroke: #DC2626;
  display: block;
  flex-shrink: 0;
}

.uc-submit-error-text {
  flex: 1 1 auto;
  line-height: 1.35;
}

.uc-submit-retry-btn {
  background: #DC2626;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.uc-submit-retry-btn:hover {
  background: #B91C1C;
}

/* 13. Responsive Breakpoints */
@media (max-width: 860px) {
  #useCasesModalContainer {
    max-width: 94vw;
  }
  
  .uc-modal-scroll {
    padding: 20px 22px 18px 22px;
  }

  .uc-form-grid,
  .uc-form-grid--step2 {
    gap: 12px 16px;
  }
  
  .uc-title {
    font-size: 21px;
  }
}

/* Tablet (641px - 768px): Maintain balanced 2-column layout */
@media (min-width: 641px) and (max-width: 768px) {
  .uc-form-grid,
  .uc-form-grid--step2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 14px;
  }

  .uc-assurance-banner {
    margin-top: 21px;
    height: 42px;
  }

  .uc-review-grid {
    gap: 10px;
  }
}

/* Mobile (<= 640px): Clean single-column layout */
@media (max-width: 640px) {
  #useCasesModalOverlay {
    padding: 12px 8px;
  }

  #useCasesModalContainer {
    max-width: 100%;
    max-height: 96vh;
    border-radius: 16px;
  }

  .uc-modal-scroll {
    padding: 16px 14px 14px 14px;
  }

  .uc-hero-header {
    padding-right: 36px;
    margin-bottom: 8px;
  }

  #useCasesModalContainer .rnd-modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .uc-title {
    font-size: 18px;
  }

  .uc-tagline {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .uc-wizard-progress {
    margin-bottom: 12px;
    gap: 6px;
  }

  .uc-form-grid,
  .uc-form-grid--step2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .uc-assurance-banner {
    margin-top: 2px;
    height: auto;
    padding: 8px 10px;
  }

  .uc-review-grid {
    grid-template-columns: 1fr;
  }

  .uc-card-actions--split {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .uc-continue-btn,
  .uc-back-btn,
  .uc-thankyou-close-btn {
    width: 100%;
    justify-content: center;
  }

  .uc-card--thankyou {
    padding: 24px 12px 18px;
    min-height: 320px;
  }

  .uc-thankyou-title {
    font-size: 24px;
  }

  .uc-thankyou-desc {
    font-size: 13px;
    margin-bottom: 22px;
  }
}
