/* 2025 Professional Italshow Association Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.italshow-modern-form-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.italshow-modern-form-wrapper::before {
  display: none;
}

.italshow-modern-form {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: #FFFFFF;
  box-shadow: none;
  border: none;
}

.italshow-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.italshow-field {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.italshow-modern-form input,
.italshow-modern-form select,
.italshow-modern-form textarea {
  width: 100%;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #FFFFFF;
  outline: none;
  color: #000000;
  transition: all 0.2s ease;
}

.italshow-modern-form input:focus,
.italshow-modern-form select:focus,
.italshow-modern-form textarea:focus {
  border-color: #C10E1A;
  box-shadow: 0 0 0 3px rgba(193, 14, 26, 0.1);
}

.italshow-modern-form input:hover,
.italshow-modern-form select:hover,
.italshow-modern-form textarea:hover {
  border-color: #C10E1A;
}

.italshow-modern-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: none;
  letter-spacing: normal;
}

/* Remove floating label styles */
.italshow-modern-form input:focus + label,
.italshow-modern-form select:focus + label,
.italshow-modern-form textarea:focus + label,
.italshow-modern-form input:not(:placeholder-shown) + label,
.italshow-modern-form select:not([value=""]) + label,
.italshow-modern-form textarea:not(:placeholder-shown) + label {
  /* Remove floating label styles - no specific styles needed */
  display: block;
}

/* Button container for proper spacing and sizing */
.button-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Responsive button container */
@media (max-width: 768px) {
  .button-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .button-container .italshow-btn {
    width: 100%;
    max-width: 200px;
  }
}

.italshow-btn {
  background: #C10E1A;
  color: #FFFFFF;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
  width: auto;
  min-width: 120px;
  flex-shrink: 0;
}

.italshow-btn:hover {
  background: #B80000;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.italshow-btn:active {
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
  transform: none;
}

.step.completed {
  opacity: 0.8;
}

.step-icon-outline {
  width: 40px;
  height: 40px;
  border: 2px solid #C10E1A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  transition: all 0.2s ease;
  color: #C10E1A;
  font-size: 0.875rem;
  font-weight: 600;
}

.step.active .step-icon-outline {
  background: #C10E1A;
  color: #FFFFFF;
  box-shadow: none;
}

.step.completed .step-icon-outline {
  background: #B80000;
  border-color: #B80000;
  color: #FFFFFF;
}

.step-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  transition: all 0.2s ease;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  text-align: left;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #C10E1A;
}

.section-title::before {
  display: none;
}

.italshow-error {
  background: rgba(214, 54, 56, 0.1);
  border: 1px solid #D63638;
  color: #D63638;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-weight: 500;
  font-size: 0.875rem;
}

.italshow-file-success {
  background: rgba(193, 14, 26, 0.1);
  border: 1px solid #C10E1A;
  color: #C10E1A;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-weight: 500;
  font-size: 0.875rem;
}

.italshow-file-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Simple file upload UI - like ID document */
.multi-file-upload-container {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fafafa;
}

.multi-file-upload-container:hover {
  border-color: #C10E1A;
  background: #f9fafb;
}

