/* ========================================================================
   Web Technology Detector - New Design System
   Version: 2.0.0
   ======================================================================== */

/* ========================================================================
   CSS VARIABLES
   ======================================================================== */

:root {
  /* Colors - New Design Palette */
  --color-primary: #7D5DFF;
  --color-primary-gradient-start: #7D5DFF;
  --color-primary-gradient-end: #4030FF;

  --color-text-primary: #1A1A2E;
  --color-text-secondary: #211F54;
  --color-text-muted: #73738C;
  --color-text-light: #6E7191;
  --color-text-disabled: #C4C5D0;
  --color-text-label: #40405A;
  --color-text-tertiary: #54546D;
  --color-text-quaternary: #A3A3B3;

  --color-background: #EFF5FF;
  --color-surface: #FFFFFF;
  --color-surface-secondary: #FAFBFC;
  --color-border: #EFF0F6;
  --color-border-strong: #DCDDEB;
  --color-border-secondary: #E7ECF0;

  --color-icon-default: #6E7C91;
  --color-icon-muted: #DCDDEB;

  --color-badge-bg: #F7F9FC;
  --color-badge-text: #6E7C91;

  --color-button-icon-bg: #EFF0F6;
  --color-button-icon-hover: #E5E6F0;
  --color-button-secondary-bg: #EFF2F6;
  --color-button-secondary-shadow: rgba(178, 202, 238, 0.31);

  --color-error: #F97316;
  --color-error-bg: #FFF7ED;
  --color-error-strong: #DC2626;

  /* Shadows */
  --shadow-sm: 0px 2px 7px rgba(20, 20, 43, 0.08);
  --shadow-md: 0px 2px 6px rgba(33, 31, 84, 0.06);
  --shadow-button-primary: 0px 3px 12px rgba(68, 51, 255, 0.18);
  --shadow-button-secondary: 0px 3px 12px rgba(68, 51, 255, 0.18);
  --shadow-button-icon: 0px -1px 2px rgba(183, 178, 238, 0.31) inset;
  --shadow-badge: 0px 1px 2px rgba(33, 31, 84, 0.14);
  --shadow-platform-icon: 0px 1px 3px rgba(41, 123, 247, 0.31);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 40px;
  --spacing-4xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-sm-md: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 159984px;
  --radius-input: 80px;

  /* Layout */
  --max-width: 728px;

  /* Typography */
  --font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================================================
   RESET & BASE STYLES
   ======================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Remove tap highlight */
  -webkit-tap-highlight-color: transparent; /* Alternative for some browsers */
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.625;
  color: var(--color-text-primary);
  background: var(--color-background);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure Inter Tight loads everywhere except icons */
*, *::before, *::after {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Preserve icon fonts */
.bi, [class^="bi-"], [class*=" bi-"] {
  font-family: 'bootstrap-icons' !important;
}

/* Remove tap highlight from all interactive elements */
a, button, input, textarea, select, [onclick], [role="button"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
}

/* ========================================================================
   LAYOUT
   ======================================================================== */

.app-background {
  background: #F7F7FC;
  min-height: 100vh;
  padding: 40px 20px;
}

.app-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.app-header {
  text-align: left;
  margin-bottom: 24px; /* 24px */
}

.logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--spacing-2xl); /* 32px */
  display: block;
}

.app-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 45px;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.app-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 29.25px;
  color: var(--color-text-muted);
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Ensure proper spacing when error message is shown */
#error + .card,
#error + .results-section {
  margin-top: 0; /* Reset margin as gap is handled by error margin-bottom */
}

/* ========================================================================
   CARD COMPONENT
   ======================================================================== */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.card-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 24.75px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 22.75px;
  color: var(--color-text-muted);
}

/* ========================================================================
   FORM COMPONENTS
   ======================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.75px;
  color: var(--color-text-label);
  padding-left: var(--spacing-xs);
}

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

.input-icon {
  position: absolute;
  left: 20px;
  top: 47%;
  transform: translateY(-50%);
  font-size: 19px;
  color: #6E7191;
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 49px;
  padding: 0 85px 0 44px; /* Increased right padding for paste button */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

/* Paste button styles moved to .textarea-wrapper section */




.form-input::placeholder {
  color: var(--color-text-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 93, 255, 0.1);
}

/* Error state for invalid input */
.form-input.error {
  border-color: var(--color-error-strong);
  background: #FEF2F2;
}

