/* Make source and target language inputs fill their container without overflow */
#source-languages-input,
#target-languages-input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  /* allow shrink within flex/grid parents */
  box-sizing: border-box;
}

/* =============================================================
   FINAL OVERRIDES: Longer language inputs and container widths
   Placed at end of file to win the cascade
   ============================================================= */
@media screen and (min-width: 1024px) {

  /* Grow the overall form and step panel so inputs have room */
  .quote-form {
    width: auto !important;
    max-width: 1280px !important;
  }

  .tab {
    max-width: 1120px !important;
  }

  /* Also set a concrete target width for language inputs */
  .tab #source-languages-input,
  .tab #target-languages-input,
  .quote-form #source-languages-input,
  .quote-form #target-languages-input {
    width: min(100%, 960px) !important;
    /* concrete width target while staying responsive */
    max-width: 960px !important;
  }
}

@media screen and (min-width: 1366px) {
  .tab {
    max-width: 1200px !important;
  }

  .tab #source-languages-input,
  .tab #target-languages-input,
  .quote-form #source-languages-input,
  .quote-form #target-languages-input {
    max-width: 1040px !important;
    width: min(100%, 1040px) !important;
  }
}

@media screen and (min-width: 1600px) {
  .quote-form {
    max-width: 1440px !important;
  }

  .tab {
    max-width: 1300px !important;
  }

  .tab #source-languages-input,
  .tab #target-languages-input,
  .quote-form #source-languages-input,
  .quote-form #target-languages-input {
    max-width: 1120px !important;
    width: min(100%, 1120px) !important;
  }
}

/* Remove the 600px cap from the paragraph that wraps the language inputs */
#source-tab>p,
#target-tab>p {
  max-width: none !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

/* Allow shrinking inside flex rows to avoid sticking out */
.language-panel #source-languages-input,
.language-panel #target-languages-input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Strong override: remove global 320–350px caps from these two inputs */
.quote-form #source-languages-input,
.quote-form #target-languages-input,
.tab #source-languages-input,
.tab #target-languages-input {
  max-width: 100% !important;
  /* beats generic input max-width: 320/350px */
  width: 100% !important;
}

/* Desktop: widen form and tabs so language inputs are longer (show ~6–7 items) */
@media screen and (min-width: 1200px) {

  /* Let the main form grow wider on desktop */
  .quote-form {
    width: 85% !important;
    /* was 55% */
    max-width: 1200px;
    /* cap to keep layout tidy */
  }

  /* Allow each step panel to expand further */
  .tab {
    max-width: 1100px;
    /* was 800px */
  }
}

/* Mid-desktop: when devtools are open, viewport can dip below 1200px. Widen here too. */
@media screen and (min-width: 900px) and (max-width: 1199px) {
  .quote-form {
    width: 90% !important;
    max-width: 1100px;
  }

  .tab {
    max-width: 1000px;
  }
}

@media screen and (min-width: 1536px) {
  .quote-form {
    width: 75% !important;
    /* a touch narrower on very wide screens */
    max-width: 1400px;
    /* give extra room when available */
  }

  .tab {
    max-width: 1200px;
  }
}

#root {
  min-height: 100%
}

/* .material-symbols-outlined:hover {
cursor: pointer;
}
.material-symbols-outlined {
color: #bbb;
} */


.powered-by-ai {
  color: #929292;
  position: relative;
  bottom: 35px;
  font-size: 20px;
  text-align: center;
  font-weight: 100;
  font-style: normal;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;

}

/* Language validation UI */
.lang-validation-block {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}

.lang-warning {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f5d48b;
  background: linear-gradient(135deg, #fff8e6 0%, #fff3d9 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  color: #5a3b00;
}

.lang-warning__title {
  font-weight: 700;
  color: #8a5a00;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.lang-warning__body {
  margin: 0;
  color: #5a3b00;
  line-height: 1.55;
}

.lang-suggestions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lang-suggestions__label {
  font-weight: 600;
  color: #333;
}

.lang-suggestions__empty {
  color: #666;
}

.lang-suggestion-btn {
  padding: 6px 10px;
  border-radius: 16px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-suggestion-btn:hover {
  background: #ededed;
  transform: translateY(-1px);
}

.lang-proceed-btn {
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid #4a90e2;
  background: linear-gradient(135deg, #e6f1ff 0%, #d8e8ff 100%);
  color: #1a3e73;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.lang-proceed-btn:hover {
  background: linear-gradient(135deg, #dce9ff 0%, #cadeff 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.lang-proceed-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.show-quote-btn {
  position: relative;
  bottom: 20px;

  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 140px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 30px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 20px 20px 0 0;
}

.quote-form {
  margin-top: 40px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;

  display: none;

  /* max-width: 650px; */
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;

  width: 55%;
}

.quote-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 20px 20px 0 0;
}

/* Form title responsive styling */
#form-title {
  min-height: 2.5em;
  min-width: 600px;
  display: block;
}

/* Media query for form title */
@media only screen and (max-width: 768px) {
  #form-title {
    min-width: 100%;
    text-align: center;
  }
}

/* Language selector panel and chips (namespaced to reduce override risk) */
.language-panel {
  margin-top: 8px;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  padding: 14px 16px;
  /* Contain within parent and allow shrink in flex layouts */
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.lang-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.lang-panel-title {
  color: #475569;
  font-weight: 600;
  font-size: 14px;
}

.lang-collapse-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.lang-content {
  margin-top: 6px;
  padding-top: 4px;
}

.lang-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  /* Desktop styling to match newForm */
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px;
  /* Prevent horizontal overflow */
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.lang-search {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
}

.lang-search-row {
  margin: 4px 0 8px;
}

.lang-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  margin: 6px 0 8px;
}

.language-panel button.lang-filter-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.02s ease;
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  flex: 0 0 auto;
  /* Reset sizes against global button rules */
  min-width: 0;
  width: auto;
  height: auto;
  line-height: 1.2;
  box-sizing: border-box;
}

.language-panel button.lang-filter-btn:hover {
  background: #f3f4f6;
  box-shadow: none;
}

.language-panel button.lang-filter-btn.active {
  background: #e5f2ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.lang-filter-sep {
  color: #9ca3af;
  margin: 0 4px;
}

.lang-clear {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-clear::before {
  content: "×";
  font-weight: 700;
  color: #94a3b8;
}

.lang-clear:hover {
  background: #f3f4f6;
  color: #0f172a;
  border-color: #e5e7eb;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  min-width: 0;
}

.chip-grid[data-collapsible="true"][data-expanded="false"] .chip:nth-child(n+11) {
  display: none;
}

.language-panel button.chips-toggle {
  margin-top: 8px;
  background: linear-gradient(135deg, #6b7af0 0%, #7a5bb3 100%);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(102, 126, 234, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  /* Reset sizes against global button rules */
  min-width: 0;
  width: auto;
  height: auto;
  line-height: 1.2;
  box-sizing: border-box;
}

.language-panel button.chips-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(102, 126, 234, 0.35);
}

.language-panel button.chips-toggle:active {
  transform: translateY(0);
}

.chips-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}

/* Ensure panel children can shrink within flex parents */
.language-panel .lang-content,
.language-panel .lang-filter-bar,
.language-panel .chip-grid,
.language-panel .chips-cta {
  min-width: 0;
  max-width: 100%;
}

.chips-arrow {
  color: #64748b;
  font-size: 18px;
  line-height: 1;
}

.chips-arrow.animated {
  animation: arrowFloat 2s ease-in-out infinite;
}

.chips-arrow.up {
  transform: rotate(180deg);
}

@keyframes arrowFloat {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }

  50% {
    transform: translateY(4px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
}

.language-panel button.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  /* Reset sizes against global button rules */
  min-width: 0;
  width: auto;
  height: auto;
  line-height: 1.2;
  box-sizing: border-box;
}

.language-panel button.chip:hover {
  background: #e5e7eb;
}

.language-panel button.chip.selected {
  background-image: linear-gradient(to right, #ff758c, #ff7eb3);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 5px rgba(255, 126, 179, 0.25);
}

.lang-hint {
  display: inline-block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

@media (max-width: 600px) {
  .chip-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .language-panel button.chip {
    font-size: 10px;
    padding: 4px 6px;
  }

  .lang-filter-bar {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .lang-filter-bar::-webkit-scrollbar {
    height: 6px;
  }

  .lang-filter-bar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 999px;
  }

  .lang-filter-sep {
    display: none;
  }

  .language-panel button.lang-filter-btn {
    font-size: 10px;
    padding: 6px 10px;
    border-color: #e5e7eb;
    background: #fff;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    flex: 0 0 auto;
  }

  .language-panel button.lang-filter-btn.active {
    background: #e8f1ff;
    color: #1d4ed8;
    border-color: #c7ddff;
  }

  .lang-clear {
    font-size: 10px;
    padding: 6px 10px;
  }
}

/* Quick target language chips */
.target-chip-box {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 900px);
  margin-left: auto;
  margin-right: auto;
}

.target-chip-box-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.target-chip-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 15px;
  text-align: center;
}

.target-chip-hint,
.target-chip-note {
  margin: 8px 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.4;
}

.target-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.target-chip-grid button.target-chip-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #1f2937;
  cursor: pointer;
  min-width: 0;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.target-chip-grid button.target-chip-btn:hover {
  background: #eef2ff;
}

.target-chip-grid button.target-chip-btn.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.target-chip-grid .target-chip-empty {
  font-size: 13px;
  color: #475569;
  margin: 6px 0 0;
}

.target-chip-subtext {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
}

@media (min-width: 1024px) {
  .target-chip-box {
    max-width: 720px;
  }
}

