:root {
  --gcsp-navy: #18344A;
  --gcsp-navy-light: #1F4060;
  --gcsp-navy-deep: #0F2436;
  --gcsp-blue: #1B63B5;
  --gcsp-blue-dark: #124A8A;
  --gcsp-blue-light: #E8F0FE;
  --gcsp-bg: #F7F9FC;
  --gcsp-white: #FFFFFF;
  --gcsp-gray-border: #E5E7EB;
  --gcsp-input-border: #D1D5DB;
  --gcsp-input-bg: #F9FAFB;
  --gcsp-text: #1F2937;
  --gcsp-text-soft: #6B7280;
  --gcsp-required: #DC2626;
  --gcsp-success: #059669;
  --gcsp-shadow: 0 2px 16px rgba(24, 52, 74, 0.07);
  --gcsp-shadow-lg: 0 16px 40px rgba(15, 36, 54, 0.10), 0 2px 8px rgba(15, 36, 54, 0.04);
  --gcsp-radius: 18px;
  --gcsp-radius-md: 14px;
  --gcsp-radius-sm: 10px;
  --gcsp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gcsp-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

.gcsp-form-wrap {
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gcsp-text);
  background: var(--gcsp-bg);
}

body.gcsp-blank-canvas .gcsp-form-wrap {
  min-height: 100vh;
}

.gcsp-content-area {
  max-width: 920px;
  margin: 0 auto;
  /* padding: 40px 20px 56px; */
}

.gcsp-form-container {
  background: var(--gcsp-white);
  border: 1px solid rgba(15, 36, 54, 0.06);
  border-radius: var(--gcsp-radius);
  box-shadow: var(--gcsp-shadow-lg);
  overflow: hidden;
}

.gcsp-container-topbar {
  height: 5px;
  background: linear-gradient(90deg, var(--gcsp-navy-deep) 0%, var(--gcsp-blue) 55%, var(--gcsp-blue-dark) 100%);
}

.gcsp-container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 14px;
  background: linear-gradient(180deg, #FBFCFF 0%, var(--gcsp-white) 100%);
}

.gcsp-container-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.gcsp-container-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gcsp-container-eyebrow {
  display: block;
  font-family: var(--gcsp-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gcsp-blue);
  margin-bottom: 4px;
}

.gcsp-container-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--gcsp-navy);
  letter-spacing: -0.01em;
}

.gcsp-container-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--gcsp-text-soft);
}

.gcsp-helper-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.gcsp-helper-text {
  margin: 2 0 20px;
  padding: 0;
  font-size: 14px;
  color: var(--gcsp-text-soft);
  line-height: 1.6;
  font-weight: 400;
  max-width: 560px;
}

.gcsp-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gcsp-blue-light);
  color: var(--gcsp-blue-dark);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.gcsp-time-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gcsp-divider {
  margin: 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--gcsp-gray-border) 0%, rgba(229, 231, 235, 0.3) 100%);
}

.gcsp-chart-body {
  padding: 4px 32px 16px;
}

.gcsp-chart-prompt {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  color: var(--gcsp-text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.gcsp-type-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.gcsp-type-link {
  padding: 12px 32px;
  background: var(--gcsp-blue);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.gcsp-type-link:hover {
  background: var(--gcsp-blue-dark);
  color: #fff;
}

.gcsp-section {
  position: relative;
  margin-bottom: 14px;
  padding: 16px 18px 18px 22px;
  background: #FBFCFE;
  border-radius: var(--gcsp-radius-md);
  /* border-top: 1px solid var(--gcsp-gray-border);
  border-right: 1px solid var(--gcsp-gray-border);
  border-bottom: 1px solid var(--gcsp-gray-border);
  box-shadow: 3px 3px 12px rgba(15, 36, 54, 0.05); */
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: gcsp-fade-up 0.5s var(--gcsp-ease) forwards;
}

.gcsp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gcsp-blue) 0%, var(--gcsp-navy) 100%);
}

.gcsp-section:nth-of-type(2) {
  animation-delay: 0.08s;
}

.gcsp-section:last-of-type {
  margin-bottom: 0;
}

@keyframes gcsp-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gcsp-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--gcsp-navy) 0%, var(--gcsp-navy-light) 100%);
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 3px 10px rgba(24, 52, 74, 0.2);
}

.gcsp-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.gcsp-section-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gcsp-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.gcsp-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.gcsp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gcsp-field:has(textarea) {
  grid-column: 1 / -1;
}

.gcsp-field label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gcsp-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gcsp-field-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--gcsp-blue-light);
  flex-shrink: 0;
}

.gcsp-field-icon-chip i {
  font-size: 10.5px;
  color: var(--gcsp-blue-dark);
  width: auto;
}

.gcsp-required {
  color: var(--gcsp-required);
  font-size: 14px;
  vertical-align: middle;
  line-height: 1;
  margin-left: 1px;
}

.gcsp-field input,
.gcsp-field textarea,
.gcsp-field select {
  font-family: inherit;
  font-size: 14.5px;
  padding: 0 14px;
  height: 44px;
  border: 1.5px solid var(--gcsp-gray-border);
  border-radius: var(--gcsp-radius-sm);
  background: var(--gcsp-white);
  color: var(--gcsp-text);
  transition: border-color 0.2s var(--gcsp-ease), box-shadow 0.2s var(--gcsp-ease);
  box-sizing: border-box;
  width: 100%;
}