.multi-file-upload-container input[type="file"] {
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.uploaded-files-list {
  margin-top: 16px;
}

.file-upload-info {
  margin-top: 12px;
  color: #6b7280;
  font-size: 0.875rem;
}

.multi-file-upload-container {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fafafa;
}

.multi-file-upload-container:hover {
  border-color: #C10E1A;
  background: #f9fafb;
}

.multi-file-upload-container input[type="file"] {
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.uploaded-files-list {
  margin-top: 16px;
}

.file-upload-info {
  margin-top: 12px;
  color: #6b7280;
  font-size: 0.875rem;
}

.italshow-msg {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Ultra-responsive design */
@media (max-width: 768px) {
  .italshow-modern-form-wrapper {
    max-width: 95vw;
    margin: 1rem auto;
    padding: 2rem 1rem;
    border-radius: 20px;
  }
  
  .italshow-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stepper {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
  }
  
  .step {
    font-size: 0.75rem;
    padding: 0.75rem 0.25rem;
  }
  
  .section-title {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
  }
  
  .italshow-modern-form input,
  .italshow-modern-form select,
  .italshow-modern-form textarea {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .italshow-modern-form-wrapper {
    padding: 1.5rem 0.75rem;
    border-radius: 16px;
  }
  
  .stepper {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .step {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0.75rem 1rem;
  }
  
  .step-icon-outline {
    margin-bottom: 0;
    margin-right: 0.75rem;
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.italshow-field {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
.italshow-modern-form-wrapper::-webkit-scrollbar {
  width: 8px;
}

.italshow-modern-form-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.italshow-modern-form-wrapper::-webkit-scrollbar-thumb {
  background: #C10E1A;
  border-radius: 4px;
}

.italshow-modern-form-wrapper::-webkit-scrollbar-thumb:hover {
  background: #B80000;
} 

/* Requisiti Section Styles */
.requisiti-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.requisito-item {
  margin-bottom: 2rem !important;
}

.requisito-item:last-child {
  margin-bottom: 0 !important;
}

.option-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: #C10E1A;
}

.details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-top: 10px;
  padding: 15px;
}

.details.hidden {
  display: none;
}

.details ul {
  margin: 10px 0;
  padding-left: 20px;
}

.details li {
  margin: 5px 0;
  color: #374151;
}

.italshow-file-success {
  background: rgba(193, 14, 26, 0.1);
  color: #C10E1A;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 14px;
  border: 1px solid rgba(193, 14, 26, 0.3);
}

/* Checkbox and label styling */
.italshow-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: #374151;
  font-weight: 500;
}

.italshow-field label:hover {
  background: #f9fafb;
}

.italshow-field input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #C10E1A;
}

/* File upload styling */
.italshow-field input[type="file"] {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.italshow-field input[type="file"]:hover {
  border-color: #C10E1A;
  background: #f3f4f6;
}

.italshow-field input[type="file"]:focus {
  outline: none;
  border-color: #C10E1A;
  box-shadow: 0 0 0 3px rgba(193, 14, 26, 0.1);
}

/* Date input styling */
.italshow-field input[type="date"] {
  background: #FFFFFF;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #000000;
  font-family: 'Inter', sans-serif;
}

.italshow-field input[type="date"]:focus {
  border-color: #C10E1A;
  box-shadow: 0 0 0 3px rgba(193, 14, 26, 0.1);
}

.helper-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: normal;
} 

/* Phone input styling */
.phone-input-container {
  display: flex;
  align-items: stretch;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
  height: 100%;
}

.country-code-select {
  width: 100px;
  border: none;
  border-right: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  color: #374151;
  cursor: pointer;
  outline: none;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

.country-code-select:focus {
  background: #f3f4f6;
}

.country-code-select option {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.phone-input-container input[type="tel"] {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  outline: none;
  color: #000000;
  font-family: 'Inter', sans-serif;
  min-width: 0;
}

.phone-input-container:focus-within {
  border-color: #C10E1A;
  box-shadow: 0 0 0 3px rgba(193, 14, 26, 0.1);
}

.phone-input-container:hover {
  border-color: #C10E1A;
}

/* Ensure phone field aligns perfectly with other fields */
.italshow-field .phone-input-container {
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: stretch;
}

.italshow-field .phone-input-container input[type="tel"] {
  height: 100%;
  min-height: 48px;
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  outline: none;
  color: #000000;
  font-family: 'Inter', sans-serif;
  min-width: 0;
}

.italshow-field .phone-input-container .country-code-select {
  height: 100%;
  min-height: 48px;
  width: 100px;
  border: none;
  border-right: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  color: #374151;
  cursor: pointer;
  outline: none;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

/* Make sure phone field has same height as other inputs */
.italshow-field .phone-input-container {
  height: 48px;
}

.italshow-field .phone-input-container input[type="tel"],
.italshow-field .phone-input-container .country-code-select {
  height: 48px;
  line-height: 1.5;
}

/* Phone validation styling */
.phone-input-container.valid {
  border-color: #10b981;
}

.phone-input-container.invalid {
  border-color: #ef4444;
}

.phone-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.phone-error.show {
  display: block;
}

.phone-success {
  color: #10b981;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.phone-success.show {
  display: block;
} 

/* Codice fiscale validation styling */
.cf-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.cf-error.show {
  display: block;
}

.cf-success {
  color: #10b981;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.cf-success.show {
  display: block;
}

/* Input validation states */
.italshow-modern-form input.valid {
  border-color: #10b981;
}

.italshow-modern-form input.invalid {
  border-color: #ef4444;
} 

/* Clean styling for Choices.js selected categories */
.italshow-modern-form .choices {
  margin-bottom: 0;
}

.italshow-modern-form .choices__inner {
  background: #FFFFFF;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.italshow-modern-form .choices__inner:hover {
  border-color: #C10E1A;
}

.italshow-modern-form .choices.is-focused .choices__inner {
  border-color: #C10E1A;
  box-shadow: 0 0 0 3px rgba(193, 14, 26, 0.1);
}

/* Modern tag-style selected items */
.italshow-modern-form .choices__list--multiple .choices__item {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 0.5rem 1rem !important;
  margin: 0.25rem 0.5rem 0.25rem 0 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.italshow-modern-form .choices__list--multiple .choices__item:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Override any conflicting styles */
.italshow-modern-form .choices .choices__list--multiple .choices__item {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  color: #1e293b !important;
}

/* Modern remove button styling */
.italshow-modern-form .choices__list--multiple .choices__item .choices__button {
  background: #64748b;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.italshow-modern-form .choices__list--multiple .choices__item .choices__button:hover {
  background: #ef4444;
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.italshow-modern-form .choices__list--multiple .choices__item .choices__button::before {
  content: '×';
  line-height: 1;
  font-size: 12px;
}

/* Dropdown styling */
.italshow-modern-form .choices__list--dropdown {
  background: #FFFFFF;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  z-index: 1000;
}

.italshow-modern-form .choices__list--dropdown .choices__item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s ease;
}

.italshow-modern-form .choices__list--dropdown .choices__item:hover {
  background: #f3f4f6;
  color: #C10E1A;
}

.italshow-modern-form .choices__list--dropdown .choices__item.is-highlighted {
  background: #C10E1A;
  color: #FFFFFF;
}

/* Input styling */
.italshow-modern-form .choices__input {
  background: transparent;
  border: none;
  padding: 0.375rem 0;
  margin: 0.125rem 0;
  font-size: 0.875rem;
  color: #374151;
}

.italshow-modern-form .choices__input:focus {
  outline: none;
  box-shadow: none;
}

.italshow-modern-form .choices__placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Radio button styles */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.radio-label:hover {
  border-color: #C10E1A;
  background: #fef2f2;
}

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

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #C10E1A;
  background: #C10E1A;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ span {
  color: #C10E1A;
  font-weight: 600;
}

/* Smooth animation for new selections */
@keyframes categoryAppear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.italshow-modern-form .choices__list--multiple .choices__item {
  animation: categoryAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic categoria altro styling */
.categoria-altro-container {
  width: 100%;
}

/* Initial item - normal form inputs */
.categoria-altro-item.initial-item {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: block !important;
}

.categoria-altro-item.initial-item::before {
  display: none !important;
}

.categoria-altro-item.initial-item:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Added items - like selected categories */
.categoria-altro-item:not(.initial-item) {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 0.5rem 1rem !important;
  margin: 0.25rem 0.5rem 0.25rem 0 !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  overflow: hidden !important;
}

.categoria-altro-item:not(.initial-item)::before {
  display: none;
}

.categoria-altro-item:not(.initial-item):hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.categoria-altro-item:not(.initial-item) .remove-categoria-altro {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.categoria-altro-item:not(.initial-item) .remove-categoria-altro:hover {
  background: #f3f4f6;
  color: #374151;
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hide remove button for initial item */
.categoria-altro-item.initial-item .remove-categoria-altro {
  display: none !important;
}

/* Style inputs within categoria pills (only for added items) */
.categoria-altro-item:not(.initial-item) input {
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 0.25rem !important;
  font-size: 0.875rem !important;
}

.categoria-altro-item:not(.initial-item) input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 400 !important;
}

.categoria-altro-item:not(.initial-item) input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  padding: 0.125rem 0.25rem !important;
}

.categoria-text {
  color: #1e293b;
  font-weight: 500;
  font-size: 0.875rem;
}

.categoria-altro-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.add-categoria-altro {
  background: #10b981 !important;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-categoria-altro:hover {
  background: #059669 !important;
  transform: translateY(-1px);
}

/* Animation for new items */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.categoria-altro-item {
  animation: slideIn 0.3s ease-out;
}

/* Help text styles */
.help-text {
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
  color: #666;
  font-style: italic;
}

/* Document Upload Section Styles */
.document-upload-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.section-subtitle {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle::before {
  content: '📎';
  font-size: 1.1rem;
}

.document-upload-item {
  margin-bottom: 2rem;
}

.document-upload-item:last-child {
  margin-bottom: 0;
}

.document-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.file-upload-container {
  position: relative;
  margin-bottom: 1rem;
}

.file-upload-container input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-upload-display {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.file-upload-display:hover {
  border-color: #C10E1A;
  background: #fef2f2;
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-icon {
  font-size: 2rem;
  color: #6b7280;
}

.upload-text {
  font-weight: 500;
  color: #374151;
  font-size: 1rem;
}

.upload-info {
  color: #6b7280;
  font-size: 0.875rem;
}

.file-selected {
  border-color: #10b981;
  background: #f0fdf4;
}

.file-selected .upload-icon {
  color: #10b981;
}

.file-selected .upload-text {
  color: #065f46;
}

.remove-file-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 3;
  transition: all 0.2s ease;
}

.remove-file-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.document-expiry {
  margin-top: 1rem;
}

.document-expiry label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.document-expiry input[type="date"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.document-expiry input[type="date"]:focus {
  outline: none;
  border-color: #C10E1A;
  box-shadow: 0 0 0 3px rgba(193, 14, 26, 0.1);
}

.uploaded-files-list {
  margin-top: 1rem;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.uploaded-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-icon {
  font-size: 1.25rem;
  color: #6b7280;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.file-size {
  color: #6b7280;
  font-size: 0.75rem;
}

.remove-uploaded-file {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  padding: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.remove-uploaded-file:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}

/* Simple separator for Attestato section */
.simple-separator {
  height: 1px;
  background: #e5e7eb;
  margin: 2rem 0;
  position: relative;
}

.simple-separator::before {
  content: 'Attestato di Qualifica';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #f3f4f6;
  padding: 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

/* CAP field styling - smaller width when beside indirizzo */
#res-cap-field {
  flex: 0 0 120px; /* Fixed width for CAP field */
  max-width: 120px;
}

#dom-cap-field {
  flex: 0 0 120px; /* Fixed width for CAP field */
  max-width: 120px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .italshow-modern-form-wrapper {
    margin: 1rem;
    padding: 1rem;
  }
  
  .italshow-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .italshow-modern-form input,
  .italshow-modern-form select,
  .italshow-modern-form textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px;
  }
  
  .choices__inner {
    min-height: 44px; /* Better touch target */
  }
  
  .choices__item {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Mobile admin dashboard */
  .wrap h1 {
    font-size: 1.5em;
  }
  
  /* Mobile analytics cards */
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Mobile message system */
  .conversation-item {
    padding: 15px;
  }
  
  .message-bubble {
    max-width: 85%;
    font-size: 14px;
  }
  
  /* Mobile bulk actions */
  .bulk-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .bulk-actions select,
  .bulk-actions button {
    width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .italshow-modern-form-wrapper {
    margin: 0.5rem;
    padding: 0.5rem;
  }
  
  .italshow-modern-form input,
  .italshow-modern-form select,
  .italshow-modern-form textarea {
    padding: 10px;
  }
  
  /* Mobile table improvements */
  .wp-list-table {
    font-size: 12px;
  }
  
  .wp-list-table th,
  .wp-list-table td {
    padding: 8px 4px;
  }
  
  /* Mobile modal improvements */
  .modal {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .modal-content {
    padding: 15px;
  }
}