.buttons-wrapper {
  display: flex;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.buttons-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* This will center single buttons */
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Only use space-between when both buttons are visible */
.buttons-container:not(:has(.previous[style*="display: none"])) {
  justify-content: space-between;
}

/* Ensure buttons don't overflow */
.previous,
.next {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 200px;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .buttons-wrapper {
    padding: 15px;
    margin: 15px 0;
  }

  .buttons-container {
    max-width: 350px;
    gap: 15px;
    padding: 0 15px;
  }

  .previous,
  .next {
    min-width: 100px;
    max-width: 150px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .buttons-wrapper {
    padding: 10px;
    margin: 10px 0;
  }

  .buttons-container {
    max-width: 280px;
    gap: 10px;
    padding: 0 10px;
    flex-direction: column;
  }

  .previous,
  .next {
    width: 100%;
    max-width: none;
    min-width: auto;
    padding: 14px 24px;
  }
}

/* Navigation Buttons Styling */
.previous {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 8px rgba(107, 114, 128, 0.25);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  text-transform: none;
}

.previous::before {
  content: '←';
  font-size: 16px;
  font-weight: bold;
  margin-right: 4px;
  transition: transform 0.3s ease;
}

.previous:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

.previous:hover::before {
  transform: translateX(-3px);
}

.previous:active {
  transform: translateY(0px);
  transition: transform 0.1s ease;
}

/* Focus state for accessibility */
.previous:focus {
  outline: 2px solid #6b7280;
  outline-offset: 2px;
}

.next {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  text-transform: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.next::after {
  content: '→';
  font-size: 16px;
  font-weight: bold;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.next:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.next:hover::after {
  transform: translateX(3px);
}

.next:active {
  transform: translateY(0px);
  transition: transform 0.1s ease;
}

.next:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}






/* Modern Universal Tab Styling */
.tab {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 40px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  margin: 24px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 24px 24px 0 0;
}

/* Tab Labels */
.tab label {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-align: center;
}

/* Tab Headings */
.tab h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 24px 0;
  text-align: center;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.tab h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 2px;
}

.tab h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin: 24px 0 16px 0;
  text-align: center;
}

/* Tab Paragraphs */
.tab p:not(.target-chip-subtext,
  .certified-purpose-eyebrow,
  .certified-purpose-description,
  .credential-evaluation-agency-help,
  .certified-purpose-requirements-eyebrow,
  .certified-purpose-requirements-body,
  .certified-purpose-requirements-acceptance-eyebrow,
  .certified-purpose-requirements-acceptance-body,
  .certified-purpose-requirements-sources-eyebrow,
  .certified-purpose-requirements-disclaimer,
  .comment-entry-eyebrow,
  .comment-entry-description,
  .client-own-id-eyebrow,
  .client-own-id-description,
  .clientOwnIdP,
  .clientOwnId-explanation) {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin: 16px 0;
  font-weight: 400;
  text-align: center;
  max-width: 600px;
}

/* Enhanced Input Styling for Tabs */
.tab input:not([type="checkbox"]):not([type="radio"]):not(.credential-evaluation-agency-other-input):not([type="hidden"]):not(#certified-purpose-input) {
  max-width: 100%;
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab input:not([type="checkbox"]):not([type="radio"]):not(.credential-evaluation-agency-other-input):not([type="hidden"]):not(#certified-purpose-input):hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  transform: translateY(-1px);
}

.tab input:not([type="checkbox"]):not([type="radio"]):not(.credential-evaluation-agency-other-input):not([type="hidden"]):not(#certified-purpose-input):focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 8px 25px rgba(59, 130, 246, 0.2);
  background: #ffffff;
  transform: translateY(-1px);
}

/* Enhanced Select Styling for Tabs */
.tab select {
  max-width: 100%;
  width: 100%;
  font-size: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 20px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding: 16px 56px 16px 20px;
  cursor: pointer;
}

.tab select:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15) !important;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  transform: translateY(-1px) !important;
}

.tab select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 8px 25px rgba(59, 130, 246, 0.2) !important;
  background: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Enhanced Details Styling for Tabs */
.tab details {
  margin: 32px 0;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  max-width: 100%;
  width: 100%;
}

.tab details:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1) !important;
  transform: translateY(-2px) !important;
}

/* Use default browser arrow for details summary */
.tab details summary {
  padding: 24px 28px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.tab details summary:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  color: #0f172a !important;
}

.tab details>summary+* {
  padding: 32px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
}

.tab details h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
  text-align: left;
}

.tab details h3:first-child {
  margin-top: 0;
}

.tab details h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 1px;
}

.tab details p {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin: 16px 0;
  font-weight: 400;
  text-align: left;
}

.tab details ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
  text-align: left;
}

.tab details ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  transition: color 0.2s ease;
}

.tab details ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.tab details ul li:hover {
  color: #334155 !important;
}

.tab details a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.tab details a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
  transform: translateY(-1px);
}

/* Button Containers */
.tab .dtp-buttons,
.tab .translation-type-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
  width: 100%;
  max-width: 600px;
}

/* Enhanced Button Styling */
.tab button:not(.subject-matter-chip, .subject-matter-selected-chip,
  .previous, .target-chip-btn, .lang-suggestion-btn, .lang-proceed-btn,
  .save-button, .chip, .chips-toggle, .lang-collapse-btn, .lang-filter-btn,
  .same-file-div-button-close, .certified-purpose-chip, .certified-purpose-toggle,
  .certified-purpose-requirements-toggle):not(.next):not(.file-upload-button):not(.list-item-button,
  .saved-file-div-button-close, .read-more-btn-2, .lang-collapse-btn) {
  padding: 16px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #2d3748;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.tab button:not(.subject-matter-selected-chip, .subject-matter-chip,
  .previous, .target-chip-btn, .lang-suggestion-btn, .lang-proceed-btn,
  .chips-toggle, .chip, .same-file-div-button-close, .lang-collapse-btn,
  .certified-purpose-chip, .certified-purpose-toggle,
  .certified-purpose-requirements-toggle):not(.next):not(.file-upload-button):not(.list-item-button, .saved-file-div-button-close, .read-more-btn-2):hover {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
}

.certified-purpose-section {
  margin: 18px 0 24px;
  width: 100%;
  text-align: left;
}

.certified-purpose-card {
  position: relative;
  width: 100%;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.certified-purpose-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 45%, #ec4899 100%);
}

.certified-purpose-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.tab .certified-purpose-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c3aed;
  text-align: left;
  max-width: none;
}

.certified-purpose-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  color: #1e293b;
  text-align: left;
}

.tab .certified-purpose-description {
  margin: 0 0 14px;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: left;
  max-width: none;
}

.certified-purpose-input-label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

#certified-purpose-input,
.tab .credential-evaluation-agency-other-input {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #1e293b;
  padding: 13px 16px;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  margin: 0;
  height: auto;
}

#certified-purpose-input {
  margin-bottom: 14px;
}

#certified-purpose-input::placeholder,
.credential-evaluation-agency-other-input::placeholder {
  color: #94a3b8;
  font-size: 0.83rem;
  line-height: 1.35;
}

#certified-purpose-input:focus,
.tab .credential-evaluation-agency-other-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  transform: none;
}

.certified-purpose-chip-shell {
  position: relative;
  padding: 16px 16px 76px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.certified-purpose-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.certified-purpose-chip-list[hidden] {
  display: none !important;
}

.certified-purpose-chip-list--more {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.tab .certified-purpose-chip {
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  color: #334155;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  min-height: auto;
}

.tab .certified-purpose-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.38);
  color: #1e3a8a;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.tab .certified-purpose-chip.selected {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(99, 102, 241, 0.22) !important;
}

.tab .certified-purpose-toggle {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) !important;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: auto !important;
  width: auto;
  max-width: fit-content;
  min-height: auto !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #475569 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  z-index: 2;
}

.tab .certified-purpose-toggle:hover {
  color: #1d4ed8 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}

.certified-purpose-toggle-icon {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.certified-purpose-toggle.expanded .certified-purpose-toggle-icon {
  transform: rotate(180deg);
}

.certified-purpose-toggle-text {
  font-size: 0.82rem;
  font-weight: 700;
}

.credential-evaluation-agency-section {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(242, 246, 255, 0.92) 100%);
  border: 1px solid rgba(191, 219, 254, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.canada-purpose-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #d9e2ea;
}

.canada-purpose-heading {
  margin-bottom: 14px;
}

.canada-purpose-heading .credential-evaluation-agency-help {
  margin-top: 4px;
}

.canada-purpose-fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.canada-purpose-fieldset.invalid {
  padding: 10px;
  border: 2px solid #c62828;
  border-radius: 6px;
}

.canada-purpose-fieldset legend {
  width: 100%;
  margin-bottom: 8px;
  color: #243746;
  font-size: 14px;
  font-weight: 750;
}

.canada-purpose-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.canada-purpose-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  min-width: 0;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #cfd9e2;
  border-radius: 6px;
  background: #fff !important;
  cursor: pointer;
  color: #1d2f3c !important;
  font-size: 14px !important;
  text-align: left !important;
  -webkit-text-fill-color: initial !important;
}

.canada-purpose-option:has(input:checked) {
  border-color: #1f6f78;
  background: #eef8f8;
  box-shadow: 0 0 0 1px rgba(31, 111, 120, 0.16);
}

.canada-purpose-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #1f6f78;
}

.canada-purpose-option span,
.canada-purpose-option strong,
.canada-purpose-option small {
  display: block;
  min-width: 0;
  text-align: left !important;
  -webkit-text-fill-color: initial !important;
}

.canada-purpose-option strong {
  color: #1d2f3c !important;
  font-size: 14px;
  line-height: 1.35;
}

.canada-purpose-option small {
  margin-top: 3px;
  color: #526777 !important;
  font-size: 12px;
  line-height: 1.45;
}

.canada-route-options {
  grid-template-columns: 1fr;
}

.canada-route-option {
  padding: 13px;
}

.canada-route-option em {
  display: inline-block;
  margin-left: 5px;
  color: #176b43;
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.canada-notary-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr);
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border-left: 3px solid #c91f2d;
  background: #f7fafb;
}

.canada-notary-controls[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .canada-purpose-options,
  .canada-notary-controls {
    grid-template-columns: 1fr;
  }

  .canada-purpose-option {
    padding: 10px;
  }
}

/* Canada purpose controls must remain self-contained inside the compact account quote form. */
.tab .canada-purpose-section,
.tab .canada-purpose-section *,
.tab .canada-purpose-section *::before,
.tab .canada-purpose-section *::after {
  box-sizing: border-box;
}

.tab .canada-purpose-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tab .canada-purpose-heading,
.tab .canada-purpose-fieldset,
.tab .canada-purpose-options,
.tab .canada-notary-controls,
.tab .canada-notary-controls > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tab label.canada-purpose-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  background: #fff !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  text-align: left !important;
  overflow: hidden;
}

.tab label.canada-purpose-option:has(input:checked) {
  background: #eef8f8 !important;
}

.tab .canada-purpose-option > input[type="radio"] {
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
}

