/* React Native — 02 Why + appointment */

.cw-react-native-why {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-react-native-why__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.cw-react-native-why__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #e0431c;
}

.cw-react-native-why__title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cw-react-native-why__title-em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: #e0431c;
}

.cw-react-native-why__lead,
.cw-react-native-why__footnote {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4a453e;
  text-wrap: pretty;
}

.cw-react-native-why__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cw-react-native-why__compare {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cw-react-native-why__compare-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #f3efe7;
  align-self: flex-start;
}

.cw-react-native-why__compare-tab {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #141210;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-react-native-why__compare-tab.is-on {
  background: #141210;
  color: #f3efe7;
}

.cw-react-native-why__compare-tab:not(.is-on):hover {
  background: rgba(20, 18, 16, 0.06);
}

.cw-react-native-why__compare-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cw-react-native-why__compare-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.cw-react-native-why__compare-k {
  font-weight: 600;
}

.cw-react-native-why__compare-bar {
  height: 14px;
  border-radius: 999px;
  background: #ede7dc;
  overflow: hidden;
}

.cw-react-native-why__compare-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease, background 0.3s ease;
}

.cw-react-native-why__compare-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-align: right;
}

.cw-react-native-why__form-panel {
  background: #141210;
  color: #f3efe7;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 120px;
}

.cw-react-native-why__form-title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.cw-react-native-why__form-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: #a39c90;
}

.cw-react-native-why__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cw-react-native-why__fields[hidden],
.cw-react-native-why__success[hidden],
.cw-react-native-why__form-err[hidden] {
  display: none !important;
}

.cw-react-native-why__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #cfc9be;
}

.cw-react-native-why__field input,
.cw-react-native-why__field textarea {
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(243, 239, 231, 0.14);
  transition: border-color 0.2s ease;
  background: #1c1a17;
  color: #f3efe7;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

.cw-react-native-why__field textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
}

.cw-react-native-why__field input.is-bad,
.cw-react-native-why__field textarea.is-bad {
  border-color: #ff7a50;
}

.cw-react-native-why__form-err {
  margin: 0;
  font-size: 13px;
  color: #ff7a50;
}

.cw-react-native-why__submit {
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #e0431c;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

.cw-react-native-why__submit:hover {
  background: #c93a16;
}

.cw-react-native-why__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cw-react-native-why__success {
  border-radius: 18px;
  background: #d4f53c;
  color: #141210;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-react-native-why__success-title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.cw-react-native-why__success-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .cw-react-native-why__form-panel {
    position: static;
  }
}
