/**
 * BridgeWorks — Registrazione candidati (allineato a home.css)
 */

body.candidate-register-page {
  min-height: 100vh;
  background: var(--bianco);
}

body.candidate-register-page::before {
  opacity: 0.35;
}

body.candidate-register-page .fade-up {
  opacity: 1;
  transform: none;
}

.cr-reg-page {
  position: relative;
  z-index: 1;
  padding: 5.5rem var(--home-gutter) 4rem;
}

.cr-reg-wrap {
  max-width: min(640px, 100%);
  margin: 0 auto;
}

.cr-reg-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--verde-m);
  text-decoration: none;
  transition: color 0.2s;
}

.cr-reg-back:hover {
  color: var(--verde);
  text-decoration: underline;
}

.cr-reg-hero {
  margin-bottom: 2rem;
}

.cr-reg-hero .section-label::after {
  flex: 0 0 36px;
}

.cr-reg-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--verde);
  margin: 0 0 0.85rem;
}

.cr-reg-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--grigio);
  font-weight: 400;
  max-width: 38rem;
}

.cr-reg-lead strong {
  color: var(--verde);
  font-weight: 500;
}

.cr-reg-card {
  background: var(--bianco);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 92, 71, 0.1);
  box-shadow: var(--shadow-lift);
  padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 520px) {
  .cr-reg-card {
    padding: 2rem 2rem 1.65rem;
  }
}

.cr-reg-hint {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--verde);
  background: rgba(106, 171, 138, 0.12);
  border: 1px solid rgba(106, 171, 138, 0.28);
  border-radius: var(--radius);
}

.cr-reg-alert {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
}

.cr-reg-alert--error {
  background: rgba(184, 114, 98, 0.12);
  color: #7a3d32;
  border: 1px solid rgba(184, 114, 98, 0.28);
}

.cr-reg-form {
  position: relative;
}

.cr-reg-grid {
  display: grid;
  gap: 0.9rem 1rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 560px) {
  .cr-reg-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cr-reg-grid .cr-field:nth-child(5) {
    grid-column: 1 / -1;
  }
}

.cr-reg-grid--pair {
  margin-top: 0.5rem;
}

.cr-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cr-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grigio);
}

.cr-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 92, 71, 0.14);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--nero);
  background: var(--carta);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.cr-field input::placeholder {
  color: rgba(107, 107, 96, 0.55);
}

.cr-field input:focus {
  outline: none;
  border-color: var(--verde-l);
  box-shadow: 0 0 0 3px rgba(106, 171, 138, 0.18);
  background: var(--bianco);
}

.cr-reg-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1.15rem 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--grigio);
  font-weight: 400;
  cursor: pointer;
}

.cr-reg-check input {
  margin-top: 0.22rem;
  flex-shrink: 0;
  accent-color: var(--verde-m);
}

.cr-reg-check a {
  color: var(--verde-m);
  font-weight: 500;
  text-decoration: none;
}

.cr-reg-check a:hover {
  text-decoration: underline;
}

.cr-reg-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cr-reg-submit {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  background: var(--terracotta);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.cr-reg-submit:hover {
  transform: translateY(-1px);
  background: var(--terracotta-l);
}

.cr-reg-submit:focus-visible,
.cr-reg-back:focus-visible {
  outline: 2px solid var(--verde-l);
  outline-offset: 3px;
}

.cr-reg-foot {
  margin: 1.35rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(42, 92, 71, 0.08);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--grigio);
  line-height: 1.6;
}

.cr-reg-foot a,
.cr-reg-foot button.bw-cc-open-link {
  color: var(--verde-m);
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.cr-reg-foot a:hover,
.cr-reg-foot button.bw-cc-open-link:hover {
  color: var(--verde);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cr-reg-page {
    padding: 5rem var(--home-inset) 3rem;
  }

  .cr-reg-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}

@media (max-width: 559px) {
  .cr-reg-grid--pair {
    grid-template-columns: 1fr;
  }
}