.tab .canada-purpose-option > span {
  flex: 1 1 0;
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tab .canada-purpose-option strong,
.tab .canada-purpose-option small {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tab .canada-notary-controls .credential-evaluation-agency-select,
.tab .canada-notary-controls .credential-evaluation-agency-other-input,
.tab #canada-pathway-other-input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .tab .canada-purpose-options,
  .tab .canada-notary-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .tab .canada-purpose-section {
    margin-top: 16px;
    padding-top: 16px;
  }

  .tab .canada-purpose-fieldset {
    margin-bottom: 14px;
  }

  .tab label.canada-purpose-option {
    padding: 10px 11px !important;
  }

  .tab .canada-notary-controls {
    gap: 14px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .tab .canada-purpose-options {
    gap: 7px;
  }

  .tab label.canada-purpose-option {
    gap: 9px;
    padding: 9px 10px !important;
  }

  .tab .canada-purpose-option strong {
    font-size: 13px;
  }

  .tab .canada-purpose-option small {
    font-size: 11px;
    line-height: 1.4;
  }

  .tab .canada-notary-controls {
    padding: 10px;
  }
}

.tab .credential-evaluation-agency-select {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #1e293b;
  padding: 13px 15px;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  margin: 0;
  min-height: auto;
  height: auto;
}

.tab .credential-evaluation-agency-select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
  transform: none !important;
}

.credential-evaluation-agency-other-wrap {
  margin-top: 12px;
}

.tab .credential-evaluation-agency-help {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
  max-width: none;
}

.certified-purpose-requirements {
  margin-top: 14px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 247, 255, 0.92) 100%);
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: left;
}

.tab .certified-purpose-requirements-eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  text-align: left;
  max-width: none;
}

.certified-purpose-requirements-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #1e293b;
  text-align: left;
}

.tab .certified-purpose-requirements-body {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: left;
  max-width: none;
}

.tab .certified-purpose-requirements-toggle {
  margin: 8px 0 0;
  padding: 0 !important;
  min-height: auto !important;
  min-width: auto !important;
  border: none !important;
  background: transparent !important;
  color: #2563eb !important;
  box-shadow: none !important;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-shadow: none !important;
  backdrop-filter: none !important;
}

.tab .certified-purpose-requirements-toggle:hover {
  background: transparent !important;
  color: #1d4ed8 !important;
  box-shadow: none !important;
  transform: none !important;
}

.comment-entry-section,
.client-own-id-section {
  margin: 0 0 22px;
  text-align: left;
}

.comment-entry-card,
.client-own-id-card {
  position: relative;
  padding: 22px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.comment-entry-card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.11), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 248, 252, 0.97) 100%);
}

.client-own-id-card {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(203, 213, 225, 0.18), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.97) 100%);
}

.comment-entry-card::before,
.client-own-id-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
}

.comment-entry-card::before {
  background: linear-gradient(90deg, #0ea5e9 0%, #14b8a6 48%, #22c55e 100%);
}

.client-own-id-card::before {
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 45%, #64748b 100%);
}

.comment-entry-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.tab .comment-entry-eyebrow,
.tab .client-own-id-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  max-width: none;
}

.tab .comment-entry-eyebrow {
  color: #0f766e;
}

.tab .client-own-id-eyebrow {
  color: #64748b;
}

.comment-entry-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  color: #1e293b;
  text-align: left;
}

.tab .comment-entry-description,
.tab .client-own-id-description {
  margin: 0 0 14px;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.55;
  text-align: left;
  max-width: none;
}

.clientOwnId-wrapper {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.tab .clientOwnIdP,
.tab .clientOwnId-explanation {
  text-align: left;
  max-width: none;
}

.tab .clientOwnIdP {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
}

#clientOwnId {
  margin: 0;
}

