
    :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;
    }



    @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: 12px 20px;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 10px;
    }

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

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

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

    @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;
    }

    /* 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: 85vh;
      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%;
    }

    .modal-body {
      display: flex;
      flex-direction: column;
      flex: 1;
      overflow-y: auto;
      min-height: 0;
    }

    .privacy-content {
      line-height: 1.6;
      color: #374151;
      font-size: 0.95rem;
      padding: 24px 32px;
      flex-shrink: 0;
    }

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

    .privacy-content h4 {
      color: #374151;
      margin: 16px 0 8px 0;
      font-size: 1rem;
      font-weight: 600;
    }

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

    .modal-footer {
      padding: 14px 32px;
      border-top: 2px solid #cce9ed;
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      background: #f8feff;
      flex-shrink: 0;
    }

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

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

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

      .privacy-content {
        padding-left: 20px;
        padding-right: 20px;
      }

      .consent-checkboxes {
        padding: 10px 20px;
      }

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

      .modal-footer {
        flex-direction: column;
        padding: 14px 20px;
      }

      .modal-footer .button {
        width: 100%;
      }

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

    /* Privacy Policy Link Container */
    .privacy-policy-link-container {
      margin: 20px 0 0 0;
    }

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

    /* Consent Summary */
    .consent-summary {
      background: linear-gradient(135deg, #f0fafc 0%, #e8f9fb 100%);
      border: 2px solid #b3e5ec;
      border-radius: 12px;
      padding: 16px 20px;
      margin: 20px 0 0 0;
    }

    .consent-summary h4 {
      color: var(--primary);
      font-size: 1rem;
      margin: 0 0 12px 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .consent-summary ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .consent-summary li {
      padding: 6px 0;
      font-size: 0.9rem;
      color: #374151;
      display: flex;
      align-items: start;
      gap: 8px;
      line-height: 1.4;
    }

    .consent-summary .icon {
      flex-shrink: 0;
      font-size: 1.1em;
    }

    .consent-summary .edit-link {
      display: inline-block;
      margin-top: 8px;
      color: var(--secondary);
      font-size: 0.85rem;
      text-decoration: underline;
      cursor: pointer;
      font-weight: 500;
    }

    /* Consent Checkboxes in Modal */
    .consent-checkboxes {
      padding: 12px 32px 12px 32px;
      border-top: 2px solid #e5e7eb;
      background: #f9fafb;
      flex-shrink: 0;
    }



    .consent-checkboxes .checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
      cursor: pointer;
      padding: 10px;
      border-radius: 6px;
    }

    .consent-checkboxes .mandatory-checkbox {
      background: #fff8f0;
      border: 2px solid #ffd19a;
    }

    .consent-checkboxes .optional-checkbox {
      background: #f8fffe;
      border: 1px solid #d0f4f8;
    }

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

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

    .consent-checkboxes .mandatory-checkbox .checkmark {
      border-color: #ff9a3e;
    }

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

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

    .consent-checkboxes .checkbox-text {
      flex: 1;
      line-height: 1.4;
      color: #374151;
      font-size: 0.85rem;
    }

    .required-badge {
      display: inline-block;
      color: #c0392b;
      font-weight: 600;
      font-size: 0.75rem;
      margin-left: 4px;
    }

    .optional-badge {
      display: inline-block;
      color: #00aec7;
      font-weight: 500;
      font-size: 0.75rem;
      font-style: italic;
      margin-left: 4px;
    }

    .consent-note {
      font-size: 0.75rem;
      color: #666;
      font-style: italic;
      margin-top: 10px;
      padding: 8px 10px;
      background: #f8f9fa;
      border-left: 2px solid var(--primary);
      border-radius: 4px;
    }

    /* Privacy content formatting */
    .privacy-content ul {
      margin: 12px 0;
      padding-left: 24px;
    }

    .privacy-content li {
      margin-bottom: 8px;
      line-height: 1.6;
    }

    .privacy-content strong {
      color: var(--primary);
      font-weight: 600;
    }

    /* Disabled button state in modal */
    .modal-footer .button:disabled {
      background: #d1d5db;
      color: #9ca3af;
      cursor: not-allowed;
      opacity: 0.6;
    }

    @media (max-width: 600px) {
      .consent-checkboxes .checkbox-label {
        padding: 10px;
      }

      .consent-checkboxes .checkbox-text {
        font-size: 0.875rem;
      }

      .consent-checkboxes .checkmark {
        width: 20px;
        height: 20px;
      }

      .privacy-policy-link-container p {
        font-size: 0.85rem !important;
      }

      .consent-summary {
        padding: 12px 16px;
      }

      .consent-summary h4 {
        font-size: 0.9rem;
      }

      .consent-summary li {
        font-size: 0.85rem;
      }

      .consent-summary .edit-link {
        font-size: 0.8rem;
      }
    }
    }