.form-input.error:focus {
  border-color: var(--color-error-strong);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-error-message {
  font-size: 12px;
  color: var(--color-error-strong);
  margin-top: 4px;
  padding-left: 4px;
  display: none;
}

.input-error-message.show {
  display: block;
}

.input-helper {
  font-size: 12px;
  line-height: 19.5px;
  color: var(--color-text-muted);
  padding-left: 0;
  margin-top: 2px;
}

/* ========================================================================
   BUTTON COMPONENTS
   ======================================================================== */

.button-group {
  display: flex;
  gap: var(--spacing-lg);
}

.btn {
  flex: 1;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.btn-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(180deg, #7D5DFF 0%, #4030FF 100%);
  color: white;
  box-shadow: 0 1px 2px 0 rgba(33, 31, 84, 0.08), 0 3px 12px 0 rgba(68, 51, 255, 0.18);
  border: 1px solid #4A3AFF;
  border-radius: 159984px;
}

/* Dot indicator */
.btn-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: -14px; /* Negative margin to hide when not hovered */
}

.btn-secondary .btn-dot {
  background: var(--color-text-secondary);
}

/* Button text */
.btn span {
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon */
.btn-icon-arrow {
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
}

.btn-icon-clear {
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0;
}

/* Hover states */
.btn-primary:hover {
  box-shadow: 0px 5px 16px rgba(68, 51, 255, 0.25);
}

.btn-secondary:hover {
  box-shadow: 0px 5px 16px rgba(68, 51, 255, 0.25);
}

/* On hover: show dot and hide icon */
.btn:hover .btn-dot {
  opacity: 1;
  transform: scale(1);
  margin-right: 0;
}

.btn:hover .btn-icon-arrow,
.btn:hover .btn-icon-clear {
  margin-left: -20px;
  opacity: 0;
  transform: scale(0);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-strong);
}


.btn-icon-small {
  width: 36px;
  height: 36px;
  background: var(--color-button-icon-bg);
  box-shadow: 0 -1px 2px 0 rgba(183, 178, 238, 0.31) inset;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--color-icon-default);
  font-size: 16px;
  flex-shrink: 0;
}

.btn-icon-small:hover {
  background: var(--color-button-icon-hover);
  color: var(--color-text-secondary);
  transform: scale(1.05);
}

.btn-icon-small i {
  font-size: 16px;
}

/* Clear history button - restored original */
.btn-clear-history {
  width: 42px;
  height: 32px;
  background: #EFF0F6;
  box-shadow: 0 -1px 2px 0 rgba(183, 178, 238, 0.31) inset;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #6E7C91;
}

.btn-clear-history:hover {
  background: #E5E8ED;
}

.btn-clear-history i {
  font-size: 16px;
}


/* ========================================================================
   PLATFORM RESULTS
   ======================================================================== */

.platform-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.platform-card {
  padding: var(--spacing-lg);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  transition: all 0.2s ease;
}

.platform-card.active {
  box-shadow: var(--shadow-md);
}

.platform-card.active[data-platform="Webflow"] {
  border: 3px solid #146EF5;
}

.platform-card.active[data-platform="Framer"] {
  border: 3px solid #00AFFF;
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.platform-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.platform-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
}

.platform-name.active {
  color: var(--color-text-secondary);
}

.platform-name.inactive {
  color: var(--color-text-disabled);
}


.platform-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 22.75px;
  color: var(--color-text-muted);
}

/* Other Technology Card */
.other-tech-card {
  grid-column: 1 / -1; /* Span both columns */
  border: 3px solid #DC2626;
  background: var(--color-surface);
}

.other-tech-icon {
  width: 48px;
  height: 48px;
  background: #DC2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.other-tech-icon i {
  position: relative;
  bottom: 4px;
  font-size: 36px;
}

/* ========================================================================
   SEARCH HISTORY
   ======================================================================== */

.search-history {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}


.history-item {
  padding: var(--spacing-lg) var(--spacing-xl);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.history-url-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg); /* Increased gap between URL and badge */
  min-width: 0; /* Allow content to shrink */
  flex: 1; /* Take available space */
}

.history-url {
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  color: var(--color-text-secondary);
  /* Text truncation for long URLs */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.history-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px 10px 6px 6px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-badge);
  flex-shrink: 0; /* Prevent badge from shrinking */
  white-space: nowrap; /* Prevent text wrapping in badge */
}

.history-platform-badge svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
}

.badge-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  color: var(--color-text-secondary);
}

.history-time {
  font-size: 14.4px;
  font-weight: 500;
  line-height: 23.4px;
  color: var(--color-text-light);
  opacity: 0.9;
}