.tab .clientOwnId-explanation {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.certified-purpose-requirements-acceptance {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.tab .certified-purpose-requirements-acceptance-eyebrow {
  margin: 0 0 5px;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  max-width: none;
}

.tab .certified-purpose-requirements-acceptance-body {
  margin: 0;
  color: #1e3a8a;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
  text-align: left;
  max-width: none;
}

.certified-purpose-requirements-sources {
  margin-top: 10px;
}

.tab .certified-purpose-requirements-sources-eyebrow {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  max-width: none;
}

.certified-purpose-requirements-sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.certified-purpose-requirements-source-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.24);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.certified-purpose-requirements-source-link:hover,
.certified-purpose-requirements-source-link:focus {
  background: rgba(20, 184, 166, 0.16);
  color: #115e59;
  text-decoration: none;
}

.tab .certified-purpose-requirements-disclaimer {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: left;
  max-width: none;
}

@media (max-width: 768px) {
  .certified-purpose-card {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .certified-purpose-heading-row {
    flex-direction: column;
    align-items: stretch;
  }

  .certified-purpose-chip-shell {
    padding: 14px 12px 72px;
  }

  .tab .certified-purpose-chip {
    font-size: 0.88rem;
    padding: 9px 12px;
  }

  .certified-purpose-requirements,
  .credential-evaluation-agency-section {
    padding: 12px 13px;
  }

  .comment-entry-card,
  .client-own-id-card {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .clientOwnId-wrapper {
    padding: 12px 13px;
  }
}

.tab button.selected {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
  color: white !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.tab button.selected::after {
  content: '✓';
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Grid Layout for Button Groups */
.tab .dtp-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tab {
    padding: 28px 20px;
    gap: 24px;
    border-radius: 20px;
  }

  .tab h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .tab h2::after {
    width: 60px;
    height: 2px;
  }

  .tab label {
    font-size: 18px;
  }

  .tab input:not([type="checkbox"]):not([type="radio"]),
  .tab select {
    padding: 16px 20px;
    font-size: 15px;
  }

  .tab select {
    padding-right: 52px;
    background-size: 18px;
    background-position: right 16px center;
  }

  .tab details summary {
    padding: 20px 24px;
    font-size: 16px;
  }

  .tab details>summary+* {
    padding: 24px 20px;
  }

  .tab details h3 {
    font-size: 20px;
  }

  .tab button:not(.subject-matter-selected-chip, .subject-matter-chip,
    .previous, .target-chip-btn, .lang-suggestion-btn, .lang-proceed-btn,
    .lang-collapse-btn, .chip, .chips-toggle):not(.next):not(.file-upload-button):not(.list-item-button, .saved-file-div-button-close, .read-more-btn-2) {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 52px;
  }

  .tab .dtp-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tab {
    padding: 24px 16px;
    gap: 20px;
    border-radius: 16px;
  }

  .tab h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .tab label {
    font-size: 16px;
  }

  .tab input:not([type="checkbox"]):not([type="radio"]),
  .tab select {
    font-size: 16px;
  }

  .tab select {
    font-size: 16px;
    padding: 14px 48px 14px 16px;
    background-size: 16px;
    background-position: right 12px center;
  }

  .tab details summary {
    padding: 16px 20px;
    font-size: 15px;
  }

  .tab details>summary+* {
    padding: 20px 16px;
  }

  .tab button:not(.subject-matter-selected-chip, .subject-matter-chip,
    .previous, .target-chip-btn, .lang-suggestion-btn, .lang-proceed-btn,
    .lang-collapse-btn, .chip, .chips-toggle):not(.next):not(.file-upload-button):not(.list-item-button, .saved-file-div-button-close, .read-more-btn-2) {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 48px;
  }
}

/* iOS Safari zoom prevention: ensure minimum 16px on interactive fields */
.tab input:not([type="checkbox"]):not([type="radio"]),
.tab select,
.tab textarea,
.quote-form input:not([type="checkbox"]):not([type="radio"]),
.quote-form select,
.quote-form textarea {
  font-size: 16px !important;
}

/* Animation for tab content */
.tab>*:not(::before) {
  animation: fadeInUp 0.5s ease-out backwards;
}

.tab>*:nth-child(1) {
  animation-delay: 0.1s;
}

.tab>*:nth-child(2) {
  animation-delay: 0.2s;
}

.tab>*:nth-child(3) {
  animation-delay: 0.3s;
}

.tab>*:nth-child(4) {
  animation-delay: 0.4s;
}

.tab>*:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus and hover improvements */
.tab *:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Invalid state styling for form validation */
.tab input.invalid,
.tab select.invalid {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Success states */
.tab input:valid:not(:placeholder-shown),
.tab select:valid[data-selected="true"] {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

/* Special styling for specific tab content */
.tab .explain-dtp,
.tab .explain-certified,
.tab .explain-business {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin: 16px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  border-left: 4px solid #22c55e;
  text-align: left;
  max-width: 100%;
}



/* FIRST TAB - UPLOAD */
#first-form-tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* UPLOAD TAB */
.client-profile-upload-source-data {
  display: none !important;
}

.upload-details {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #e3e9f7 100%);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.08em;
  color: #2d3748;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-size: 1.12em;
  color: #2d3748;
}

/* Tablet styles */
@media (max-width: 768px) {
  .upload-details {
    max-width: 420px;
    padding: 20px 24px;
    font-size: 1.05em;
    line-height: 1.6;
    margin: 16px auto;
  }
}

/* Mobile styles */
@media (max-width: 600px) {
  .upload-details {
    max-width: 350px;
    padding: 16px 20px;
    font-size: 1em;
    line-height: 1.5;
    margin: 12px auto;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  .upload-details {
    max-width: 300px;
    padding: 12px 16px;
    font-size: 0.95em;
    line-height: 1.4;
    margin: 10px auto;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .upload-details {
    max-width: 280px;
    padding: 10px 12px;
    font-size: 0.9em;
    line-height: 1.3;
    margin: 8px auto;
  }
}

.upload-details:hover {
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  background: linear-gradient(135deg, #f8fafc 0%, #dbe6f6 100%);
}

/* Notification banner for .ifincorrect */
.ifincorrect {
  display: block;
  margin: 24px auto 20px auto;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  background: linear-gradient(90deg, #e6fff5 0%, #d2f7e6 100%);
  color: #11998e;
  box-shadow: 0 2px 8px rgba(17, 153, 142, 0.07);
  border-left: 4px solid #38ef7d;
  position: relative;
  max-width: 480px;
  text-align: left;
}

.ifincorrect::before {
  content: 'ℹ️';
  font-size: 18px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Upload tab - first tab */
.custom-file-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  padding: 24px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  min-height: 240px;
}

.custom-file-input-wrapper:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.file-upload-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  min-width: 220px;
  font-size: 16px;
}

.file-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.file-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.file-name-display {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  max-width: 70%;
  word-break: break-word;
}

.custom-file-input-wrapper input[type="file"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.file-upload-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  min-width: 220px;
  font-size: 16px;
}

.file-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.file-icon {
  width: 22px;
  height: 22px;
  margin-right: 0.5rem;
}

.client-profile-upload-scan-loader.hidden {
  display: none;
}

.client-profile-upload-scan-loader {
  box-sizing: border-box;
  width: min(100%, 560px);
  margin: 16px auto 12px;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.14);
  overflow: hidden;
  color: #0f172a;
}

.client-profile-upload-scan-loader.complete {
  width: min(100%, 520px);
  border-color: #bbf7d0;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.12);
}

.client-profile-upload-scan-loader .instant-quote-processing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 22px;
}

.client-profile-upload-scan-loader .instant-quote-processing-header {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.client-profile-upload-scan-loader.complete .instant-quote-processing-card {
  gap: 10px;
  padding: 14px 16px;
}

.client-profile-upload-scan-loader.complete .instant-quote-processing-header {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.client-profile-upload-scan-loader .instant-quote-processing-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid #bfdbfe;
}

.client-profile-upload-scan-loader.complete .instant-quote-processing-visual {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-loader-image {
  position: relative;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  animation: quoteProcessingBreath 2.2s infinite ease-in-out;
}

.client-profile-upload-scan-loader.complete .client-profile-upload-scan-loader-image {
  width: 26px;
  height: 26px;
  animation: none;
  box-shadow: none;
}

.client-profile-upload-scan-loader .instant-quote-processing-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  inset: 10px;
}

.client-profile-upload-scan-loader .instant-quote-processing-orbit-outer {
  animation: quoteProcessingSpin 3.8s linear infinite;
}

.client-profile-upload-scan-loader .instant-quote-processing-orbit-inner {
  inset: 20px;
  border-color: rgba(16, 185, 129, 0.36);
  animation: quoteProcessingSpin 2.6s linear infinite reverse;
}

.client-profile-upload-scan-loader .instant-quote-processing-orbit::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  transform: translateX(-50%);
}

.client-profile-upload-scan-loader.complete .instant-quote-processing-orbit {
  display: none;
}

.client-profile-upload-scan-loader .instant-quote-processing-copy {
  min-width: 0;
  text-align: left;
}

.client-profile-upload-scan-loader .instant-quote-processing-eyebrow {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.client-profile-upload-scan-loader .instant-quote-processing-title {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: 1.14rem;
  line-height: 1.25;
}

.client-profile-upload-scan-loader.complete .instant-quote-processing-eyebrow {
  margin-bottom: 2px;
  font-size: 0.68rem;
}

.client-profile-upload-scan-loader.complete .instant-quote-processing-title {
  margin-bottom: 3px;
  font-size: 1rem;
}

.client-profile-upload-scan-loader .moment-text {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  background: none;
}

.client-profile-upload-scan-loader.complete .moment-text {
  font-size: 0.82rem;
  line-height: 1.32;
}

.client-profile-upload-scan-loader .instant-quote-processing-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.client-profile-upload-scan-loader .instant-quote-processing-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.client-profile-upload-scan-loader .instant-quote-processing-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.client-profile-upload-scan-loader .instant-quote-processing-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  min-width: 28px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.28);
  transition: width 0.45s ease;
}

.client-profile-upload-scan-loader .instant-quote-processing-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: quoteProcessingSweep 1.7s infinite;
}

.client-profile-upload-scan-loader.complete .instant-quote-processing-progress-wrap,
.client-profile-upload-scan-loader.complete .instant-quote-processing-stats,
.client-profile-upload-scan-loader.complete .instant-quote-processing-steps {
  display: none;
}

.tab .client-profile-upload-scan-loader.complete p {
  max-width: none;
  margin: 0;
}

.tab .client-profile-upload-scan-loader.complete p.instant-quote-processing-eyebrow {
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.tab .client-profile-upload-scan-loader.complete p.moment-text {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.32;
  text-align: left;
}

.client-profile-upload-scan-loader .instant-quote-processing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-profile-upload-scan-loader .instant-quote-processing-stat {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.client-profile-upload-scan-loader .instant-quote-processing-stat strong,
.client-profile-upload-scan-loader .instant-quote-processing-stat span {
  display: block;
}

.client-profile-upload-scan-loader .instant-quote-processing-stat strong {
  overflow-wrap: anywhere;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.25;
}

.client-profile-upload-scan-loader .instant-quote-processing-stat span {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.client-profile-upload-scan-loader .instant-quote-processing-elapsed-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.client-profile-upload-scan-loader .instant-quote-processing-elapsed-row span {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.client-profile-upload-scan-loader .instant-quote-processing-elapsed-row strong {
  min-width: 0;
  color: #1e3a8a;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary[hidden] {
  display: none;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.client-profile-upload-scan-loader.complete .client-profile-upload-scan-summary {
  gap: 8px;
  padding-top: 9px;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary-detail,
.client-profile-upload-scan-loader .client-profile-upload-scan-summary-note {
  margin: 0;
  line-height: 1.45;
  text-align: left;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 650;
}

.tab .client-profile-upload-scan-loader.complete p.client-profile-upload-scan-summary-detail {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary-label {
  flex: 0 1 auto;
  min-width: 0;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary-value {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.client-profile-upload-scan-loader .client-profile-upload-scan-summary-note {
  padding: 8px 10px;
  border-left: 3px solid #10b981;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.tab .client-profile-upload-scan-loader.complete p.client-profile-upload-scan-summary-note {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.client-profile-upload-scan-loader .instant-quote-processing-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-profile-upload-scan-loader .instant-quote-processing-step {
  position: relative;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.client-profile-upload-scan-loader .instant-quote-processing-step::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: translateY(-50%);
}

.client-profile-upload-scan-loader .instant-quote-processing-step.active {
  background: #ecfdf5;
  color: #047857;
}

.client-profile-upload-scan-loader .instant-quote-processing-step.active::before {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

@media (max-width: 520px) {
  .client-profile-upload-scan-loader .instant-quote-processing-card {
    padding: 18px;
  }

  .client-profile-upload-scan-loader .instant-quote-processing-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .client-profile-upload-scan-loader .instant-quote-processing-copy,
  .client-profile-upload-scan-loader .moment-text {
    text-align: center;
  }

  .client-profile-upload-scan-loader .instant-quote-processing-stats,
  .client-profile-upload-scan-loader .instant-quote-processing-steps {
    grid-template-columns: 1fr;
  }

  .client-profile-upload-scan-loader .client-profile-upload-scan-summary-details {
    grid-template-columns: 1fr;
  }

  .client-profile-upload-scan-loader .client-profile-upload-scan-summary-detail {
    align-items: flex-start;
  }
}

/* Responsive: larger upload area on desktop, compact on mobile */
@media (min-width: 1024px) {
  .custom-file-input-wrapper {
    min-height: 320px;
    padding: 28px;
    border-radius: 16px;
  }

  .file-upload-button {
    padding: 18px 32px;
    font-size: 18px;
    min-width: 240px;
  }

  .file-name-display {
    max-width: 800px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .custom-file-input-wrapper {
    min-height: 180px;
    padding: 16px;
  }

  .file-upload-button {
    padding: 14px 22px;
    font-size: 15px;
    min-width: 200px;
  }
}

/* dt-ol Container - Stack horizontal cards vertically and center properly */
.dt-ol {
  margin-bottom: 30px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  /* Reduced container width */
  padding: 0 20px;
  list-style: none;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced list item structure to handle dynamic content properly */
.list-item {
  width: 465px;
  /* Fixed width at 365px max */
  max-width: 465px;
  /* Fixed max-width */
  height: auto;
  min-height: 60px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px 0;
  border-radius: 6px;
  gap: 12px;
  padding: 12px 35px 12px 20px;
  position: relative;
  background-image: linear-gradient(to right,
      #e8f0f7,
      #b3c7f7,
      #b8f7d4);
  box-shadow:
    0 0 3px rgba(200, 220, 255, 0.15),
    0 0 6px rgba(180, 240, 220, 0.18),
    0 0 10px rgba(180, 200, 250, 0.12);
  border: 1px solid rgba(200, 220, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

/* File close button - positioned in upper RIGHT corner */
.list-item .list-item-button {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #ef4444 !important;
  font-size: 12px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  background-image: unset !important;
}

.list-item .list-item-button:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
}

/* File name - no longer needs left margin since close button is on right */
.list-item .file-name {
  color: #2d2b2b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  text-align: left !important;
  line-height: 1.0 !important;
  background: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  padding: 0 !important;
  flex: 1;
  margin-right: 10px;

  /* Add text overflow handling */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* File size - keep original styling */
.list-item small {
  color: #818283 !important;
  font-size: 11px !important;
  text-align: left !important;
  margin: 0 !important;
  margin-right: 10px;
  flex-shrink: 0;

  /* Add text overflow handling */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Handle all dynamic text content added by JavaScript */
.list-item p {
  color: #2d2b2b;
  font-size: 14px;
  text-align: center;
  margin: 0;
  background: none;
  background-clip: initial;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  flex: 1;

  /* Add text overflow handling */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Images - keep original styling */
.list-item>img {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0;
  margin: 0 6px;
}

/* View file link - keep original styling */
.list-item .view-file {
  font-size: 11px !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  color: #067abd !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  margin: 0 !important;
  margin-right: 10px !important;
  flex-shrink: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .dt-ol {
    max-width: 350px;
  }

  .list-item {
    width: 320px;
    /* Smaller width for tablets */
    max-width: 320px;
    min-height: 55px;
    padding: 10px 30px 10px 16px;
    gap: 10px;
  }

  .list-item .list-item-button {
    top: 4px !important;
    right: 4px !important;
  }

  .list-item .file-name {
    font-size: 12px !important;
  }

  .list-item small {
    font-size: 10px !important;
  }

  .list-item p {
    font-size: 10px !important;
  }

  .list-item .view-file {
    font-size: 10px !important;
    padding: 4px 8px !important;
  }

  .list-item>img {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 600px) {
  .dt-ol {
    max-width: 300px;
  }

  .list-item {
    width: 280px;
    /* Mobile width */
    max-width: 280px;
    min-height: 50px;
    padding: 8px 25px 8px 12px;
    gap: 8px;
  }

  .list-item .list-item-button {
    top: 3px !important;
    right: 3px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 11px !important;
  }

  .list-item .file-name {
    font-size: 11px !important;
  }

  .list-item small {
    font-size: 9px !important;
  }

  .list-item p {
    font-size: 9px !important;
  }

  .list-item>img {
    width: 18px !important;
    height: 18px !important;
  }

  .list-item .view-file {
    font-size: 9px !important;
    padding: 3px 6px !important;
  }
}

@media (max-width: 480px) {
  .dt-ol {
    max-width: 280px;
    padding: 0 10px;
  }

  .list-item {
    width: 260px;
    /* Small mobile width */
    max-width: 260px;
    min-height: 45px;
    padding: 6px 20px 6px 10px;
    gap: 6px;
  }

  .list-item .list-item-button {
    top: 2px !important;
    right: 2px !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
  }

  .list-item .file-name {
    font-size: 10px !important;
  }

  .list-item small {
    font-size: 8px !important;
  }

  .list-item p {
    font-size: 8px !important;
  }

  .list-item>img {
    width: 16px !important;
    height: 16px !important;
  }

  .list-item .view-file {
    font-size: 8px !important;
    padding: 2px 4px !important;
  }
}

@media (max-width: 400px) {
  .dt-ol {
    max-width: 250px;
    padding: 0 8px;
  }

  .list-item {
    width: 230px;
    /* Very small screens */
    max-width: 230px;
    min-height: 40px;
    padding: 4px 18px 4px 8px;
    gap: 4px;
  }

  .list-item .list-item-button {
    top: 2px !important;
    right: 2px !important;
    width: 14px !important;
    height: 14px !important;
    font-size: 9px !important;
  }

  .list-item .file-name {
    font-size: 9px !important;
  }

  .list-item small {
    font-size: 7px !important;
  }

  .list-item p {
    font-size: 7px !important;
  }

  .list-item>img {
    width: 14px !important;
    height: 14px !important;
  }

  .list-item .view-file {
    font-size: 7px !important;
    padding: 1px 3px !important;
  }
}

.saved-file-div {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e3e9f7 100%);
  border: 2px solid #764ba2;
  border-radius: 18px;
  padding: 32px 32px 32px 32px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18), 0 2px 8px rgba(102, 126, 234, 0.10);
  z-index: 20;
  width: 100%;
  max-width: 450px;
  min-height: 340px;
  margin: 0 auto;
  backdrop-filter: blur(2px);
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 6px solid #667eea;
  border-right: 6px solid #f093fb;
  box-sizing: border-box;
}

.saved-file-div:hover {
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.22), 0 4px 16px rgba(102, 126, 234, 0.14);
}

/* Make the saved-file notice feel wider on phones */
@media (max-width: 600px) {
  .saved-file-div {
    max-width: 100% !important;
    /* ensure full available width */
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 16px 14px !important;
    /* reclaim more horizontal space */
    border-radius: 16px !important;
    /* slightly tighter radius on small screens */
    border-width: 1.5px !important;
    /* slim overall border */
    border-left-width: 4px !important;
    /* reduce decorative rails */
    border-right-width: 4px !important;
  }
}

/* On very narrow devices, extend to the tab's inner edges */
@media (max-width: 420px) {
  .saved-file-div {
    width: calc(100% + 32px) !important;
    /* tab has ~16px side padding on mobile */
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 12px !important;
    /* trim a bit more for content */
    padding-right: 12px !important;
    border-left-width: 3px !important;
    /* narrower rails on very small screens */
    border-right-width: 3px !important;
  }
}

/* The list container is limiting width; relax it on small screens */
@media (max-width: 600px) {
  .dt-ol {
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* Ensure no cap remains at narrower mobile breakpoints */
@media (max-width: 480px) {
  .dt-ol {
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 420px) {
  .dt-ol {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.saved-file-question {
  font-size: 1.08em !important;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.01em;
}

.saved-file-question-2 {
  font-size: 0.98em !important;
  color: #6b7280;
  margin-bottom: 18px;
  text-align: center;
}

.saved-file-div-button-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f093fb 100%) !important;
  border: none !important;
  color: #dc3545 !important;
  font-size: 22px !important;
  font-weight: bold;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.08);
  transition: all 0.2s ease;
  z-index: 21;
}

.saved-file-div-button-close:hover {
  background: rgba(220, 53, 69, 0.15) !important;
  transform: scale(1.12);
  color: #fff !important;
}

.button-div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.button-div button {
  flex: 1;
  padding: 10px 18px !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-transform: none !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.10) !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
}

.button-div button:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18) !important;
  transform: translateY(-2px) scale(1.04) !important;
}

.same-file-div {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e3e9f7 100%);
  border: 2px solid #764ba2;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18), 0 2px 8px rgba(102, 126, 234, 0.10);
  z-index: 20;
  width: 100%;
  max-width: 420px;
  min-height: 200px;
  margin: 0 auto 20px auto;
  backdrop-filter: blur(2px);
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 6px solid #667eea;
  border-right: 6px solid #f093fb;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Make the same-file notice feel wider on phones */
@media (max-width: 600px) {
  .same-file-div {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 16px 14px !important;
    border-radius: 16px !important;
    border-width: 1.5px !important;
    border-left-width: 4px !important;
    border-right-width: 4px !important;
  }
}

@media (max-width: 420px) {
  .same-file-div {
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-left-width: 3px !important;
    border-right-width: 3px !important;
  }
}

.same-file-div:hover {
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.22), 0 4px 16px rgba(102, 126, 234, 0.14);
}

.same-file-div-button-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f093fb 100%) !important;
  border: none !important;
  color: #dc3545 !important;
  font-size: 20px !important;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.08);
  transition: all 0.2s ease;
  z-index: 21;
}

.same-file-div-button-close:hover {
  background: rgba(220, 53, 69, 0.15) !important;
  transform: scale(1.1);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.same-file-p {
  color: #2d3748;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center;
  word-wrap: break-word;
}

.same-file-summary p {
  color: #6b7280 !important;
  font-weight: 600;
  font-style: normal;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  text-align: center;
}

.same-file-title {
  font-size: 20px !important;

  font-weight: 600;
  font-style: normal;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  text-align: center;
  /* Orange */
  background: linear-gradient(to right, #994711, #ef8a38);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: black !important;
}

.word-buttons-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.different-languages,
.more-languages {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  font-style: italic;
  position: relative;
  bottom: 17px;
}

/* Translation Type Tab Styling */
#translation-type-tab {
  padding: 20px;
  margin-bottom: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  /* Add a shadow effect */
  border: none;
}

#translation-type-tab p {
  color: #4a5568 !important;
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Translation Type */
.translation-type-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

/* Enhanced translation type buttons */
.translation-type-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
  padding: 16px 24px;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  position: relative;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  color: #4a5568 !important;
}

.translation-type-button:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  border-color: #667eea !important;
}

.translation-type-button.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-color: #667eea !important;
  box-shadow:
    0 8px 25px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.explain-certified,
.explain-business {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 10px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

/* Enhanced Button Variants */
button.translation-type-button.selected::after {
  content: '✓';
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

button.dtp-button.selected::after {
  content: '✓';
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Service Selection Styling */


/* State Select Styling */
.state-select {
  font-weight: 600;
  font-style: normal;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
}

/* Translation type section */
.read-more-btn-2 {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
  margin-left: 5px;
  transition: color 0.2s ease;
}

.read-more-btn-2:hover {
  color: #1d4ed8;
}

.read-more-btn-2:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modern Sworn Text Styling */
#sworn-text {
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
  border: 1px solid #e3f2fd;
  border-left: 4px solid #2196f3;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  box-shadow:
    0 2px 8px rgba(33, 150, 243, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

#sworn-text:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(33, 150, 243, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Add info icon before the text */
#sworn-text::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232196f3'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9,12 3,3 3,-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 12px;
  vertical-align: top;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}

/* Make it responsive */
@media (max-width: 768px) {
  #sworn-text {
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 14px;
    border-radius: 10px;
  }

  #sworn-text::before {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
}

@media (max-width: 480px) {
  #sworn-text {
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    border-radius: 8px;
  }

  #sworn-text::before {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }
}

/* Animation when element appears */
#sworn-text {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alternative with document/certificate icon */
.sworn-text-with-certificate::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232196f3'%3E%3Cpath d='M9 12l2 2 4-4M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.745 3.745 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z'/%3E%3C/svg%3E");
}

/* Enhanced focus state for accessibility */
#sworn-text:focus-within {
  outline: 2px solid #2196f3;
  outline-offset: 2px;
}

/* Modern State Explanation Styling - Updated with different colors and icon */
.state-explain-p {
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
  border: 1px solid #f3e8ff;
  border-left: 4px solid #8b5cf6;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  box-shadow:
    0 2px 8px rgba(139, 92, 246, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.state-explain-p:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(139, 92, 246, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Add location pin emoji icon before the text */
.state-explain-p::before {
  content: '📍';
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
  display: inline-block;
}

/* Alternative with map icon emoji */
.state-explain-p.with-map-icon::before {
  content: '🗺️';
}

/* Alternative with building/government icon */
.state-explain-p.with-building-icon::before {
  content: '🏛️';
}

/* Alternative with document/state seal icon */
.state-explain-p.with-seal-icon::before {
  content: '🏷️';
}

/* Make it responsive */
@media (max-width: 768px) {
  .state-explain-p {
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 14px;
    border-radius: 10px;
    gap: 10px;
  }

  .state-explain-p::before {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .state-explain-p {
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    border-radius: 8px;
    gap: 8px;
  }

  .state-explain-p::before {
    font-size: 16px;
  }
}

/* Animation when element appears */
.state-explain-p {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced focus state for accessibility */
.state-explain-p:focus-within {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Dark text content for better readability */
.state-explain-p {
  font-weight: 500;
  text-align: left;
}

/* Subtle animation for better UX */
.state-explain-p:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Modern Foreign Translation Requirements Styling - Borderless with bottom border only */
.specify-requirements-h3 {
  color: #2d3748;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 24px 0 16px 0;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.specify-requirements-h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
}

.foreign-translation-requirements {
  width: 100%;
  max-width: 600px;
  min-height: 140px;
  padding: 20px 24px 20px 0;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2d3748;
  resize: vertical;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.foreign-translation-requirements::placeholder {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}

.foreign-translation-requirements:focus {
  outline: none;
  border-bottom-color: #667eea;
  background: transparent;
  box-shadow: 0 2px 0 0 rgba(102, 126, 234, 0.2);
  transform: none;
}

.foreign-translation-requirements:hover:not(:focus) {
  border-bottom-color: #cbd5e0;
  box-shadow: none;
}

/* Character count indicator (optional) */
.textarea-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.character-count {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
  text-align: right;
  width: 100%;
  max-width: 600px;
  padding-right: 8px;
}

/* Enhanced styling for mobile */
@media (max-width: 768px) {
  .specify-requirements-h3 {
    font-size: 16px;
    margin: 20px 0 12px 0;
  }

  .foreign-translation-requirements {
    max-width: 100%;
    padding: 16px 20px 16px 0;
    font-size: 14px;
    min-height: 120px;
  }

  .foreign-translation-requirements::placeholder {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .specify-requirements-h3 {
    font-size: 15px;
    margin: 16px 0 10px 0;
  }

  .foreign-translation-requirements {
    padding: 14px 16px 14px 0;
    font-size: 13px;
    min-height: 100px;
  }

  .foreign-translation-requirements::placeholder {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Accessibility enhancements */
.foreign-translation-requirements:focus-visible {
  outline: none;
  border-bottom-color: #667eea;
}

/* Error state */
.foreign-translation-requirements.error {
  border-bottom-color: #ef4444;
  background: transparent;
}

.foreign-translation-requirements.error:focus {
  border-bottom-color: #ef4444;
  box-shadow: 0 2px 0 0 rgba(239, 68, 68, 0.2);
}

/* Success state */
.foreign-translation-requirements.success {
  border-bottom-color: #10b981;
  background: transparent;
}

.foreign-translation-requirements.success:focus {
  border-bottom-color: #10b981;
  box-shadow: 0 2px 0 0 rgba(16, 185, 129, 0.2);
}

/* Apple style toggle */
.options-h4 {
  /* Orange */
  font-weight: 600;
  background: linear-gradient(to right, #994711, #ef8a38);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.toggles {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 20px;
  border-radius: 20px;
}

.chosen-option {
  /* Green */
  background: linear-gradient(to right, #11998e, #38ef7d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#total-with-notary {
  /* Gold */
  background: linear-gradient(to right, #BF953F, #FCF6BA);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 600;
  font-style: normal;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  text-align: center;

  font-size: 20px !important;

}

.form-switch {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  /* bottom: 50px; */

}

.toggle-i {
  position: relative;
  display: inline-block;
  margin-right: .5rem;
  width: 46px;
  height: 26px;
  background-color: #cac9c9;
  border-radius: 23px;
  vertical-align: text-bottom;
  transition: all 0.3s linear;
  margin-left: 10px;
}

.toggle-i::before {
  content: "";
  position: absolute;
  left: 0;
  width: 42px;
  height: 22px;
  background-color: #e5e7eb;
  /* Modern light gray */
  border-radius: 11px;
  transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
  transition: all 0.25s linear;
}

.toggle-i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
  transform: translate3d(2px, 2px, 0);
  transition: all 0.2s ease-in-out;
}

.form-switch:active .toggle-i::after {
  width: 28px;
  transform: translate3d(2px, 2px, 0);
}

.form-switch:active input:checked+.toggle-i::after {
  transform: translate3d(16px, 2px, 0);
}

.form-switch input {
  display: none;

}

.form-switch input:checked+.toggle-i {
  background-color: #4BD763;
}

.form-switch input:checked+.toggle-i::before {
  transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
}

.form-switch input:checked+.toggle-i::after {
  transform: translate3d(22px, 2px, 0);
}

.form-switch ul {
  list-style-type: none;
}

.option-save-button {
  background-color: transparent;
  color: grey;
  font-size: small;
  border: 2px solid #4c56af;
  /* Red */
  transition-duration: 0.4s;
}

.option-save-button:hover {
  background-color: #4c56af;
  /* Red */
  color: white;
  cursor: pointer;
}



/* Evaluation toggles */
#diploma-input {
  margin-top: 5px;
}

#transcript-input {
  margin-top: 5px;
}

/* Desktop: narrow evaluation count inputs to match language inputs */
@media screen and (min-width: 1024px) {

  #diploma-input,
  #transcript-input {
    max-width: 560px !important;
    /* align with Source/Target inputs */
    width: 100% !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

.diploma-box,
.transcript-box {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.diploma-box::before,
.transcript-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 16px 16px 0 0;
}

.diploma-box:hover,
.transcript-box:hover {
  border-color: #cbd5e0;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
}

.how-many-diplomas,
.how-many-transcripts {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.how-many-diplomas::before,
.how-many-transcripts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 16px 16px 0 0;
}

.how-many-diplomas:hover,
.how-many-transcripts:hover {
  border-color: #cbd5e0;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.diploma-box ul {
  /* decorate the list */
  list-style-type: disc !important;
  /* Use disc bullets */
  /* start from left */
  padding-left: 20px;
  /* Add padding to the left for better alignment */
  margin: 0;
  /* Remove default margin */
  font-size: 14px;
  /* Set font size */
  line-height: 1.5;
  /* Increase line height for better readability */
  text-align: left;
  /* Align text to the left */
  /* Add a subtle hover effect */
  transition: color 0.3s ease;
  /* Smooth transition for color change */


}

.transcript-box ul {
  /* decorate the list */
  list-style-type: disc !important;
  /* Use disc bullets */
  /* start from left */
  padding-left: 20px;
  /* Add padding to the left for better alignment */
  margin: 0;
  /* Remove default margin */
  font-size: 14px;
  /* Set font size */
  line-height: 1.5;
  /* Increase line height for better readability */
  text-align: left;
  /* Align text to the left */
  /* Add a subtle hover effect */
  transition: color 0.3s ease;
  /* Smooth transition for color change */
}

.total-evaluation-cost {
  font-weight: 600;
  color: #2d3748;
  margin: 12px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 2px solid #10b981;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.evaluation-turnaround {
  font-weight: 600;
  color: #2d3748;
  margin: 12px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.evaluation-type {
  font-weight: 600;
  color: #2d3748;
  margin: 12px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.evaluation-type::before {
  content: '📄';
  font-size: 18px;
  margin-right: 8px;
  display: inline-block;
  -webkit-text-fill-color: initial;
  color: initial;
}

.evaluation-turnaround::before {
  content: '⏰';
  font-size: 18px;
  margin-right: 8px;
  display: inline-block;
  -webkit-text-fill-color: initial;
  color: initial;
}

.total-evaluation-cost::before {
  content: '💵';
  font-size: 18px;
  margin-right: 8px;
  display: inline-block;
  -webkit-text-fill-color: initial;
  color: initial;
}

#evaluation-cost-disclaimer {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
  text-align: center;
  margin: 16px 0;
}

/* Modern Evaluation Disclaimer Styling */
#evaluation-disclaimer {
  background: linear-gradient(135deg, #fef2f2 0%, #fce7e7 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  box-shadow:
    0 2px 8px rgba(239, 68, 68, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  text-align: left;
}

#evaluation-disclaimer:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(239, 68, 68, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Add warning icon before the text */
#evaluation-disclaimer::before {
  content: '⚠️';
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
  display: inline-block;
}

/* Alternative with exclamation icon */
#evaluation-disclaimer.with-exclamation-icon::before {
  content: '❗';
}

/* Alternative with info icon */
#evaluation-disclaimer.with-info-icon::before {
  content: 'ℹ️';
}

/* Make it responsive */
@media (max-width: 768px) {
  #evaluation-disclaimer {
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 14px;
    border-radius: 10px;
    gap: 10px;
  }

  #evaluation-disclaimer::before {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #evaluation-disclaimer {
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    border-radius: 8px;
    gap: 8px;
  }

  #evaluation-disclaimer::before {
    font-size: 16px;
  }
}

/* Animation when element appears */
#evaluation-disclaimer {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced focus state for accessibility */
#evaluation-disclaimer:focus-within {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Subtle animation for better UX */
#evaluation-disclaimer:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

/* Additional styling for any links within the disclaimer */
#evaluation-disclaimer a {
  color: #dc3545;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

#evaluation-disclaimer a:hover {
  color: #b91c1c;
  text-decoration: none;
}


/* Modern Expedited Options Tab Styling - Specific to expedited options only */
#expedited-options-tab {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

#expedited-options-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 20px 20px 0 0;
}

/* Enhanced Options Title - Override existing .options-h4 for this tab only */
#expedited-options-tab .options-h4 {
  color: #2d3748;
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

#expedited-options-tab .options-h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Modern Toggle Container Styling - Only for expedited options */
#expedited-options-tab .form-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 0 0 24px 0;
  padding: 20px 24px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

/* Regular Option - Light Green */
#expedited-options-tab .form-switch.regular {
  background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
  border-color: #d8b4fe;
}

#expedited-options-tab .form-switch.regular:hover {
  background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%);
  border-color: #c4b5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

#expedited-options-tab .form-switch.regular #regular-option-label {
  color: #7c3aed !important;
}

/* Priority Option - Light Orange */
#expedited-options-tab .form-switch.priority {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fed7aa;
}

#expedited-options-tab .form-switch.priority:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border-color: #fdba74;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

#expedited-options-tab .form-switch.priority #priority-option-label {
  color: #d97706 !important;
}

/* Express Option - Light Blue */
#expedited-options-tab .form-switch.express {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

#expedited-options-tab .form-switch.express:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15);
}

#expedited-options-tab .form-switch.express #express-option-label {
  color: #0369a1 !important;
}

/* Urgent Option - Light Red */
#expedited-options-tab .form-switch.urgent {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-color: #fca5a5;
}

#expedited-options-tab .form-switch.urgent:hover {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  border-color: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

#expedited-options-tab .form-switch.urgent #urgent-option-label {
  color: #dc2626 !important;
}

/* Enhanced Label Styling - Only for expedited options */
#expedited-options-tab .form-switch p {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  flex: 1;
  line-height: 1.4;
  padding-right: 16px;
  color: inherit;
}

/* Fix toggle container sizing for expedited options only */
#expedited-options-tab .toggle-i {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin-left: 10px;
  margin-right: 0.5rem;
  vertical-align: text-bottom;
}

/* Remove the conflicting hide rules and replace with proper single circle */
#expedited-options-tab .toggle-i::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 50%;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block !important;
}

/* Remove the ::after element for expedited options only */
#expedited-options-tab .toggle-i::after {
  display: none !important;
}

/* Active states for expedited options only */
#expedited-options-tab .form-switch input:checked+.toggle-i {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

#expedited-options-tab .form-switch input:checked+.toggle-i::before {
  transform: translateX(24px);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

/* Active form switch state - Only for expedited options */
#expedited-options-tab .form-switch:has(input:checked) {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2) !important;
}

#expedited-options-tab .form-switch:has(input:checked) p {
  color: #065f46 !important;
  font-weight: 700 !important;
}

/* Enhanced Note Section - Only for expedited options */
#expedited-options-tab .expedited-options-note {
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
  border: 1px solid #e879f9;
  border-left: 4px solid #c084fc;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  box-shadow:
    0 2px 8px rgba(192, 132, 252, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 600px;
  font-weight: 500;
}

#expedited-options-tab .expedited-options-note::before {
  content: '⚠️';
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
  display: inline-block;
}

#expedited-options-tab .expedited-options-note:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(192, 132, 252, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

#expedited-options-tab .expedited-options-note span {
  color: #c026d3;
  font-weight: 700;
}

/* Remove default br spacing and use CSS margins instead */
#expedited-options-tab br {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  #expedited-options-tab {
    padding: 24px 20px;
  }

  #expedited-options-tab .options-h4 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  #expedited-options-tab .form-switch {
    max-width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
  }

  #expedited-options-tab .form-switch p {
    font-size: 15px;
    padding-right: 12px;
  }

  #expedited-options-tab .toggle-i {
    width: 52px;
    height: 28px;
  }

  #expedited-options-tab .toggle-i::before {
    width: 24px;
    height: 24px;
  }

  #expedited-options-tab .form-switch input:checked+.toggle-i::before {
    transform: translateX(24px);
  }

  #expedited-options-tab .expedited-options-note {
    padding: 16px 20px;
    font-size: 14px;
    margin-top: 24px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  #expedited-options-tab {
    padding: 20px 16px;
  }

  #expedited-options-tab .options-h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  #expedited-options-tab .form-switch {
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  #expedited-options-tab .form-switch p {
    font-size: 14px;
    padding-right: 10px;
  }

  #expedited-options-tab .toggle-i {
    width: 48px;
    height: 26px;
  }

  #expedited-options-tab .toggle-i::before {
    width: 22px;
    height: 22px;
    left: 2px;
    top: 2px;
  }

  #expedited-options-tab .form-switch input:checked+.toggle-i::before {
    transform: translateX(22px);
  }

  #expedited-options-tab .expedited-options-note {
    padding: 14px 16px;
    font-size: 13px;
    margin-top: 20px;
    gap: 8px;
  }
}

