/* =========================================================================
   EU–India Startup Pitch & Investment Connect — page-specific additions.

   The form itself is styled by the shared renewal/membership design system in
   css/membership.css (renewal-section, renewal-form-card, renewal-input-group,
   fee-option, payment-overlay, etc.). This file only adds the few pieces that
   form has no equivalent for: the intro/facts/note lead block, the support
   checkbox grid, the fee summary box, the consent row, and overlay positioning.
   Colours are inherited from the site theme (var(--eu-blue) etc. from
   membership.css / style.css).
   ========================================================================= */

/* ---------- intro / facts / note lead block ---------- */
.sp-lead {
  max-width: 900px;
  margin: 0 auto 72px;
}
.sp-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: #3a4664;
}
.sp-intro p { margin: 0 0 10px; }

.sp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 18px 0;
  font-size: .95rem;
  font-weight: 600;
  color: #12306b;
}
.sp-facts span { display: inline-flex; align-items: center; gap: 8px; }
.sp-facts i { color: #e3a81c; font-size: 1.05rem; }

.sp-note {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(18, 48, 107, .05);
  border-left: 4px solid #e3a81c;
  font-size: .92rem;
  color: #3a4664;
}
.sp-note p { margin: 0; }

/* ---------- support checkbox grid ---------- */
.sp-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-top: 6px;
}
.sp-check-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  cursor: pointer;
  font-size: .92rem;
  transition: border-color .15s, background .15s;
}
.sp-check-item:hover { border-color: #12306b; }
.sp-check-item input { width: 18px; height: 18px; flex: none; accent-color: #12306b; }
.sp-check-item:has(input:checked) { border-color: #12306b; background: rgba(18, 48, 107, .04); }
/* disabled (max non-Other reached) — greyed and not clickable */
.sp-check-item.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  background: #f1f3f7;
}
.sp-check-item.is-disabled input { cursor: not-allowed; }

/* ---------- consent row ---------- */
.sp-consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500 !important;
  cursor: pointer;
}
.sp-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: #12306b; }

/* ---------- fee / payment summary box ---------- */
.sp-summary-box {
  margin: 22px 0 10px;
  padding: 18px 20px;
  background: #f5f7fb;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
}
.sp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #d6dce8;
  font-size: .95rem;
  color: #3a4664;
}
.sp-row.sp-total {
  border-bottom: 0;
  padding-bottom: 0;
  margin-top: 4px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #12306b;
}
.sp-pay-note {
  font-size: .85rem;
  color: #6a7792;
  margin: 10px 0 0;
}

/* ---------- inline validation errors ---------- */
.sp-field-error {
  display: block;
  color: #b3261e;
  font-size: .82rem;
  margin-top: 6px;
  font-weight: 500;
}
.renewal-input-group.is-invalid .renewal-input-wrap,
.renewal-input-group.is-invalid input,
.renewal-input-group.is-invalid select,
.renewal-input-group.is-invalid textarea {
  border-color: #b3261e !important;
}
.renewal-input-group.is-invalid .sp-checks {
  outline: 1px solid #b3261e;
  border-radius: 8px;
  padding: 6px;
}

/* ---------- select dropdowns ----------
   The membership design styles text inputs but not <select>, so the native
   dropdowns came out small and unstyled. Match them to the inputs: full width,
   same padding/border, icon on the left, and a custom chevron on the right. */
.startup-pitch-section .renewal-input-wrap select {
  width: 100%;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  background: #fff;
  color: #13203a;
  font: inherit;
  padding: 12px 40px 12px 44px;   /* room for the left icon + right chevron */
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  /* custom chevron */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%2312306b' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.startup-pitch-section .renewal-input-wrap select:focus {
  outline: none;
  border-color: #12306b;
  box-shadow: 0 0 0 2px rgba(18, 48, 107, .12);
}
/* keep the left icon vertically centred over the select */
.startup-pitch-section .renewal-input-wrap { position: relative; }
.startup-pitch-section .renewal-input-wrap .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #12306b;
  pointer-events: none;
  z-index: 1;
}

/* ---------- textarea ----------
   Give the textarea a proper height and the same box styling as the inputs,
   with the icon pinned to the top-left instead of overlapping the text. */
.startup-pitch-section .renewal-textarea-wrap { position: relative; }
.startup-pitch-section .renewal-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  background: #fff;
  color: #13203a;
  font: inherit;
  line-height: 1.5;
  padding: 12px 14px 12px 44px;   /* left room for the top icon */
  resize: vertical;
}
.startup-pitch-section .renewal-textarea:focus {
  outline: none;
  border-color: #12306b;
  box-shadow: 0 0 0 2px rgba(18, 48, 107, .12);
}
.startup-pitch-section .renewal-textarea-wrap .input-icon-top {
  position: absolute;
  left: 16px;
  top: 18px;            /* aligned with the first line of text / the cursor */
  transform: none;
  color: #12306b;
  pointer-events: none;
}

/* ---------- registration-type radios ----------
   The fee-option label put the radio flush against the text. Lay it out as a
   row with a gap, and give each option breathing room and a card-like box so
   it reads clearly. */
.startup-pitch-section .renewal-radio-group-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.startup-pitch-section .fee-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dde3ee;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.startup-pitch-section .fee-option:hover { border-color: #12306b; }
.startup-pitch-section .fee-option input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: #12306b;
}
.startup-pitch-section .fee-option:has(input:checked) {
  border-color: #12306b;
  background: rgba(18, 48, 107, .04);
}
.startup-pitch-section .fee-option-text { line-height: 1.4; }

/* ---------- pitch-deck upload (custom dropzone) ----------
   The native file input is hidden; this label is the clickable dropzone. On
   file select, JS adds .has-file and swaps the text to the filename. */
.sp-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 2px dashed #c3ccdd;
  border-radius: 12px;
  background: #f7f9fc;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sp-upload:hover { border-color: #12306b; background: #eef2f9; }
.sp-upload.has-file { border-style: solid; border-color: #1e7a4d; background: #effaf3; }
/* invalid file (too large / wrong type) — red overrides the green has-file */
.sp-upload.has-file.is-invalid-file { border-color: #b3261e; background: #fdecec; }
.sp-upload.is-invalid-file .sp-upload-icon { background: #b3261e; }
.sp-upload.is-invalid-file .sp-upload-main { color: #b3261e; }

.sp-upload-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.sp-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 10px;
  background: #12306b;
  color: #fff;
  font-size: 1.3rem;
}
.sp-upload.has-file .sp-upload-icon { background: #1e7a4d; }

.sp-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.sp-upload-main {
  font-weight: 600;
  font-size: .95rem;
  color: #12306b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-upload.has-file .sp-upload-main { color: #1e7a4d; }
.sp-upload-sub { font-size: .8rem; color: #6a7792; }

.sp-upload-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d6dce8;
  color: #b3261e;
  cursor: pointer;
  transition: background .15s;
}
.sp-upload-remove:hover { background: #fdecec; }

/* ---------- status overlay positioning ----------
   The visual styles come from membership.css; this pins the overlay to the
   viewport because here it is a sibling of the form, not inside a positioned
   card. */
#spOverlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .sp-checks { grid-template-columns: 1fr; }
  .sp-facts { gap: 10px 18px; }
}
