
html:has(.gs-page) {
  overflow: hidden;
  height: 100vh;
}

html:has(.gs-page) body {
  overflow: hidden;
  height: 100vh;
}

.gs-page {
  height: calc(100vh - 64px);
  margin-top: 64px;
  overflow: hidden;
}

.gs-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  height: 100%;
}


.gs-pitch {
  display: flex;
  align-items: center;
  padding: var(--space-16) var(--space-12);
}

.gs-pitch-inner {
  max-width: 420px;
  margin-left: auto;
}

.gs-pitch-title {
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.gs-pitch-sub {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-12);
}

.gs-pitch-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.gs-pitch-point {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.gs-pitch-point svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}


.gs-form-wrap {
  border-left: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-12) var(--space-8);
  overflow-y: auto;
}

.gs-form {
  max-width: 520px;
}

.gs-section {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.gs-section:last-of-type {
  border-bottom: none;
  margin-bottom: var(--space-6);
  padding-bottom: 0;
}

.gs-section-title {
  font-size: var(--text-subheading);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field label {
  display: block;
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.form-field input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
  outline: none;
}

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

.form-field input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(255 66 0 / 10%);
}

.form-group {
  margin-bottom: var(--space-6);
}

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

.form-group-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  position: relative;
}

.chip-group input[type='radio'],
.chip-group input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
  user-select: none;
}

.chip:hover {
  border-color: var(--color-border-hover);
}

.chip-group input:checked + .chip {
  border-color: var(--color-accent);
  background: rgb(255 66 0 / 8%);
  color: var(--color-text-primary);
}

.other-input {
  display: none;
  width: 140px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-small);
  transition: border-color var(--duration-fast) ease;
  outline: none;
}

.other-input::placeholder {
  color: var(--color-text-tertiary);
}

.other-input:focus {
  border-color: var(--color-accent);
}

.other-input.visible {
  display: inline-flex;
}

.form-submit {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}

.gs-submit {
  width: 100%;
}

.form-submit .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-body);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-status.visible {
  opacity: 1;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: #ef4444;
}


@media (width <= 768px) {
  html:has(.gs-page) {
    overflow: auto;
    height: auto;
  }

  html:has(.gs-page) body {
    overflow: auto;
    height: auto;
  }

  .gs-page {
    height: auto;
    margin-top: 64px;
    overflow: auto;
  }

  .gs-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gs-pitch {
    padding: var(--space-12) var(--content-padding) var(--space-8);
  }

  .gs-pitch-inner {
    max-width: 100%;
    margin-left: 0;
  }

  .gs-form-wrap {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) var(--content-padding) var(--space-4);
    overflow-y: visible;
  }

  .gs-form {
    max-width: 100%;
  }

  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}