/* Animation for when options appear */
#expedited-options-tab .form-switch {
  animation: fadeInUp 0.5s ease-out backwards;
}

#expedited-options-tab .form-switch.regular {
  animation-delay: 0.1s;
}

#expedited-options-tab .form-switch.priority {
  animation-delay: 0.2s;
}

#expedited-options-tab .form-switch.express {
  animation-delay: 0.3s;
}

#expedited-options-tab .form-switch.urgent {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* DTP Service */
#dtp-service-tab {
  padding: 20px;
}

#dtp-service-tab p {
  color: #4a5568 !important;
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.5;
}

#dtp-service-tab {
  margin-bottom: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  /* Add a shadow effect */
  border: none;
}

.dtp-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.explain-dtp {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 10px 0 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #38ef7d;
}

@media (max-width: 600px) {
  .dtp-buttons {
    grid-template-columns: 1fr;
  }

  .translation-type-buttons {
    gap: 16px;
  }
}









/* Notary tab */
/* Modern Notary Tab Styling */
#notary-tab {
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

#notary-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 20px 20px 0 0;
}

/* Enhanced Label and Select Styling */
#notary-tab>p {
  margin: 0;
}

#notary-tab label:not(.checkbox-container label) {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.additional {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #2d3748;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 52px;
}