.history-actions {
  display: flex;
  gap: 8px;
}

/* ========================================================================
   ACCORDION
   ======================================================================== */

.accordion-card {
  padding: 0 !important; /* Force no padding on accordion cards */
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: var(--spacing-3xl); /* Use consistent padding */
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.accordion-card.expanded .accordion-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.accordion-header:hover {
  background: var(--color-surface-secondary);
}

.accordion-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.accordion-toggle {
  width: 32px;
  height: 32px;
  background: #EFF2F6;
  box-shadow: 0px -1px 2px rgba(178, 202, 238, 0.31) inset;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.accordion-toggle i {
  font-size: 14px;
  color: #6E7C91;
}

.accordion-toggle.active {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-body {
  padding: 20px var(--spacing-3xl) var(--spacing-3xl);
}

/* Mobile adjustments for accordion to match card padding */
@media (max-width: 640px) {
  .accordion-header {
    padding: var(--spacing-xl); /* 24px on mobile */
  }
  
  .accordion-body {
    padding: 20px var(--spacing-xl) var(--spacing-xl);
  }
}

.confidence-intro {
  font-size: 16px;
  line-height: 26px;
  color: #54546D;
  margin-bottom: var(--spacing-lg);
}

.confidence-levels {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.confidence-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.confidence-badge {
  padding: 4px 8px;
  background: var(--color-badge-bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 19.5px;
  color: var(--color-badge-text);
  white-space: nowrap;
}

.confidence-desc {
  font-size: 14px;
  line-height: 22.75px;
  color: #54546D;
}

/* ========================================================================
   DETECTION METHOD
   ======================================================================== */

.method-section {
  margin-bottom: 24px;
}

.method-section:last-child {
  margin-bottom: 0;
}

.method-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.method-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.method-bullet {
  width: 6px;
  height: 6px;
  background: #54546D;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.method-text {
  font-size: 14.4px;
  line-height: 23.4px;
  color: #54546D;
}

.method-reliability {
  color: #A3A3B3;
}

/* ========================================================================
   LOADING STATE
   ======================================================================== */


.loading-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.loading-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.loading-bar-container {
  width: 240px;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-gradient-end) 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.loading-percentage {
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ========================================================================
   ERROR MESSAGE
   ======================================================================== */

.error-message {
  padding: var(--spacing-lg);
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  color: #DC2626;
  font-size: 14px;
  line-height: 22.75px;
  margin-bottom: 16px; /* Changed to margin-bottom for proper spacing */
}


/* ========================================================================
   FAQ SCHEMA SPECIFIC STYLES
   ======================================================================== */

/* Radio Cards */
.radio-cards {
  display: flex;
  gap: 16px;
}

.radio-card {
  flex: 1;
  padding: 16px;
  background: white;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 2px 6px rgba(33, 31, 84, 0.06);
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card.selected {
  border-color: #7D5DFF;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(180deg, #7D5DFF 0%, #4030FF 100%) border-box;
  box-shadow: 0px 4px 12px rgba(125, 93, 255, 0.18);
}

.radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #E5E6F0;
  background: white;
  position: relative;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.radio-card.selected .radio-dot {
  border-color: #7D5DFF;
  background: linear-gradient(180deg, #7D5DFF 0%, #4030FF 100%);
}

.radio-card.selected .radio-dot::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-content strong {
  color: #211F54;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.radio-content span {
  color: #6E7191;
  font-size: 14px;
  line-height: 20px;
}

/* Card Sections */
.card-section {
  padding: var(--spacing-2xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.card-section:first-child {
  padding-top: 0;
}

.card-section.last,
.card-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Breadcrumb Level Control */
.breadcrumb-level-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-count-input-small {
  width: 48px;
  height: 32px;
  text-align: center;
  padding: 0;
  border: 1px solid #EFF0F6;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family);
  color: #211F54;
  background: white;
}

.breadcrumb-count-input-small:focus {
  outline: none;
  border-color: #7D5DFF;
  box-shadow: 0 0 0 2px rgba(125, 93, 255, 0.1);
}

/* Remove spinner buttons for number input */
.breadcrumb-count-input-small::-webkit-inner-spin-button,
.breadcrumb-count-input-small::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.breadcrumb-count-input-small[type=number] {
  -moz-appearance: textfield;
}

.btn-control-small {
  min-width: 32px;
  width: 32px;
  height: 32px;
  background: #EFF0F6;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6E7C91;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 -1px 2px 0 rgba(183, 178, 238, 0.31) inset;
}

.btn-control-small:hover {
  background: #E5E6F0;
  color: #211F54;
}

.btn-control-small .bi-pencil {
  font-size: 12px;
}

/* Breadcrumb Items */
.breadcrumb-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  transition: all 0.2s ease;
}

.breadcrumb-header {
  margin-bottom: 16px;
}

.breadcrumb-label {
  font-size: 14px;
  font-weight: 600;
  color: #211F54;
}

.breadcrumb-fields {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: 24px;
}

.field-group label,
.rating-inputs label,
.rating-inputs-three label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-label);
  padding-left: 0;
}

.form-input-inline {
  width: 100%;
  height: 49px;
  padding: 0 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.form-input-inline::placeholder {
  color: var(--color-text-light);
}

.form-input-inline:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 93, 255, 0.1);
}

.form-input-inline[readonly] {
  background: #F7F7FC;
  color: #6E7191;
  cursor: not-allowed;
}

/* Select inputs should match regular inputs */
select.form-input-inline {
  height: 49px;
  padding: 0 20px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236E7191' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
}

/* Validation states */
.form-input-inline.error {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}

/* CMS Notice */
.cms-notice {
  display: flex;
  padding: 16px;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid #EFF0F6;
  background: #F7F7FC;
  margin: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

.cms-notice i {
  font-size: 18px;
  flex-shrink: 0;
  color: #6E7191;
}

.cms-notice-text {
  flex: 1;
  color: #6E7191;
  font-family: "Inter Tight";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.625;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
}

.cms-notice-text strong {
  color: #6E7191;
  font-family: "Inter Tight";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.625;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .breadcrumb-fields {
    grid-template-columns: 1fr;
  }

  .mapping-item {
    flex-direction: column;
    gap: 8px;
  }
}
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-group {
  margin-bottom: 32px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #211F54;
  margin-bottom: 8px;
}

.textarea-wrapper {
  position: relative;
}

.textarea-wrapper textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.textarea-wrapper textarea::placeholder {
  color: var(--color-text-light);
}

/* Different height for answer textarea */
.textarea-wrapper textarea[id^="answer-"] {
  min-height: 150px;
}

.textarea-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 93, 255, 0.1);
}

/* Validation error styles */
.textarea-wrapper textarea.validation-error {
  border-color: #F97316 !important;
  border-width: 1px;
  background-color: #FFF7ED;
}

.textarea-wrapper textarea.validation-error:focus {
  border-color: #F97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.validation-message {
  position: absolute;
  bottom: 12px;
  left: 4px;
  right: 20px;
  font-size: 12px;
  color: #F97316;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #FFF7ED;
  border-radius: 20px;
  z-index: 20;
  font-style: normal;
}

.validation-message i {
  font-size: 12px;
}

.input-hint {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 11px;
  color: #9CA3AF;
  font-style: italic;
}

/* Paste button removed - no longer needed */

.faq-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

.btn-control-small .bi-eraser {
  font-size: 14px;
}

/* FAQ Controls */
.faq-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* CMS Mode Styles */
.cms-schema-wrapper {
  display: flex;
  flex-direction: column;
}

.cms-schema-preview {
  padding: 0;
}

.cms-copy-container {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
}

.cms-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #EFF0F6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #67768B;
  transition: all 0.2s;
}

.cms-copy-btn:hover {
  background: #E5E6F0;
  color: #211F54;
}

.cms-copy-btn.copied {
  background: #10B981;
  color: white;
}

.cms-copy-btn i {
  font-size: 14px;
}

.cms-notice {
  display: flex;
  padding: 16px;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  border-radius: 12px;
  border: 1px solid #EFF0F6;
  background: #F7F7FC;
  filter: blur(0px);
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

.cms-notice i {
  font-size: 18px;
  flex-shrink: 0;
  color: #6E7191;
}

.cms-notice-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 0;
  color: #6E7191;
  font-family: "Inter Tight";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.75px; /* 162.5% */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
}

.cms-notice-text strong {
  color: #6E7191;
  font-family: "Inter Tight";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 22.75px; /* 162.5% */
}

.code-display.cms-preview {
  background: #F7F7FC;
  border: 1px solid #EFF0F6;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  min-height: auto;
}

.code-display.cms-preview pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #6E7191;
  white-space: pre-wrap;
  word-break: break-all;
}

/* FAQ button styles removed - using main btn-icon-small definition at line 464 */

.btn-text {
  background: none;
  border: none;
  color: #6E7191;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  transition: color 0.2s ease;
}

.btn-text:hover {
  color: #EF4444;
}

/* Code Display */
.code-display {
  background: #F7F7FC;
  border: 1px solid #EFF0F6;
  border-radius: 16px;
  padding: 20px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  overflow-x: auto;
  min-height: 200px;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}

.code-display pre {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  white-space: inherit;
  word-break: inherit;
  overflow-wrap: inherit;
}

/* Validation Messages */
.validation-msg {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.validation-msg.success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.validation-msg.warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.validation-msg.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Copy button for static schema */
.btn-copy-schema {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #EFF0F6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #67768B;
  transition: all 0.2s;
}

.btn-copy-schema:hover {
  background: #E5E6F0;
  color: #211F54;
}

.btn-copy-schema.copied {
  background: #10B981;
  color: white;
}

.btn-copy-schema i {
  font-size: 14px;
}

/* Copied state for copy button */
.btn-icon-small.copied {
  background: #10B981;
  color: white;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 640px) {
  .app-background {
    padding: 20px 16px;
  }

  .app-title {
    font-size: 28px;
    line-height: 36px;
  }

  .app-subtitle {
    font-size: 16px;
    line-height: 26px;
  }

  .card {
    padding: var(--spacing-xl); /* 24px */
  }

  .button-group {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 24px;
  }

  /* Radio cards stack on mobile */
  .radio-cards {
    flex-direction: column;
  }

  .faq-controls {
    flex-direction: row;
    gap: 8px;
  }

  .platform-results {
    grid-template-columns: 1fr;
  }

  /* Mobile platform card with badge on top */
  .platform-card {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-xl);
  }

  .platform-info {
    align-items: center;
  }

  /* Badge positioning for mobile */
  .platform-badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-xl); /* 24px for mobile */
  }

  /* Reorganize layout for mobile */
  .history-url-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    width: 100%;
  }
}
/* ========================================================================
   REVIEWS SCHEMA SPECIFIC STYLES
   ======================================================================== */

