/**
 * Trust (/trust/) and proposal contact (/contact/) — enterprise procurement UX.
 * Depends on sovereign-public.css tokens (--navy-900, --radius-md, --teal-*).
 */

/* ─── Trust page ─── */
.mg-trust-hero {
  padding: var(--dt-space-10, 2.5rem) 0 var(--dt-space-8, 2rem);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.mg-trust-hero h1 {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--navy-900);
  line-height: var(--dt-leading-tight, 1.25);
  max-width: 42rem;
  margin-bottom: 0;
}

.mg-trust-pillar {
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: var(--dt-color-surface, #fff);
  padding: var(--dt-space-8, 2rem);
  height: 100%;
  box-shadow: var(--dt-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mg-trust-pillar:hover {
  border-color: rgba(20, 143, 119, 0.35);
  box-shadow: var(--dt-shadow-md);
}

.mg-trust-pillar-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: var(--dt-space-4);
}

.mg-trust-pillar h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--dt-space-5);
}

.mg-trust-pillar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-trust-pillar li {
  position: relative;
  padding-inline-start: 1rem;
  margin-bottom: var(--dt-space-3);
  font-size: var(--dt-text-sm, 0.875rem);
  color: var(--dt-color-text-muted, #6c757d);
  line-height: var(--dt-leading-relaxed, 1.75);
}

.mg-trust-pillar li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500, #148f77);
}

.mg-compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dt-space-3);
  justify-content: center;
}

.mg-compliance-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: var(--dt-text-xs, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: var(--radius-md);
}

.mg-trust-status {
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 143, 119, 0.35);
  background: linear-gradient(135deg, rgba(20, 143, 119, 0.06) 0%, rgba(10, 22, 40, 0.03) 100%);
  padding: var(--dt-space-6);
  max-width: 480px;
  margin-inline: auto;
}

.mg-trust-status-dot {
  color: #148f77;
  font-size: 1.1rem;
  vertical-align: middle;
}

.mg-trust-status-meta {
  font-size: var(--dt-text-sm);
  color: var(--dt-color-text-muted);
}

/* ─── Contact / proposal page ─── */
.mg-contact-proposal-section {
  padding: var(--dt-space-10) 0 var(--dt-space-12);
}

.mg-proposal-form-wrap {
  padding-inline-end: clamp(0px, 2vw, 1.5rem);
}

/* Tighter type scale than default Bootstrap (proportional ~88% of prior scale). */
.mg-contact-page-title {
  font-size: clamp(1.05rem, 2.15vw, 1.4rem);
  line-height: var(--dt-leading-tight, 1.25);
}

.mg-contact-lead {
  font-size: var(--dt-text-sm, 0.875rem);
  line-height: var(--dt-leading-relaxed, 1.65);
}

.mg-proposal-label {
  display: block;
  font-size: calc(var(--dt-text-xs, 0.75rem) * 0.92);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: var(--dt-space-2);
}

.mg-proposal-form .form-check-label {
  font-size: var(--dt-text-sm, 0.875rem);
  line-height: 1.45;
}

.mg-proposal-form .form-control,
.mg-proposal-form .form-select {
  min-height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 22, 40, 0.18);
  padding: 0.55rem 0.88rem;
  font-size: calc(var(--dt-text-md, 0.9rem) * 0.94);
}

.mg-proposal-form .form-control:focus,
.mg-proposal-form .form-select:focus {
  border-color: rgba(20, 143, 119, 0.65);
  box-shadow: 0 0 0 3px rgba(20, 143, 119, 0.22);
  outline: none;
}

.mg-proposal-form textarea.form-control {
  min-height: 106px;
  resize: vertical;
}

.mg-proposal-radio-group .form-check {
  padding: var(--dt-space-3) var(--dt-space-4);
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--dt-space-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mg-proposal-radio-group .form-check:has(.form-check-input:checked) {
  border-color: rgba(20, 143, 119, 0.45);
  background: rgba(20, 143, 119, 0.04);
}

.mg-proposal-radio-group .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(20, 143, 119, 0.22);
}

/* Django RadioSelect default markup: ul > li */
.mg-proposal-radio-group ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.mg-proposal-radio-group li {
  margin-bottom: var(--dt-space-2);
}

.mg-proposal-radio-group:not(.mg-proposal-lang-radios) li {
  padding: var(--dt-space-3) var(--dt-space-4);
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mg-proposal-radio-group:not(.mg-proposal-lang-radios) li:has(input:checked) {
  border-color: rgba(20, 143, 119, 0.45);
  background: rgba(20, 143, 119, 0.04);
}

.mg-proposal-lang-radios ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dt-space-4);
  align-items: center;
}

.mg-proposal-lang-radios li {
  margin-bottom: 0;
}

.mg-proposal-submit {
  width: 100%;
  min-height: 46px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  background: var(--teal-500, #148f77) !important;
  border: none !important;
  color: #fff !important;
}

.mg-proposal-submit:hover,
.mg-proposal-submit:focus-visible {
  background: var(--teal-600, #117a65) !important;
  color: #fff !important;
}

.mg-proposal-privacy-note {
  font-size: calc(var(--dt-text-xs, 0.75rem) * 0.95);
  color: var(--dt-color-text-muted);
  line-height: var(--dt-leading-relaxed);
  margin-top: var(--dt-space-4);
}

.mg-contact-context-panel {
  background: var(--navy-900);
  color: #fff;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  height: 100%;
}

.mg-contact-context-panel h2 {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--dt-space-8);
}

.mg-contact-step {
  margin-bottom: var(--dt-space-6);
}

.mg-contact-step-num {
  font-weight: 700;
  color: var(--teal-400, #48c9b0);
  margin-bottom: var(--dt-space-1);
  font-size: calc(var(--dt-text-sm, 0.875rem) * 0.94);
}

.mg-contact-step p {
  margin: 0;
  font-size: calc(var(--dt-text-sm, 0.875rem) * 0.94);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--dt-leading-relaxed);
}

.mg-contact-context-divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: var(--dt-space-8) 0;
}

.mg-contact-context-details {
  font-size: var(--dt-text-sm);
  color: rgba(255, 255, 255, 0.88);
}

.mg-contact-context-details a {
  color: var(--teal-400, #48c9b0);
  text-decoration: none;
}

.mg-contact-context-details a:hover {
  text-decoration: underline;
}

.mg-proposal-success {
  text-align: center;
  padding: var(--dt-space-10) var(--dt-space-6);
  border: 1px solid rgba(20, 143, 119, 0.25);
  border-radius: var(--radius-md);
  background: rgba(20, 143, 119, 0.06);
}

.mg-proposal-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--dt-space-6);
  border-radius: 50%;
  background: var(--teal-500, #148f77);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.mg-proposal-success h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--dt-space-4);
}

.mg-proposal-success .mg-proposal-success-link {
  font-weight: 600;
  color: var(--teal-600, #117a65);
  text-decoration: none;
}

.mg-proposal-success .mg-proposal-success-link:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .mg-contact-context-panel {
    margin-top: var(--dt-space-8);
  }

  .mg-proposal-form-wrap {
    padding-inline-end: 0;
  }
}

/* RTL: bullet position */
[dir="rtl"] .mg-trust-pillar li {
  padding-inline-start: 1rem;
  padding-inline-end: 0;
}