.additional:hover {
  border-color: #a78bfa;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.15);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.additional:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), 0 4px 16px rgba(167, 139, 250, 0.2);
  background: #ffffff;
}

.additional option {
  padding: 12px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
}

.additional option:hover {
  background: #f3f4f6;
}

/* Enhanced Details Styling */
#additional-details {
  margin-top: 24px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

#additional-details summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  list-style: none;
  position: relative;
}

#additional-details summary::-webkit-details-marker {
  display: none;
}

#additional-details summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: bold;
  color: #6b7280;
  transition: transform 0.3s ease;
}

#additional-details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#additional-details summary:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1f2937;
}

#additional-details>summary+* {
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 0 0 16px 16px;
}

#additional-details h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937 !important;
  /* Force dark color to ensure visibility */
  margin: 28px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}

#additional-details h3:first-child {
  margin-top: 0;
}

#additional-details h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 1px;
}

#additional-details p {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
  margin: 12px 0;
  font-weight: 400;
}

/* Modern Notary Div Container */
.notary-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

.notary-div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 16px 16px 0 0;
}

/* Enhanced Typography */
.notary-div h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
  padding-bottom: 8px;
}

.notary-div h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 1px;
}

.notary-div p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 12px 0;
  font-weight: 400;
}

.notary-div h3 {
  align-self: stretch;
}