/* Custom Schema Type Dropdown */
.schema-type-dropdown {
  padding: 0;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  width: 100%;
  height: 49px;
  padding: 0 40px 0 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.custom-select:hover {
  border-color: var(--color-primary);
}

.custom-select.open {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 93, 255, 0.1);
}

.select-display {
  flex: 1;
  font-weight: normal;
}

.select-display strong {
  font-weight: 600;
}

.select-arrow {
  position: absolute;
  right: 16px;
  color: #6E7191;
  transition: transform 0.2s ease;
  font-size: 12px;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0px 4px 16px rgba(20, 20, 43, 0.12);
  z-index: 100;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-options.show {
  display: block;
}

.select-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #211F54;
  transition: background 0.2s ease;
}

.select-option:hover {
  background: #F7F7FC;
}

.select-option strong {
  font-weight: 600;
}

/* Schema Type Selection - Deprecated, keeping for backwards compatibility */
.schema-type-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-option {
  display: block;
  padding: var(--spacing-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #E5E6F0;
  background: white;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.radio-option.selected .radio-circle {
  border-color: #7D5DFF;
  background: #7D5DFF;
}

.radio-option.selected .radio-circle::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radio-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-text strong {
  color: #211F54;
  font-size: 15px;
  font-weight: 600;
}

.radio-text span {
  color: #6E7191;
  font-size: 13px;
  line-height: 1.4;
}

.radio-option:hover {
  background: #F7F7FC;
  border-color: #DCDDEB;
}

.radio-option.selected {
  border-color: #7D5DFF;
  background: #F7F5FF;
}

/* Info Notice */
.info-notice {
  display: flex;
  padding: var(--spacing-lg);
  gap: var(--spacing-md);
  background: #FFF7ED;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
}

.info-notice i {
  color: #92400E;
  font-size: 18px;
  flex-shrink: 0;
}

.notice-text {
  color: #92400E;
  font-size: 14px;
  line-height: 1.6;
}

.notice-text strong {
  font-weight: 700;
}

/* Section Headers */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 22.75px;
}

.section-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.section-header-with-action > div {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Form Elements */
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
}

.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(125, 93, 255, 0.1);
}

