/* ============================================================
   Open Call for Proposals — extends styles.css (cream + gold)
   ============================================================ */

#app { padding-top: 56px; }

/* ---------- Intro ---------- */
.prop-hero { max-width: 820px; }
.prop-title {
  font-size: clamp(38px, 7vw, 76px);
  margin: 12px 0 0;
}
.prop-sub {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
  margin: 6px 0 0;
}

.memo {
  margin-top: 30px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border: 1px solid rgba(176,139,69,.22);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.memo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.memo-label {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.memo p { margin: 0 0 10px; color: #4a463f; line-height: 1.8; }
.memo p:last-child { margin-bottom: 0; }

/* ---------- Section headers ---------- */
.section-head { margin: 54px 0 18px; }
.section-head .small { color: var(--gold); }
.section-head .h2 { margin-top: 4px; }

/* ---------- Honeypot ---------- */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Project grid ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .2s ease;
}
.project.is-selected {
  border-color: rgba(176,139,69,.5);
  box-shadow: 0 16px 40px rgba(176,139,69,.16);
}
.project.is-selected::before { box-shadow: inset 0 0 0 1.5px var(--gold-2); }

.project-index {
  font-size: 13px; letter-spacing: .22em; color: var(--gold);
  opacity: .8; margin-bottom: 4px;
}
.project h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: .01em; }
.project > p {
  margin: 0 0 16px; color: var(--muted); line-height: 1.65; font-size: 14.5px;
  flex-grow: 1;
}

/* ---------- Custom select checkbox ---------- */
.project-select {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; margin-bottom: 14px; user-select: none;
  align-self: flex-start;
}
.project-select input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid rgba(176,139,69,.5);
  background: rgba(255,255,255,.6);
  display: inline-grid; place-items: center;
  transition: background .18s ease, border-color .18s ease;
  flex: 0 0 auto;
}
.checkmark::after {
  content: ""; width: 11px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transform-origin: center;
  margin-top: -2px;
  transition: transform .18s ease;
}
.project-select input:checked + .checkmark {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: var(--gold);
}
.project-select input:checked + .checkmark::after { transform: rotate(-45deg) scale(1); }
.project-select input:focus-visible + .checkmark {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.select-label {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Slider ---------- */
.slider-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 8px;
}
.slider-title, .field label {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.score-badge {
  min-width: 36px; text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 700; color: #fff;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 6px 16px rgba(176,139,69,.25);
  transition: transform .12s ease;
}
.score-badge.bump { transform: scale(1.12); }

.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: rgba(176,139,69,.18);
  outline: none; cursor: pointer;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .12s ease;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.slider::-moz-range-progress { background: var(--gold); height: 6px; border-radius: 999px; }
.slider:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.slider-scale {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); opacity: .7;
  margin: 6px 2px 0;
}

/* ---------- Text inputs / textareas ---------- */
.project textarea, .field input, .field textarea {
  width: 100%; margin-top: 12px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(176,139,69,.25);
  border-radius: 12px; padding: 11px 13px;
  resize: vertical; line-height: 1.55;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input { margin-top: 8px; }
.project textarea::placeholder, .field textarea::placeholder, .field input::placeholder {
  color: #a59c8c;
}
.project textarea:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(176,139,69,.14);
}

/* ---------- New proposal ---------- */
.new-proposal {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(212,183,123,.14), transparent 60%),
    rgba(255,255,255,.62);
}
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.new-proposal .slider-head { margin-bottom: 10px; }

/* ---------- Submit ---------- */
.submit-bar {
  margin: 46px 0 8px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(176,139,69,.1), rgba(212,183,123,.14));
  border: 1px solid rgba(176,139,69,.24);
}
.submit-note { max-width: 46ch; }
.submit-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.submit-btn {
  font-size: 15px; padding: 15px 28px;
  white-space: nowrap;
}
.submit-btn .arrow { transition: transform .2s ease; }
.submit-btn:hover .arrow { transform: translateX(4px); }
.submit-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.form-error {
  margin-top: 16px; color: #9a3b2f; font-size: 14px;
  background: rgba(154,59,47,.08); border: 1px solid rgba(154,59,47,.2);
  border-radius: 12px; padding: 12px 14px;
}

/* ---------- Confirmation ---------- */
.confirmation {
  text-align: center;
  max-width: 620px; margin: 40px auto;
  padding: 56px 32px 48px;
  border-radius: var(--radius);
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(212,183,123,.18), transparent 55%),
    rgba(255,255,255,.7);
  border: 1px solid rgba(176,139,69,.24);
  box-shadow: var(--shadow);
  animation: confirm-in .6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes confirm-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.confirm-seal {
  width: 92px; height: 92px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(176,139,69,.16), rgba(212,183,123,.22));
  border: 1px solid rgba(176,139,69,.3);
}
.confirm-seal svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-text {
  color: var(--muted); line-height: 1.8; font-size: 17px;
  max-width: 48ch; margin: 12px auto 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #app { padding-top: 34px; }
  .memo { padding: 20px; }
  .submit-bar { padding: 20px; }
  .submit-btn { width: 100%; justify-content: center; }
  .prop-sub { font-size: 17px; }
}
