/* Values Match — candidatura azienda */
.vm-apply-hero {
  padding: 2.5rem var(--home-gutter, 1.5rem) 1.5rem;
  background: var(--carta, #faf8f4);
  border-bottom: 1px solid var(--vm-line, #e8e4dc);
}

.vm-apply-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--bw-font-display, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.vm-apply-lead {
  margin: 0;
  max-width: 42rem;
  line-height: 1.65;
  color: var(--vm-ink-soft, #5c5348);
}

.vm-apply-back {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.vm-apply-back a {
  color: var(--vm-accent, #3d7260);
  font-weight: 600;
  text-decoration: none;
}

.vm-apply-back a:hover {
  text-decoration: underline;
}

.vm-apply-body {
  padding: 2rem var(--home-gutter, 1.5rem) 4rem;
}

.vm-apply-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.vm-apply-side {
  position: sticky;
  top: 5.5rem;
}

.vm-apply-side__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.vm-apply-pillar {
  padding: 0.85rem 0;
  border-top: 1px solid var(--vm-line, #e8e4dc);
}

.vm-apply-pillar:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.vm-apply-pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.vm-apply-pillar p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--vm-ink-soft, #5c5348);
}

.vm-apply-side__note {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--vm-accent-soft, rgba(61, 114, 96, 0.08));
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--vm-ink-soft, #5c5348);
}

.vm-apply-form-wrap {
  background: #fff;
  border: 1px solid var(--vm-line, #e8e4dc);
  border-radius: var(--vm-radius, 14px);
  padding: 1.5rem;
  box-shadow: 0 8px 28px rgba(19, 26, 44, 0.06);
}

.vm-apply-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.vm-apply-alert--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.vm-apply-alert--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.vm-apply-fieldset {
  margin: 0 0 1.5rem;
  padding: 0 0 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--vm-line, #e8e4dc);
}

.vm-apply-fieldset:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.vm-apply-fieldset legend {
  padding: 0;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.vm-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

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

.vm-apply-field label,
.vm-apply-pillar-check {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.vm-apply-field input,
.vm-apply-field select,
.vm-apply-field textarea,
.vm-apply-pillar-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--vm-line, #e8e4dc);
  border-radius: 8px;
  font: inherit;
  color: var(--vm-ink, #131a2c);
  background: #fff;
}

.vm-apply-field input:focus,
.vm-apply-field select:focus,
.vm-apply-field textarea:focus,
.vm-apply-pillar-field textarea:focus {
  outline: 2px solid var(--vm-accent, #3d7260);
  outline-offset: 1px;
}

.vm-apply-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--vm-ink-soft, #5c5348);
}

.vm-apply-pillar-field {
  margin-bottom: 1rem;
}

.vm-apply-pillar-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-weight: 400;
  line-height: 1.45;
}

.vm-apply-pillar-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.vm-apply-pillar-check strong {
  font-weight: 700;
}

.vm-apply-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vm-apply-evidence-row {
  padding: 0.75rem 0;
  border-top: 1px dashed var(--vm-line, #e8e4dc);
}

.vm-apply-evidence-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.vm-apply-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.vm-apply-consent input {
  margin-top: 0.2rem;
}

.vm-apply-consent a {
  color: var(--vm-accent, #3d7260);
}

.vm-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vm-apply-done {
  margin: 0;
}

/* Banner CTA on values_match_italia */
.vm-apply-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--vm-radius, 14px);
  border: 1px solid rgba(61, 114, 96, 0.25);
  background: linear-gradient(135deg, rgba(61, 114, 96, 0.1) 0%, rgba(245, 240, 232, 0.9) 100%);
}

.vm-apply-banner__text {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--vm-ink-soft, #5c5348);
}

.vm-apply-banner__text strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: var(--vm-ink, #131a2c);
}

.vm-apply-banner .vm-btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .vm-apply-layout {
    grid-template-columns: 1fr;
  }

  .vm-apply-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .vm-apply-grid {
    grid-template-columns: 1fr;
  }

  .vm-apply-form-wrap {
    padding: 1rem;
  }
}