/* Rating Control (similar to faq-number-control) */
.rating-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-count-input-small {
  width: 120px;
  height: 32px;
  text-align: center;
  padding: 0 8px;
  border: 1px solid #EFF0F6;
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  color: #211F54;
  transition: all 0.2s ease;
}

.rating-count-input-small:focus {
  outline: none;
  border-color: #7D5DFF;
  box-shadow: 0 0 0 2px rgba(125, 93, 255, 0.1);
}

.rating-count-input-small::-webkit-inner-spin-button,
.rating-count-input-small::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rating-count-input-small[type=number] {
  -moz-appearance: textfield;
}

/* Field Group (similar to breadcrumb) */
.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: 24px;
}

.field-group label,
.rating-inputs label,
.rating-inputs-three label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-label);
  padding-left: 0;
}

/* Rating Inputs Grid */
.rating-inputs {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.rating-inputs > div {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
}

.rating-inputs > div label {
  margin-bottom: 0;
}

.rating-inputs > div .input-helper {
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
}

/* Three Rating Controls in One Line */
.rating-inputs-three {
  display: flex;
  gap: var(--spacing-2xl);
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.rating-inputs-three > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.rating-inputs-three > div label {
  margin-bottom: 0;
  padding-left: 0;
}

.rating-inputs-three > div .input-helper {
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
}

/* Ensure all inputs in rating-inputs-three are equal */
.rating-inputs-three .rating-control {
  flex: 1;
  display: flex;
  width: 100%;
}

.rating-inputs-three .rating-control input {
  flex: 1;
  min-width: 0;
  width: auto !important;
}

/* Special styling for average rating input (inherits from rating-count-input-small) */
.rating-value-input {
  width: 120px;
  height: 32px;
  text-align: center;
  padding: 0 8px;
  border: 1px solid #EFF0F6;
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family);
  color: #211F54;
  transition: all 0.2s ease;
}

.rating-value-input:focus {
  outline: none;
  border-color: #7D5DFF;
  box-shadow: 0 0 0 2px rgba(125, 93, 255, 0.1);
}

.rating-value-input::-webkit-inner-spin-button,
.rating-value-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rating-value-input[type=number] {
  -moz-appearance: textfield;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 4px;
  align-items: center;
}

.star {
  font-size: 24px;
  color: #D1D5DB;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.star:hover {
  color: #FCD34D;
  transform: scale(1.1);
}

.star.filled {
  color: #F59E0B;
}

/* Review Items */
.review-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.review-item:hover {
  box-shadow: 0px 4px 8px rgba(33, 31, 84, 0.08);
}

/* CMS Mode Review Item - minimal style with just title */
.review-item-cms {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.review-item-cms .review-header {
  margin-bottom: 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.review-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-fields .field-group {
  margin-bottom: 12px;
}

.review-fields .field-group:last-child {
  margin-bottom: 0;
}

.empty-reviews {
  padding: var(--spacing-3xl) var(--spacing-xl);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-text-muted);
}

/* Checkbox Fields for Advanced Options */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Radio-dot style checkboxes */
.checkbox-field-dot {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  background: white;
  border: 2px solid #E5E6F0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox-field-dot:hover {
  border-color: #7D5DFF;
  background: #FAFAFF;
}

.checkbox-field-dot input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #E5E6F0;
  background: white;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--spacing-xs);
}