.notary-div p.notary-callout {
  display: grid;
  gap: 10px;
  align-self: stretch;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #dbe7f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: left;
  color: #4b5563;
}

.notary-div p.notary-callout.notary-callout--pricing {
  border-color: #b8e3d0;
  background: linear-gradient(135deg, #effaf5 0%, #f8fcfa 100%);
}

.notary-div p.notary-callout.notary-callout--guidance {
  border-color: #f7d7aa;
  background: linear-gradient(135deg, #fff8ef 0%, #fffdf8 100%);
}

.notary-div p.notary-callout.notary-callout--apostille {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fbff 100%);
}

.notary-callout__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notary-callout--pricing .notary-callout__eyebrow {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}

.notary-callout--guidance .notary-callout__eyebrow {
  color: #b45309;
  background: rgba(180, 83, 9, 0.12);
}

.notary-callout--apostille .notary-callout__eyebrow {
  color: #3730a3;
  background: rgba(99, 102, 241, 0.12);
}

.notary-callout__headline {
  display: block;
  color: #15324c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.notary-callout__detail {
  display: block;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.notary-callout__detail--accent {
  color: #0f766e;
  font-weight: 600;
}

.notary-callout--apostille .notary-callout__detail--accent {
  color: #3730a3;
  font-weight: 700;
}

/* Modern Input Styling */
.specify-notary {
  width: 100%;
  max-width: 200px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #2d3748;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.specify-notary:hover {
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.specify-notary:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 4px 16px rgba(16, 185, 129, 0.2);
  background: #ffffff;
}

.specify-notary::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Enhanced Select Styling for Apostille Options */
.apostille-select,
.apostille-select-2 {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #2d3748;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 52px;
  margin-bottom: 16px;
}

.apostille-select:hover,
.apostille-select-2:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.apostille-select:focus,
.apostille-select-2:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 4px 16px rgba(245, 158, 11, 0.2);
  background: #ffffff;
}

/* Modern Form Switch for Expedite Apostille */
#expedite-apostille-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 24px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#expedite-apostille-label:hover {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  border-color: #fdba74;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

#expedite-apostille-label h3 {
  color: #d97706;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  padding-right: 16px;
}

#expedite-apostille-label .toggle-i {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

#expedite-apostille-label .toggle-i::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 50%;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#expedite-apostille:checked+.toggle-i {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

#expedite-apostille:checked+.toggle-i::before {
  transform: translateX(24px);
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

/* Expedite Apostille Confirmation Text */
#expedite-apostille-p {
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-radius: 12px;
  color: #15803d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* Hide the ::after element for expedite-apostille toggle specifically */
#expedite-apostille-label .toggle-i::after {
  display: none !important;
}

/* Also hide the general ::before element to avoid conflicts */
#expedite-apostille-label .toggle-i::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 50%;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block !important;
  /* Ensure this one shows */
}

/* Ensure the checked state works correctly */
#expedite-apostille:checked+.toggle-i::after {
  display: none !important;
  /* Hide the ::after even when checked */
}

/* Pricing Information Boxes */
#p0-apostille-price {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  color: #92400e;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  margin: 16px 0;
}

/* "Not Sure" Information Box */
#p-apostille-not-sure {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-left: 4px solid #0ea5e9;
  border-radius: 12px;
  padding: 16px 20px;
  color: #0c4a6e;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  margin: 16px 0;
}

/* Apostille for Originals Information */
#p3-apostille-originals:not(.notary-callout),
#p4-apostille-originals {
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
  border: 1px solid #c084fc;
  border-left: 4px solid #a855f7;
  border-radius: 12px;
  padding: 16px 20px;
  color: #6b21a8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  margin: 16px 0;
}

/* Shipping Address Fields Container */
.shipping-address-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #7dd3fc;
  border-radius: 16px;
  margin-top: 24px;
}

#international-shipping-h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0c4a6e;
  margin: 0 0 16px 0;
  text-align: center;
}

/* Shipping Address Input Fields */
.shipping-address-fields input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-address-fields input:hover {
  border-color: #0ea5e9;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.shipping-address-fields input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 2px 8px rgba(14, 165, 233, 0.15);
  background: #ffffff;
}

.shipping-address-fields input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}



/* Apostille */
.p-apostille-specify {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-left: 4px solid #0ea5e9;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  box-shadow:
    0 2px 8px rgba(14, 165, 233, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  text-align: left;
}

.p-apostille-specify:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(14, 165, 233, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Add info icon before the text */
.p-apostille-specify::before {
  content: 'ℹ️';
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
  display: inline-block;
}

.p-apostille-turnaround {
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
  border: 1px solid #e879f9;
  border-left: 4px solid #c084fc;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
  box-shadow:
    0 2px 8px rgba(192, 132, 252, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  text-align: left;
}

.p-apostille-turnaround:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(192, 132, 252, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Add clock icon before the text */
.p-apostille-turnaround::before {
  content: '⏰';
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {

  .p-apostille-specify,
  .p-apostille-turnaround {
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 14px;
    border-radius: 10px;
    gap: 10px;
  }

  .p-apostille-specify::before,
  .p-apostille-turnaround::before {
    font-size: 18px;
  }
}

@media (max-width: 480px) {

  .p-apostille-specify,
  .p-apostille-turnaround {
    padding: 14px 16px;
    margin: 14px 0;
    font-size: 13px;
    border-radius: 8px;
    gap: 8px;
  }

  .p-apostille-specify::before,
  .p-apostille-turnaround::before {
    font-size: 16px;
  }
}

/* Animation when elements appear */
.p-apostille-specify,
.p-apostille-turnaround {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced focus state for accessibility */
.p-apostille-specify:focus-within,
.p-apostille-turnaround:focus-within {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.p-apostille-turnaround:focus-within {
  outline-color: #c084fc;
}



/* Checkbox Container for Sworn Translations */
.checkbox-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-container label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  line-height: 1.5;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.checkbox-container label:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #8b5cf6;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked+span {
  color: #6b21a8;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  #notary-tab {
    padding: 24px 20px;
    gap: 20px;
  }

  .notary-div {
    padding: 20px 16px;
    gap: 20px;
  }

  .notary-div p.notary-callout {
    padding: 16px 16px;
    gap: 8px;
  }

  .notary-callout__headline {
    font-size: 15px;
  }

  .notary-callout__detail {
    font-size: 13px;
  }

  #additional {
    padding: 14px 16px;
    font-size: 15px;
    padding-right: 48px;
  }

  .specify-notary {
    max-width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }

  .apostille-select,
  .apostille-select-2 {
    padding: 14px 16px;
    font-size: 15px;
    padding-right: 48px;
  }

  .shipping-address-fields {
    padding: 20px 16px;
    gap: 14px;
  }

  .shipping-address-fields input {
    padding: 12px 16px;
    font-size: 14px;
  }

  #additional-details summary {
    padding: 16px 20px;
    font-size: 15px;
  }

  #additional-details>summary+* {
    padding: 20px;
  }

  .checkbox-container label {
    padding: 14px 16px;
    font-size: 14px;
  }

  .checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  #notary-tab {
    padding: 20px 16px;
    gap: 16px;
  }

  .notary-div {
    padding: 16px 12px;
    gap: 16px;
  }

  .notary-div p.notary-callout {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .notary-callout__eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  #additional {
    padding: 12px 14px;
    font-size: 14px;
    padding-right: 44px;
  }

  .specify-notary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .apostille-select,
  .apostille-select-2 {
    padding: 12px 14px;
    font-size: 14px;
    padding-right: 44px;
  }

  .shipping-address-fields {
    padding: 16px 12px;
    gap: 12px;
  }

  .shipping-address-fields input {
    padding: 10px 14px;
    font-size: 13px;
  }

  #additional-details summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  #additional-details>summary+* {
    padding: 16px;
  }

  .checkbox-container label {
    padding: 12px 14px;
    font-size: 13px;
  }

  .checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

/* Animation for dynamic content */
.notary-div>* {
  animation: fadeInUp 0.5s ease-out backwards;
}

.notary-div>*:nth-child(1) {
  animation-delay: 0.1s;
}

.notary-div>*:nth-child(2) {
  animation-delay: 0.2s;
}

.notary-div>*:nth-child(3) {
  animation-delay: 0.3s;
}

.notary-div>*:nth-child(4) {
  animation-delay: 0.4s;
}

.notary-div>*:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects for interactive elements */
.notary-div input:not([type="checkbox"]),
.notary-div select {
  position: relative;
}

.notary-div input:not([type="checkbox"]):focus,
.notary-div select:focus {
  transform: translateY(-1px);
}

/* Success states */
.shipping-address-fields input:valid {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Loading state for dynamic content */
.notary-div.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.notary-div.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}




/* Modern Checkbox Wrapper */
.checkbox-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Add subtle gradient border */
.checkbox-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 16px 16px 0 0;
}

