
    :root {
      --primary: #00aec7;
      --secondary: #ff6420;
      --white: #ffffff;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .lang-selector select {
      padding: 6px 18px 6px 10px;
      border-radius: 8px;
      border: 1.5px solid #dbeafe;
      background: #f5faff;
      font-size: 1rem;
      color: var(--primary);
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url('data:image/svg+xml;utf8,<svg fill="%2300aec7" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
      background-repeat: no-repeat;
      background-position: right 10px center;
      background-size: 16px 16px;
    }

    .lang-selector a:hover span {
      background: #d0f5f9;
      box-shadow: 0 0 0 2px rgba(0, 174, 199, 0.2);
    }

    @media (max-width: 600px) {
      .lang-selector {
        right: 8px;
        top: 8px;
      }
    }

    .container {
      max-width: 420px;
      margin: 48px auto;
      background: var(--white);
      border-radius: 18px;
      box-shadow: 0 4px 24px rgba(0, 174, 199, 0.08);
      padding: 40px 32px 32px 32px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .logo {
      width: 200px;
    }

    h1 {
      font-size: 2.2rem;
      font-weight: 700;
      margin: 0 0 12px 0;
      color: var(--primary);
      text-align: center;
    }

    p {
      color: #666;
      margin-bottom: 28px;
      text-align: center;
      font-size: 1rem;
    }

    .hero-description {
      color: #555;
      font-size: 1.2rem;
      font-weight: 500;
      line-height: 1.6;
      margin-bottom: 32px;
      text-align: center;
      background: linear-gradient(135deg, #f0fafc 0%, #d0f4f8 100%);
      padding: 20px 24px;
      border-radius: 12px;
      border: 1px solid rgba(0, 174, 199, 0.1);
      box-shadow: 0 2px 8px rgba(0, 174, 199, 0.05);
    }

    form {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    label {
      font-weight: 0.95;
      margin-bottom: 6px;
      color: #222;
    }

    input,
    select {
      padding: 12px 14px;
      border: 1.5px solid #cce9ed;
      border-radius: 8px;
      font-size: 1rem;
      background: #f0fafc;
      transition: border 0.2s;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url('data:image/svg+xml;utf8,<svg fill="%2300aec7" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 20px 20px;
      cursor: pointer;
    }

    input {
      padding: 12px 14px;
      border: 1.5px solid #cce9ed;
      border-radius: 8px;
      font-size: 1rem;
      background: #f0fafc;
      transition: border 0.2s;
    }

    input:focus,
    select:focus {
      border-color: var(--primary);
      outline: none;
    }

    /* Fix per Firefox per evitare la freccia di default */
    select:-moz-focusring {
      color: transparent;
      text-shadow: 0 0 0 #000;
    }

    .button {
      background-color: var(--primary);
      color: var(--white);
      border: none;
      border-radius: 8px;
      padding: 14px 0;
      font-size: 1.1rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 10px;
    }

    .button:hover {
      background: linear-gradient(90deg,
          var(--secondary) 0%,
          var(--primary) 100%);
    }

    @media (max-width: 600px) {
      .form-group {
        margin-bottom: 14px;
      }

      input,
      select {
        font-size: 1rem;
        padding: 10px 12px;
      }

      button {
        font-size: 1rem;
        padding: 12px;
      }
    }

    @media (max-width: 600px) {
      .container {
        padding: 24px 8px 20px 8px;
      }

      h1 {
        font-size: 1.4rem;
      }

      .hero-description {
        font-size: 1rem;
        padding: 16px 20px;
        margin-bottom: 24px;
      }
    }

    .employee-only {
      display: none;
    }

    .employer-only {
      display: none;
    }

    #ruolo-employee-other-field-container {
      display: none;
      padding-top: 20px;
    }

    #ruolo-employer-other-field-container {
      display: none;
      padding-top: 20px;
    }


    /* Privacy Policy Checkbox */
    .privacy-policy-group {
      margin-top: 8px;
    }

    .checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      font-size: 0.9rem;
      line-height: 1.4;
      color: #555;
    }

    .checkbox-label input[type="checkbox"] {
      display: none;
    }

    .checkmark {
      width: 20px;
      height: 20px;
      border: 2px solid #cce9ed;
      border-radius: 4px;
      background: #f0fafc;
      position: relative;
      flex-shrink: 0;
      margin-top: 2px;
      transition: all 0.2s ease;
    }

    .checkbox-label input[type="checkbox"]:checked+.checkmark {
      background: var(--primary);
      border-color: var(--primary);
    }

    .checkbox-label input[type="checkbox"]:checked+.checkmark::after {
      content: '✓';
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-size: 12px;
      font-weight: bold;
    }

    .privacy-link {
      color: var(--secondary);
      text-decoration: underline;
      font-weight: 500;
    }

    .privacy-link:hover {
      color: var(--primary);
    }

    /* Modal Styles */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
    }

    .modal-content {
      background-color: white;
      margin: 5% auto;
      border-radius: 16px;
      width: 90%;
      max-width: 700px;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      animation: modalAppear 0.3s ease-out;
    }

    @keyframes modalAppear {
      from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .modal-header {
      padding: 24px 32px 16px 32px;
      border-bottom: 1px solid #e5e7eb;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header h2 {
      margin: 0;
      color: var(--primary);
      font-size: 1.5rem;
      font-weight: 700;
    }

    .close {
      color: #999;
      font-size: 32px;
      font-weight: bold;
      cursor: pointer;
      line-height: 1;
      padding: 0;
      background: none;
      border: none;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.2s ease;
    }

    .close:hover {
      color: var(--primary);
      background: #e8f9fb;
    }

    .modal-body {
      padding: 24px 32px;
      overflow-y: auto;
      flex: 1;
    }

    .privacy-content {
      line-height: 1.6;
      color: #374151;
      font-size: 0.95rem;
    }

    .privacy-content h3 {
      color: var(--primary);
      margin: 24px 0 12px 0;
      font-size: 1.1rem;
    }

    .privacy-content p {
      margin-bottom: 16px;
      text-align: left;
    }

    .modal-footer {
      padding: 16px 32px 24px 32px;
      border-top: 1px solid #e5e7eb;
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .button.secondary {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #d1d5db;
    }

    .button.secondary:hover {
      background: #e5e7eb;
    }

    /* Mobile responsiveness per modal */
    @media (max-width: 600px) {
      .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
      }

      .modal-header,
      .modal-body,
      .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
      }

      .modal-header h2 {
        font-size: 1.3rem;
      }

      .modal-footer {
        flex-direction: column;
      }

      .checkbox-label {
        font-size: 0.85rem;
      }
    }