/* Share IDEA — shared form UI (aligned with Let's Talk) */
:root {
  --si-brand: #2f3f92;
  --si-brand-deep: #243575;
  --si-primary-start: #3b82f6;
  --si-primary-end: #2563eb;
  --si-ink: #102033;
  --si-muted: #6b778f;
  --si-line: #e6ebf7;
  --si-surface: #ffffff;
  --si-soft: #f5f7fc;
  --si-soft-2: #eef2ff;
  --si-danger: #c62828;
  --si-radius: 14px;
  --si-radius-sm: 10px;
  --si-shadow: 0 18px 48px rgba(16, 32, 51, 0.08);
}

* { box-sizing: border-box; }

body.shareidea-page {
  font-family: Poppins, system-ui, Arial, sans-serif;
  margin: 0;
  color: var(--si-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 63, 146, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(37, 99, 235, 0.06), transparent 50%),
    linear-gradient(180deg, #eef1f8 0%, #f7f8fc 40%, #f4f6fb 100%);
  min-height: 100vh;
}

/* Header chrome */
.shareidea-page .header_area {
  background: #2f3f92;
  background-image: none !important;
}
.shareidea-page .humberMenu { display: none !important; }
.shareidea-page .btn_main_right { display: none !important; }
.shareidea-page .btn-style,
.shareidea-page .btn-nda { border-radius: 15px !important; }

/* Hero */
.shareidea-page .hero {
  background: linear-gradient(135deg, #1b3063 0%, #2e468b 55%, #3a56a0 100%);
  padding: 28px 24px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.shareidea-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.25), transparent 40%);
  pointer-events: none;
}
.shareidea-page .hero .container-narrow {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}
.shareidea-page .hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  text-transform: none;
}
.shareidea-page .hero p {
  display: block;
  width: 100%;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  text-align: center !important;
}

/* Layout */
.shareidea-page .container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
.shareidea-page main.container-narrow {
  margin-top: -12px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

/* Form card */
.shareidea-page .card-form {
  background: var(--si-surface);
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: var(--si-shadow);
  border: 1px solid rgba(230, 235, 247, 0.9);
}

.form-title {
  text-align: center;
  margin-bottom: 8px;
}
.form-title h2 {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--si-ink);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.3px;
  text-transform: none;
}
.form-title p {
  color: var(--si-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 520px;
}

/* Step progress (connected line) */
.progress-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 28px 4px 8px;
  margin-bottom: 8px;
  overflow: visible;
}
.step-item {
  flex: 1;
  width: auto;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.step-item::before {
  content: "";
  height: 3px;
  background: var(--si-line);
  position: absolute;
  left: -50%;
  right: -50%;
  top: 18px;
  z-index: 0;
  border-radius: 99px;
}
.step-item:first-child::before { left: 50%; }
.step-item:last-child::before { right: 50%; }
.step-item.done::before,
.step-item.active::before {
  background: linear-gradient(90deg, var(--si-brand), var(--si-primary-start));
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--si-line);
  z-index: 1;
  position: relative;
  color: var(--si-muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 200ms ease;
}
.step-item.active .step-circle {
  background: linear-gradient(135deg, var(--si-brand), var(--si-primary-end));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(47, 63, 146, 0.28);
  transform: scale(1.06);
}
.step-item.done .step-circle {
  background: var(--si-brand);
  color: transparent;
  border-color: transparent;
  font-size: 0;
}
.step-item.done .step-circle::after {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.step-label {
  display: block;
  margin-top: 10px;
  color: var(--si-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 28px;
  line-height: 1.3;
  text-transform: uppercase;
}
.step-item.active .step-label {
  color: var(--si-brand);
  font-weight: 700;
}

/* Section */
h3.section {
  margin: 28px 0 6px;
  font-weight: 750;
  font-size: 20px;
  color: var(--si-ink);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h3.section::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--si-brand), var(--si-primary-start));
  flex-shrink: 0;
}
.hr {
  border: 0;
  border-top: 1px solid var(--si-line);
  margin: 14px 0 22px;
}

/* Fields */
.field { margin-top: 18px; }
.field:first-of-type,
.form-stack > .field:first-child { margin-top: 4px; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid .field { margin-top: 0; }

.shareidea-page label,
.shareidea-page .field-label,
.shareidea-page .question-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--si-ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.req {
  color: var(--si-danger);
  font-weight: 700;
  margin-left: 2px;
}

.shareidea-page input[type="text"],
.shareidea-page input[type="email"],
.shareidea-page input[type="tel"],
.shareidea-page input[type="date"],
.shareidea-page input.form-control,
.shareidea-page select,
.shareidea-page select.form-control,
.shareidea-page textarea,
.shareidea-page textarea.form-control {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 13px 14px;
  border: 1.5px solid #d8deef;
  border-radius: var(--si-radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--si-ink);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.shareidea-page select,
.shareidea-page select.form-control,
.shareidea-page .answer-type-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b778f' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.shareidea-page textarea,
.shareidea-page textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}
.shareidea-page textarea.is-short {
  min-height: 48px !important;
  height: 48px !important;
}
.shareidea-page textarea.is-paragraph {
  min-height: 128px !important;
}

.shareidea-page input:hover,
.shareidea-page select:hover,
.shareidea-page textarea:hover {
  border-color: #b8c3e4;
}
.shareidea-page input:focus,
.shareidea-page select:focus,
.shareidea-page textarea:focus,
.shareidea-page .answer-type-select:focus {
  outline: none;
  border-color: var(--si-brand);
  box-shadow: 0 0 0 4px rgba(47, 63, 146, 0.12);
  background: #fff;
}
.shareidea-page input::placeholder,
.shareidea-page textarea::placeholder {
  color: #9aa3b8;
}

/* Question blocks (share idea step) */
.question-block {
  padding: 18px;
  border: 1.5px solid var(--si-line);
  border-radius: var(--si-radius-sm);
  background: var(--si-soft);
  margin-bottom: 14px;
}
.answer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.answer-type-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.answer-type-label {
  font-size: 12px;
  color: var(--si-muted);
  font-weight: 600;
  margin: 0;
}
.answer-type-select {
  min-width: 150px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #d7dff9;
  background-color: #fff;
  padding: 0 36px 0 10px;
  font-size: 13px;
  font-family: inherit;
}

/* Option cards */
.radio-group,
.option-list {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-item,
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--si-line);
  border-radius: var(--si-radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--si-ink);
  line-height: 1.45;
}
.option-row .radio-item {
  flex: 1;
  min-width: 120px;
  align-items: center;
}
.radio-item:hover,
.option-card:hover {
  border-color: #c5d0ef;
  background: #f8faff;
}
.radio-item:has(input:checked),
.option-card:has(input:checked) {
  border-color: var(--si-brand);
  background: linear-gradient(180deg, #f4f6ff 0%, #eef2ff 100%);
  box-shadow: 0 0 0 3px rgba(47, 63, 146, 0.1);
}
.radio-item input,
.option-card input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--si-brand);
  flex-shrink: 0;
  cursor: pointer;
}
.option-card small {
  display: block;
  color: var(--si-muted);
  font-size: 12.5px;
  font-weight: 400;
  margin-top: 4px;
}
.stage-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-list li { margin: 0; }
.stage-list .radio-item { width: 100%; }