.checkbox-field-dot.selected .checkbox-dot {
  border-color: #7D5DFF;
  background: #7D5DFF;
}

.checkbox-field-dot.selected .checkbox-dot::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.checkbox-field-dot span {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-family);
  color: var(--color-text-secondary);
  user-select: none;
  transition: color 0.2s ease;
}

.checkbox-field-dot.selected span {
  color: #7D5DFF;
}

/* ========================================================================
   UTILITY CLASSES (for removing inline styles)
   ======================================================================== */

.required-indicator {
  color: var(--color-primary);
  font-weight: 500;
}

.optional-indicator {
  color: var(--color-text-muted);
  font-weight: 400;
}

.helper-text {
  color: var(--color-text-muted);
  font-size: 12px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.empty-state-text {
  color: var(--color-text-muted);
  text-align: center;
}

/* ========================================================================
   MOBILE RESPONSIVE
   ======================================================================== */

/* Mobile Responsive for Reviews */
@media (max-width: 640px) {
  .rating-inputs {
    flex-direction: column;
  }

  /* Three rating controls stack vertically on mobile */
  .rating-inputs-three {
    flex-direction: column;
    gap: 20px;
  }

  .rating-inputs-three > div {
    width: 100%;
  }

  .schema-type-selection {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .radio-option {
    padding: 14px;
  }

  /* Checkbox group - single column on mobile */
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}