.gcsp-field textarea {
  padding: 10px 14px;
  height: auto;
  min-height: 80px;
  resize: vertical;
}

.gcsp-field input::placeholder,
.gcsp-field textarea::placeholder {
  color: #9CA3AF;
}

.gcsp-field input:focus,
.gcsp-field textarea:focus,
.gcsp-field select:focus {
  outline: none;
  border-color: var(--gcsp-blue);
  box-shadow: 0 0 0 4px rgba(27, 99, 181, 0.1);
}

.gcsp-field input:hover:not(:focus),
.gcsp-field textarea:hover:not(:focus),
.gcsp-field select:hover:not(:focus) {
  border-color: #B7C2D0;
}

.gcsp-field input[type="date"] {
  padding-right: 10px;
}

.gcsp-field input[type="tel"] {
  letter-spacing: 0.02em;
}

.gcsp-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 320px;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 0 28px;
  height: 50px;
  background: linear-gradient(135deg, #1B63B5, #124A8A);
  color: var(--gcsp-white);
  border: none;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(27, 99, 181, 0.3);
  transition: box-shadow 0.25s var(--gcsp-ease), transform 0.2s var(--gcsp-ease), background 0.2s ease;
}

.gcsp-submit-btn[hidden] {
  display: none;
}

.gcsp-submit-btn:hover {
  background: linear-gradient(135deg, #124A8A, #0F3F73);
  box-shadow: 0 10px 26px rgba(27, 99, 181, 0.4);
  transform: translateY(-2px);
}

.gcsp-submit-btn:active {
  transform: translateY(0) scale(0.99);
}

.gcsp-submit-btn:focus-visible {
  outline: 2px solid var(--gcsp-blue);
  outline-offset: 2px;
}

.gcsp-submit-btn svg {
  width: 34px;
  height: 34px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.gcsp-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0;
  max-width: 440px;
  padding: 8px 16px;
  background: var(--gcsp-bg);
  border-radius: 999px;
  text-align: center;
  font-size: 12.5px;
  color: var(--gcsp-text-soft);
  line-height: 1.5;
}

.gcsp-trust-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--gcsp-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gcsp-error-summary {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid var(--gcsp-required);
  border-radius: 8px;
  color: #991B1B;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.gcsp-field input.gcsp-input-error,
.gcsp-field textarea.gcsp-input-error {
  border-color: var(--gcsp-required);
  background: #FEF2F2;
}

.gcsp-field input.gcsp-input-error:focus,
.gcsp-field textarea.gcsp-input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.gcsp-field-error-msg {
  display: block;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--gcsp-required);
  font-weight: 500;
}

.gcsp-success-card {
  max-width: 520px;
  margin: 40px auto;
  padding: 48px 40px;
  text-align: center;
  background: var(--gcsp-white);
  border: 1px solid var(--gcsp-gray-border);
  border-radius: var(--gcsp-radius);
  box-shadow: var(--gcsp-shadow-lg);
}

.gcsp-success-mark {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gcsp-success);
  color: var(--gcsp-white);
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.08), 0 0 0 16px rgba(5, 150, 105, 0.05);
}

.gcsp-success-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--gcsp-navy);
}

.gcsp-success-eyebrow {
  display: block;
  font-family: var(--gcsp-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gcsp-success);
  margin-bottom: 10px;
}

.gcsp-success-card p {
  margin: 0;
  color: var(--gcsp-text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.gcsp-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 32px;
  background: var(--gcsp-blue);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.gcsp-home-btn:hover {
  background: var(--gcsp-blue-dark);
  color: #fff;
}

@media (max-width: 768px) {
  /* .gcsp-content-area {
    padding: 24px 16px 48px;
  } */

  .gcsp-container-header {
    padding: 16px 20px 12px;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .gcsp-container-logo-img {
    height: 40px;
  }

  .gcsp-container-title {
    font-size: 17px;
  }

  .gcsp-chart-body {
    padding: 4px 20px 16px;
  }

  .gcsp-container-eyebrow {
    font-size: 9.5px;
  }

  .gcsp-helper-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .gcsp-section {
    padding: 16px 16px 18px 20px;
  }

  .gcsp-section-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gcsp-field:has(textarea) {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  /* .gcsp-content-area {
    padding: 16px 12px 40px;
  } */

  .gcsp-container-header {
    padding: 14px 16px 10px;
  }

  .gcsp-container-logo-img {
    height: 34px;
  }

  .gcsp-container-title {
    font-size: 15px;
  }

  .gcsp-chart-body {
    padding: 2px 16px 14px;
  }

  .gcsp-section-header {
    padding: 11px 16px;
  }

  .gcsp-section-icon {
    width: 20px;
    height: 20px;
  }

  .gcsp-section-title {
    font-size: 12.5px;
  }

  .gcsp-field input,
  .gcsp-field textarea,
  .gcsp-field select {
    height: 42px;
    font-size: 14px;
    padding: 0 12px;
  }

  .gcsp-field textarea {
    height: auto;
    padding: 9px 12px;
  }

  .gcsp-submit-btn {
    height: 46px;
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gcsp-submit-btn,
  .gcsp-field input,
  .gcsp-field textarea,
  .gcsp-field select {
    transition: none;
  }
  .gcsp-submit-btn:active {
    transform: none;
  }
  .gcsp-section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}