/* Buttons */
.form-actions,
.btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.btn-next,
.btn-confirm,
.btn-nda:not(.btn-outline-nda) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  min-width: 140px;
  transition: all 180ms ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: linear-gradient(135deg, var(--si-brand) 0%, var(--si-primary-end) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 63, 146, 0.22);
}
.btn-next:hover,
.btn-confirm:hover,
.btn-nda:not(.btn-outline-nda):hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-prev,
.btn-edit,
.btn-outline-nda {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  min-width: 140px;
  transition: all 180ms ease;
  cursor: pointer;
  font-family: inherit;
  background: #fff;
  color: var(--si-brand);
  border: 1.5px solid #cfd8f3;
}
.btn-prev:hover,
.btn-edit:hover,
.btn-outline-nda:hover {
  background: var(--si-soft-2);
  border-color: var(--si-brand);
  color: var(--si-brand);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-confirm[disabled],
.btn-nda[disabled],
.btn-nda.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Summary / confirm page */
.summary h4 {
  margin: 22px 0 12px;
  color: var(--si-ink);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary h4:first-child { margin-top: 0; }
.summary h4::before {
  content: "";
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--si-brand), var(--si-primary-start));
}
.summary dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 18px;
  margin: 0;
  padding: 16px;
  background: var(--si-soft);
  border: 1px solid var(--si-line);
  border-radius: var(--si-radius-sm);
}
.summary dt { font-weight: 700; color: var(--si-brand); font-size: 13px; }
.summary dd { margin: 0; color: var(--si-ink); font-size: 14px; }
.share-list {
  margin-top: 0;
  color: var(--si-ink);
  padding: 16px 18px;
  background: var(--si-soft);
  border-radius: var(--si-radius-sm);
  border: 1px solid var(--si-line);
}
.share-list ol { margin: 0; padding-left: 20px; }
.share-list li { margin: 8px 0; line-height: 1.5; }

.attachment-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--si-line);
  border-radius: var(--si-radius-sm);
  background: var(--si-soft);
}
.attachment-card h4 {
  margin: 0 0 12px;
  color: var(--si-ink);
  font-size: 15px;
}
.attachment-card h4::before { display: none; }
.attachment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid #dfe7fb;
  border-radius: var(--si-radius-sm);
  background: #fff;
}
.attachment-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--si-soft-2);
  color: var(--si-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.btn-attachment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--si-brand);
  border: 1px solid #dbe2fb;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.btn-attachment:hover { background: var(--si-soft-2); }

/* Inline error */
.shareidea-inline-error {
  display: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #f3b4b4;
  border-radius: var(--si-radius-sm);
  background: #fff5f5;
  color: #a40000;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .shareidea-page .card-form {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .grid { grid-template-columns: 1fr; }
  .step-item::before { display: none; }
  .step-circle { width: 30px; height: 30px; font-size: 12px; }
  .step-label { font-size: 9px; min-height: 24px; }
  .form-actions,
  .btns {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-next,
  .btn-prev,
  .btn-edit,
  .btn-confirm {
    width: 100%;
    min-width: unset;
  }
  .option-row { flex-direction: column; }
  .summary dl { grid-template-columns: 1fr; }
  .shareidea-page main.container-narrow { margin-top: 16px; }
  .answer-head { flex-direction: column; }
}

@media (max-width: 992px) {
  .shareidea-page .humberMenu { display: block !important; }
  .shareidea-page .menu ul {
    display: none;
    width: 100%;
    padding: 10px 0;
    background: #2f3f92;
  }
  .shareidea-page .menu ul li { display: block; }
  .shareidea-page .menu ul li a { display: block; padding: 10px 12px; }
  .shareidea-page .menu { flex-wrap: wrap; }
}