/* Modern Checkbox Container */
.checkbox-container {
  display: block;
  margin: 0;
  width: 100%;
}

/* Enhanced Checkbox Label */
.checkbox-container label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  line-height: 1.6;
  padding: 18px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.checkbox-container label:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.checkbox-container label:has(input:checked) {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
  color: #1e40af;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* Modern Checkbox Input */
.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.checkbox-container input[type="checkbox"]:checked {
  accent-color: #2563eb;
}

/* Special styling for specific elements */
#international-shipping-address {
  color: #6b7280 !important;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .checkbox-wrapper {
    padding: 20px 16px;
    margin: 20px 0;
    gap: 14px;
  }

  .checkbox-container label {
    padding: 16px 18px;
    font-size: 14px;
    gap: 14px;
  }

  .checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .checkbox-wrapper {
    padding: 16px 12px;
    margin: 16px 0;
    gap: 12px;
    border-radius: 12px;
  }

  .checkbox-container label {
    padding: 14px 16px;
    font-size: 13px;
    gap: 12px;
    border-radius: 10px;
  }

  .checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

/* Animation for checkboxes */
.checkbox-container label {
  animation: fadeInUp 0.4s ease-out backwards;
}

.checkbox-container:nth-child(1) label {
  animation-delay: 0.1s;
}

.checkbox-container:nth-child(2) label {
  animation-delay: 0.2s;
}

.checkbox-container:nth-child(3) label {
  animation-delay: 0.3s;
}

.checkbox-container:nth-child(4) label {
  animation-delay: 0.4s;
}

.checkbox-container:nth-child(5) label {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.checkbox-container input[type="checkbox"]:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.checkbox-container label:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#sworn-apostille-originals-wrapper,
.checkbox-container:has(.apostille-originals-help-button) {
  max-width: 100%;
}

#sworn-apostille-originals-wrapper label,
.checkbox-container:has(.apostille-originals-help-button) label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

#sworn-apostille-originals-wrapper input[type="checkbox"],
.checkbox-container:has(.apostille-originals-help-button) input[type="checkbox"] {
  flex: 0 0 20px !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.apostille-originals-help-button,
#sworn-apostille-originals-wrapper button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transform: none !important;
}


/* Modern Expedited Sworn Text Styling */
#expedited-sworn-text {
  margin: 20px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  color: #92400e;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.4s ease-out;
}

#expedited-sworn-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

/* Add warning icon */
#expedited-sworn-text::before {
  content: '⚡';
  font-size: 20px;
  margin-right: 10px;
  opacity: 0.9;
  display: inline-block;
  vertical-align: middle;
}

/* Add subtle animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  #expedited-sworn-text {
    padding: 18px 20px;
    margin: 16px 0;
    font-size: 14px;
    border-radius: 10px;
  }

  #expedited-sworn-text::before {
    font-size: 18px;
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  #expedited-sworn-text {
    padding: 16px 18px;
    margin: 14px 0;
    font-size: 13px;
    border-radius: 8px;
  }

  #expedited-sworn-text::before {
    font-size: 16px;
    margin-right: 6px;
  }
}

/* Focus state for accessibility */
#expedited-sworn-text:focus-within {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}



.processing {
  color: #000000 !important;
}

.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 5px;

  padding: 10px !important;
  /* padding-top: 50px !important; */
  background-color: #bbbbe7;
  border-radius: 20px;
  width: 300px;
  height: 300px;

}

.error-container p {
  text-align: center !important;
  font-size: 16px !important;
  color: rgb(45, 45, 45) !important;
}

.error-container a {
  color: blue !important;
}




.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #d1d5db;
  /* Light gray for better visibility */
  border: none;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

.step.finish {
  background-color: #04AA6D;
}

.form-step-indicator {
  text-align: center;
  margin: 16px 0 8px 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.form-step-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Responsive design */
@media (max-width: 768px) {
  .form-step-indicator {
    font-size: 14px;
    margin: 12px 0 6px 0;
    padding: 10px 16px;
  }


}

@media (max-width: 480px) {
  .form-step-indicator {
    font-size: 13px;
    padding: 8px 12px;
  }


}

/* Desktop: shorten the Source language input so it doesn't span the full tab width */
@media screen and (min-width: 1024px) {

  /* Use two IDs for higher specificity and add !important to beat earlier wide rules */
  #source-tab #source-languages-input {
    max-width: 560px !important;
    /* tighter cap on large screens */
    width: 100% !important;
    /* stay responsive within the cap */
    display: block;
    /* center with auto margins */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Desktop: narrow Advanced Language Search panel so it aligns better visually */
@media screen and (min-width: 1024px) {

  #source-tab .language-panel,
  #target-tab .language-panel {
    max-width: 680px;
    /* slightly wider than the input for breathing room */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desktop: make Target input the same width as Source input */
@media screen and (min-width: 1024px) {
  #target-tab #target-languages-input {
    max-width: 560px !important;
    /* match Source cap */
    width: 100% !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Desktop: narrow target-country input and comment textarea */
@media screen and (min-width: 1024px) {

  /* target country field (dynamically added) */
  #target-tab #target-country,
  #target-country {
    max-width: 560px !important;
    /* align with language inputs */
    width: 100% !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* comment textarea in its own tab */
  #comment-tab #comment,
  #comment {
    max-width: 680px !important;
    /* align with panel width */
    width: 100% !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Desktop: make the first (upload) tab narrower so it doesn't span too wide */
@media screen and (min-width: 1024px) {
  #first-form-tab.tab {
    max-width: 720px !important;
    /* strong override vs earlier desktop wideners */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Canada affidavit notary controls: isolate these fields from legacy form-wide label and input rules. */
#canada-affidavit-notary-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 0.75fr);
  align-items: start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 6px 0 2px;
  padding: 18px;
  border: 1px solid #d7e0e9;
  border-top: 3px solid #c62835;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.07);
  box-sizing: border-box;
}

#canada-affidavit-notary-controls[hidden] {
  display: none;
}

#canada-affidavit-notary-controls > div {
  display: grid;
  align-content: start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#canada-affidavit-notary-controls .certified-purpose-input-label {
  display: block !important;
  min-height: 38px;
  margin: 0 !important;
  color: #26384a !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

#canada-affidavit-notary-controls #canada-notary-option-select,
#canada-affidavit-notary-controls #canada-notary-stamp-count {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  border: 1px solid #aebdca !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  color: #1f2937 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  -webkit-text-fill-color: currentColor !important;
  transform: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  box-sizing: border-box;
}

#canada-affidavit-notary-controls #canada-notary-option-select {
  appearance: none;
  padding: 11px 42px 11px 13px !important;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") right 12px center / 18px no-repeat !important;
  cursor: pointer;
}

#canada-affidavit-notary-controls #canada-notary-stamp-count {
  padding: 11px 13px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600 !important;
  text-align: left !important;
}

#canada-affidavit-notary-controls #canada-notary-option-select:hover,
#canada-affidavit-notary-controls #canada-notary-stamp-count:hover {
  border-color: #718397 !important;
  background-color: #fff !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
  transform: none !important;
}

#canada-affidavit-notary-controls #canada-notary-option-select:hover {
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") right 12px center / 18px no-repeat !important;
}

#canada-affidavit-notary-controls #canada-notary-option-select:focus,
#canada-affidavit-notary-controls #canada-notary-stamp-count:focus {
  border-color: #1f6f78 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.16) !important;
  transform: none !important;
}

#canada-affidavit-notary-controls #canada-notary-stamp-count:valid:not(:placeholder-shown) {
  border-color: #aebdca !important;
  background: #fff !important;
}

#canada-affidavit-notary-controls #canada-notary-option-select.invalid,
#canada-affidavit-notary-controls #canada-notary-stamp-count.invalid,
#canada-affidavit-notary-controls #canada-notary-option-select[aria-invalid="true"],
#canada-affidavit-notary-controls #canada-notary-stamp-count[aria-invalid="true"] {
  border-color: #c62835 !important;
  background-color: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 53, 0.12) !important;
}

#canada-affidavit-notary-controls .credential-evaluation-agency-help {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  color: #5c6f82 !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

@media (max-width: 720px) {
  #canada-affidavit-notary-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  #canada-affidavit-notary-controls .certified-purpose-input-label {
    min-height: 0;
  }
}

@media (max-width: 380px) {
  #canada-affidavit-notary-controls {
    padding: 12px;
  }
}
