/* ==========================================================================
   Start a Project form — recreated from start-project.pptx.
   Builds on platform-enquiry.css (dark card, contact fields, submit).
   ========================================================================== */

.sp-page .pe-card {
  max-width: 1200px;
}

.sp-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------- Intro ---------------- */
.sp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  padding: 22px 32px 0;
}

.sp-hero-copy .pe-logo {
  margin-bottom: 26px;
}

.sp-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7FA6F0;
  margin-bottom: 8px;
}

.sp-hero-copy h1 {
  color: var(--white);
  margin-bottom: 14px;
}

.sp-hero-copy p {
  color: var(--pe-text-dark);
}

.sp-hero-copy .sp-lead {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 4px;
}

.sp-hero-media {
  margin-right: -32px;
}

.sp-hero-media img {
  width: 100%;
  margin-top:-20px;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}

/* ---------------- Project type + timeline ---------------- */
.pe-fields.sp-selects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.sp-selects .pe-field {
  border-top: 0;
}

.sp-selects .pe-field + .pe-field {
  border-left: 1px solid var(--pe-line-dark);
}

.sp-page .pe-field select {
  cursor: pointer;
}

.sp-page .pe-field select option {
  color: var(--pe-ink);
}

.sp-page .pe-field select:invalid,
.sp-page .pe-field select option[value=""] {
  color: #D5DEF2;
}

/* ---------------- Objectives, scope, attachments ---------------- */
.sp-details {
  padding: 24px 32px 0;
}

.sp-objectives {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sp-objectives legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--white);
}

.sp-objectives legend span {
  margin-left: 8px;
  font-size: 13px;
  color: #9DB0D8;
}

.sp-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sp-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--pe-line-dark);
  border-radius: 4px;
  background: rgba(10, 26, 66, 0.55);
  color: var(--pe-text-dark);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sp-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sp-chip .icon {
  width: 20px;
  height: 20px;
  color: #9DBBF2;
}

.sp-chip:hover {
  border-color: #7FA6F0;
}

/* Selected objective: solid white tile with navy text */
.sp-chip:has(input:checked),
.sp-chip.is-checked {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.sp-chip:has(input:checked) .icon,
.sp-chip.is-checked .icon {
  color: var(--blue-primary);
}

.sp-chip:has(input:focus-visible) {
  outline: 2px solid #7FA6F0;
  outline-offset: 2px;
}

.sp-scope textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 14px 18px;
  background: rgba(10, 26, 66, 0.55);
  border: 1px solid var(--pe-line-dark);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}

.sp-scope textarea::placeholder {
  color: #D5DEF2;
}

.sp-scope textarea:focus {
  border-color: #7FA6F0;
}

.sp-attach {
  margin-top: 18px;
}

.sp-attach-title {
  color: var(--white) !important;
  margin-bottom: 8px;
}

.sp-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px dashed rgba(150, 180, 235, 0.45);
  border-radius: 6px;
  background: rgba(10, 26, 66, 0.4);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sp-drop:hover,
.sp-drop.is-dragover {
  border-color: #7FA6F0;
  background: rgba(79, 143, 224, 0.16);
}

.sp-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sp-drop .icon {
  width: 30px;
  height: 30px;
  color: #9DBBF2;
}

.sp-drop-text strong {
  display: block;
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
}

.sp-drop-text span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #9DB0D8;
}

.sp-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sp-file-list li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(127, 166, 240, 0.18);
  color: var(--white);
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-assurance {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
}

.sp-assurance li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--pe-text-dark);
}

.sp-assurance .icon {
  width: 16px;
  height: 16px;
  color: #4F8FE0;
  stroke-width: 2.4;
}

/* ---------------- Submit ---------------- */
.sp-page .sp-submit {
  justify-content: flex-start;
  padding: 22px 32px 32px;
}

.sp-page .sp-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1E4FD8;
  border-color: rgba(140, 175, 255, 0.5);
  border-radius: 5px;
  padding: 12px 28px;
}

.sp-page .sp-submit-btn:hover {
  background: #173FB0;
}

.sp-submit-btn .icon {
  width: 18px;
  height: 18px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .sp-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sp-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 20px 0;
  }

  .sp-hero-copy .pe-logo {
    margin-bottom: 18px;
  }

  .sp-hero-media {
    margin: 0 -20px;
    order: 2;
  }

  .sp-hero-media img {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }

  .sp-details {
    padding: 22px 20px 0;
  }

  .sp-page .sp-submit {
    justify-content: center;
    padding: 22px 20px 26px;
  }
}

@media (max-width: 560px) {
  .pe-fields.sp-selects {
    grid-template-columns: 1fr;
  }

  .sp-selects .pe-field + .pe-field {
    border-left: 0;
    border-top: 1px solid var(--pe-line-dark);
  }

  .sp-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
