/* ===========================
   Proposal Page Layout
   =========================== */

:root {
  --cicl-page-max-width: 1120px;
  --cicl-navy: #0b2545;
  --cicl-text: #1e2933;
  --cicl-muted-text: #4b5563;
  --cicl-muted-bg: #f3f4f7;
  --cicl-card-bg: #ffffff;
  --cicl-border: #e2e8f0;
  --cicl-accent: #e46504;
}

/* HERO */

.proposal-page {
  padding: 0 1.5rem 4rem;
    margin-block-start: 3rem;
}

.proposal-hero {
  padding: 4rem 0 2.5rem;
  max-width: var(--cicl-page-max-width);
  margin-inline: auto;
  /* background:
    radial-gradient(circle at top left, #eef3ff 0, #f6f7fb 40%, #ffffff 100%); */
    text-align: center;
}

.proposal-hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.proposal-hero h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--cicl-navy);
  margin-bottom: 1rem;
}

.proposal-hero__lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--cicl-muted-text);
  margin-bottom: 1.25rem;
}

.proposal-hero__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.94rem;
  color: var(--cicl-muted-text);
}

.proposal-hero__highlights li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--cicl-accent);
}

/* ===========================
   FORM + SIDEBAR LAYOUT
   =========================== */

.proposal-layout {
  max-width: var(--cicl-page-max-width);
  margin-inline: auto;
  padding-top: 2rem;
}

.proposal-layout__inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .proposal-layout__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===========================
   FORM STYLING
   =========================== */

.proposal-form {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid var(--cicl-border);
  padding: 1.75rem 1.5rem 1.8rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
  .proposal-form {
    padding: 2rem 2rem 2.25rem;
  }
}

.proposal-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.proposal-fieldset:last-of-type {
  margin-bottom: 1.5rem;
}

.proposal-fieldset legend {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cicl-navy);
  margin-bottom: 0.4rem;
}

.fieldset-intro {
  font-size: 0.9rem;
  color: var(--cicl-muted-text);
  margin-bottom: 1rem;
}

/* Rows and fields */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field--half {
  max-width: 260px;
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-field--half,
  .form-field--full {
    max-width: none;
    grid-column: 1 / -1;
  }
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cicl-text);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0.5rem;
  border: 1px solid var(--cicl-border);
  padding: 0.55rem 0.7rem;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--cicl-text);
  background-color: #ffffff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--cicl-accent);
  box-shadow: 0 0 0 2px rgba(15, 123, 255, 0.2);
}

/* Help text */

.field-help {
  font-size: 0.8rem;
  color: var(--cicl-muted-text);
  margin-top: 0.25rem;
}

/* ===========================
   CHECKBOX GROUPS
   =========================== */

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 0.75rem 0 0.75rem;
}

@media (max-width: 900px) {
  .checkbox-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

.checkbox-column {
  border-radius: 0.7rem;
  border: 1px solid var(--cicl-border);
  padding: 0.9rem;
  background-color: #f9fafb;
}

.checkbox-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cicl-navy);
  margin: 0 0 0.35rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.checkbox-item input[type="checkbox"] {
  margin-top: 0.15rem;
}

.checkbox-item label {
  font-size: 0.9rem;
  color: var(--cicl-muted-text);
}

/* ===========================
   ACTIONS
   =========================== */

.proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.proposal-submit {
  font-size: 0.95rem;
  padding-inline: 1.4rem;
}

.proposal-secondary {
  font-size: 0.9rem;
}

/* Ensure buttons/links in this section keep your global button styles */
.proposal-actions .btn-solid,
.proposal-actions .btn-ghost {
  text-decoration: none;
}

/* ===========================
   SIDEBAR
   =========================== */

.proposal-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .proposal-sidebar {
    position: static;
  }
}

.proposal-sidebar__block {
  background-color: var(--cicl-muted-bg);
  border-radius: 0.85rem;
  border: 1px solid var(--cicl-border);
  padding: 1.1rem 1rem;
}

.proposal-sidebar__block h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cicl-navy);
  margin-bottom: 0.45rem;
}

.proposal-sidebar__block p {
  font-size: 0.9rem;
  color: var(--cicl-muted-text);
  line-height: 1.6;
}

/* Steps list */

.proposal-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--cicl-muted-text);
}

.proposal-steps li + li {
  margin-top: 0.4rem;
}

/* Tags */

.proposal-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proposal-tags li {
  font-size: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid var(--cicl-border);
  color: var(--cicl-muted-text);
}

/* Contact text */

.proposal-contact {
  font-size: 0.9rem;
  color: var(--cicl-muted-text);
}

.proposal-contact a {
  color: var(--cicl-accent);
  text-decoration: none;
}

.proposal-contact a:hover,
.proposal-contact a:focus-visible {
  text-decoration: underline;
}

/* ===========================
   Small screen tweaks
   =========================== */

@media (max-width: 600px) {
  .proposal-page {
    padding-inline: 1rem;
  }

  .proposal-hero {
    padding-inline: 0;
  }

  .proposal-form {
    padding-inline: 1.2rem;
  }
}

/* Proposal form status message */

.proposal-status {
  margin-top: 0.5rem;
}

.proposal-status__message {
  font-size: 0.88rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}

.proposal-status__message.is-success {
  background-color: #ecfdf3;
  border-color: #16a34a33;
  color: #166534;
}

.proposal-status__message.is-error {
  background-color: #fef2f2;
  border-color: #dc262633;
  color: #b91c1c;
}

.proposal-status__message.is-info {
  background-color: #eff6ff;
  border-color: #2563eb33;
  color: #1d4ed8;
}

