/**
 * Stand Manager - Frontend Styles
 */

/* General Container */
.sm-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.5;
}

/* Availability Notice */
.sm-availability-notice {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.sm-availability-notice p {
    margin: 0;
    color: #0d47a1;
    font-size: 14px;
}

.sm-availability-notice strong {
    color: #1565c0;
}

/* Steps Navigation */
.sm-steps-nav {
    margin-bottom: 30px;
}

.sm-steps-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    counter-reset: step;
}

.sm-steps-nav li {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 20px 10px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sm-steps-nav li:last-child {
    border-right: none;
}

.sm-steps-nav li:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
}

.sm-steps-nav li.active {
    background-color: #fff;
    color: #0073aa;
}

.sm-steps-nav li.active:before {
    background-color: #0073aa;
}

.sm-steps-nav li.completed {
    background-color: #f1f7fa;
    color: #28a745;
}

.sm-steps-nav li.completed:before {
    background-color: #28a745;
}

.sm-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    font-weight: 600;
}

.sm-steps-nav li.active .sm-step-number {
    background-color: #0073aa;
    color: #fff;
}

.sm-steps-nav li.completed .sm-step-number {
    background-color: #28a745;
    color: #fff;
}

.sm-step-label {
    font-size: 14px;
    font-weight: 500;
}

/* Steps Container */
.sm-steps-container {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sm-step-content {
    display: none;
    padding: 30px;
}

.sm-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sm-step-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    font-size: 20px;
}

/* Filters */
.sm-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.sm-filter-group {
    margin-right: 15px;
    margin-bottom: 10px;
}

.sm-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.sm-filter-group select,
.sm-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
    font-size: 14px;
}

/* Stands List */
.sm-stands-results {
    margin-bottom: 30px;
}

.sm-stands-list {
    margin-bottom: 20px;
}

.sm-stand-item {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sm-stand-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sm-stand-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sm-stand-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex-grow: 1;
}

.sm-stand-select {
    display: flex;
    align-items: center;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

.sm-stand-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.sm-checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.sm-stand-checkbox:checked + .sm-checkbox-custom {
    background-color: #0073aa;
    border-color: #0073aa;
}

.sm-stand-checkbox:checked + .sm-checkbox-custom:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 1px;
}

.sm-stand-details {
    display: flex;
    padding: 15px;
}

.sm-stand-image {
    width: 120px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.sm-stand-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sm-no-image {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #aaa;
    font-size: 12px;
    text-align: center;
}

.sm-stand-info {
    flex-grow: 1;
}

.sm-stand-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: black !important;
    font-family: 'Tahoma' !important;    
}

.sm-stand-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.sm-no-results {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

.sm-selection-summary {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-weight: 500;
}

.sm-selected-count {
    color: #0073aa;
}

/* Selected Stands (Step 2) */
.sm-selected-stands-container {
    margin-bottom: 30px;
}

.sm-selected-stand {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.sm-selected-stand .sm-stand-header {
    position: relative;
}

.sm-remove-stand {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
}

.sm-remove-stand:hover {
    color: #c82333;
}

.sm-stand-dates {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.sm-date-group {
    flex: 1;
    min-width: 200px;
    margin-right: 15px;
    margin-bottom: 10px;
}

.sm-date-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.sm-date-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.sm-availability-status {
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
}

.sm-availability-loader {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sm-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sm-availability-result {
    font-size: 14px;
}

.sm-availability-success {
    color: #28a745;
}

.sm-availability-error {
    color: #dc3545;
}

/* Options (Step 2) */
.sm-options-container {
    margin-bottom: 30px;
}

.sm-options-container h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.sm-option-item {
    margin-bottom: 10px;
}

.sm-option-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.sm-option-item input[type="checkbox"] {
    margin-right: 10px;
}

/* Form (Step 3) */
.sm-booking-form {
    max-width: 800px;
}

.sm-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.sm-form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
    margin-right: 15px;
}

.sm-form-group:last-child {
    margin-right: 0;
}

.sm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.sm-form-group input,
.sm-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.sm-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Booking Summary */
.sm-booking-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.sm-booking-summary h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Action Buttons */
.sm-step-actions,
.sm-form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.sm-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sm-button:hover {
    background-color: #005f8c;
}

.sm-button-outline {
    background-color: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
    margin-left: 10px;
}

.sm-button-outline:hover {
    background-color: #f1f8fb;
    color: #005f8c;
    border-color: #005f8c;
}

.sm-prev-step {
    background-color: #f8f9fa;
    color: #555;
    border: 1px solid #ccc;
}

.sm-prev-step:hover {
    background-color: #e9ecef;
    color: #333;
}

/* Success Message */
.sm-step-success {
    display: none;
    padding: 40px 30px;
    text-align: center;
}

.sm-success-message {
    max-width: 600px;
    margin: 0 auto;
}

.sm-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #28a745;
    color: white;
    font-size: 40px;
    border-radius: 50%;
}

.sm-success-message h3 {
    color: #28a745;
    font-size: 24px;
    margin-bottom: 20px;
}

.sm-success-message p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.sm-thanks-message {
    font-weight: 600;
    font-size: 18px;
    margin-top: 25px;
    color: #28a745;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sm-steps-nav ul {
        flex-direction: column;
    }
    
    .sm-steps-nav li {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .sm-step-content {
        padding: 20px 15px;
    }
    
    
    .sm-stand-details {
        flex-direction: column;
    }
    
    .sm-stand-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .sm-form-row {
        flex-direction: column;
    }
    
    .sm-form-group {
        margin-right: 0;
    }
    
    .sm-step-actions,
    .sm-form-actions {
        flex-direction: column;
    }
    
    .sm-button {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Animation Classes */
.sm-fade-in {
    animation: fadeIn 0.3s ease;
}

.sm-fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* Login Form */
.sm-login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sm-login-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.sm-error-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.sm-login-form .sm-form-group {
    margin-bottom: 20px;
}

.sm-login-form .sm-form-actions {
    margin-top: 30px;
    justify-content: center;
}

/* === Responsive Stand Grid === */
.sm-stands-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
}

.sm-stand-item{height:100%}

.sm-stand-image{width:100%;max-height:220px}

@media (max-width:480px){
  .sm-stand-details{flex-direction:column}
  .sm-stand-image{max-height:none}
}

/* File Upload Styles */
.sm-attachments-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.sm-upload-field {
    margin-bottom: 15px;
}

.sm-upload-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.sm-file-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.sm-upload-preview {
    margin-top: 15px;
}

.sm-preview-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sm-preview-item {
    display: flex;
    align-items: center;
    width: 220px;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.sm-preview-thumb {
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin-right: 10px;
}

.sm-preview-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pdf-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M12 16.5v-9l-3 2.5V13H7V9.5L12 6l5 3.5V13h-2v-3l-3-2.5v9h-2z"/><path d="M3 17V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2zm15 0V5H6v12h12z"/></svg>');
}

.sm-preview-info {
    flex-grow: 1;
    overflow: hidden;
}

.sm-preview-filename {
    font-size: 12px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.sm-preview-filesize {
    font-size: 11px;
    color: #888;
}

.sm-remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

form#sm-booking-form
 {
    min-width: 100% !important;
}

.sm-filters {
    max-width: 800px;
}

/* Material Details Styling */
.sm-material-details {
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 3px solid #007cba;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
}

.sm-material-field {
    margin-bottom: 12px;
}

.sm-material-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.sm-material-field input[type="number"],
.sm-material-field input[type="text"],
.sm-material-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s ease;
}

.sm-material-field input[type="number"]:focus,
.sm-material-field input[type="text"]:focus,
.sm-material-field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Material Checkbox Items */
.sm-material-item {
    margin-bottom: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff;
    transition: box-shadow 0.2s ease;
}

.sm-material-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sm-material-item label {
    cursor: pointer;
    display: block;
    font-weight: 500;
    margin-bottom: 0;
}

.sm-material-item input[type="checkbox"] {
    margin-right: 8px;
}


/* Error Field Styling */
.sm-error-field {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.1) !important;
}

/* Responsive Layout for Quantity and Dimensions */
@media (max-width: 768px) {
    .sm-material-field[style*="display: inline-block"] {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
}

input#sm-different-billing {
    inline-size: initial;
}

/* Privacy Consent Styling */
.sm-privacy-group {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.sm-privacy-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.5;
}

.sm-privacy-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sm-privacy-text {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
}

.sm-privacy-text strong {
    color: #007cba;
}


/* Privacy checkbox validation error */
.sm-privacy-label.error {
    color: #d93025;
}

.sm-privacy-label.error .sm-privacy-text {
    color: #d93025;
}

.sm-privacy-label.error input[type="checkbox"] {
    border-color: #d93025;
    box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.1);
}

/*
input#sm-terms-consent {
    display: none;
}
*/
input#sm-terms-consent {
    max-width: 29px;
}


/* 1) Disattiva eventuali pseudo-elementi del tema per evitare il doppione */
/*
.sm-form-group.sm-privacy-group .sm-privacy-label .sm-privacy-text::after {
  content: none !important;
}
*/

/* 2) Nascondi l'input nativo per entrambi i checkbox dentro i blocchi privacy/CG */
/*
.sm-form-group.sm-privacy-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
}
*/

/* 3) Prepara lo spazio a sinistra del testo per il "riquadro" */
.sm-form-group.sm-privacy-group .sm-privacy-label .sm-privacy-text {
  position: relative;
  padding-left: 28px; /* spazio per il box */
}

/* 4) Disegna il "riquadro" del checkbox */
.sm-form-group.sm-privacy-group .sm-privacy-label .sm-privacy-text::before {
  content: "" !important;
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 3px;
  background: #fff;
  transition: all .2s ease;
}

/* 5) Stato CHECKED (agganciato all'input generico, non all'ID) */
.sm-form-group.sm-privacy-group input[type="checkbox"]:checked + .sm-privacy-text::before {
  border-color: #0073aa;
  background: #0073aa;
  box-shadow: inset 0 0 0 4px #fff; /* effetto "spunta" semplificato */
}

/* 6) Stato FOCUS (accessibilità tastiera) */
.sm-form-group.sm-privacy-group input[type="checkbox"]:focus + .sm-privacy-text::before {
  box-shadow: 0 0 0 3px rgba(0,115,170,.3);
}

/* 7) Stato DISABLED (se mai usato) */
.sm-form-group.sm-privacy-group input[type="checkbox"]:disabled + .sm-privacy-text::before {
  opacity: .6;
  cursor: not-allowed;
}

/* 8) Stato ERRORE già previsto dalla tua classe .error */
.sm-form-group.sm-privacy-group .sm-privacy-label.error .sm-privacy-text::before {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(217,48,37,0.1);
}

/* Stato ERRORE quando l'input richiesto non è spuntato */
.sm-form-group.sm-privacy-group .sm-privacy-label:has(> input[type="checkbox"]:invalid) .sm-privacy-text::before {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(217,48,37,0.1);
}

/* Messaggio testuale sotto la label quando invalid */
.sm-form-group.sm-privacy-group .sm-privacy-label:has(> input[type="checkbox"]:invalid) .sm-privacy-text::after {
  content: "Seleziona questa casella se intendi procedere" !important;
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #d93025;
}

/* Quando torna valido, nascondi il messaggio e ripristina il bordo */
.sm-form-group.sm-privacy-group .sm-privacy-label:has(> input[type="checkbox"]:valid) .sm-privacy-text::after {
  content: "";
  display: none;
}

/* Messaggio e bordo in stato INVALID senza usare :has() */
.sm-form-group.sm-privacy-group .sm-privacy-label input[type="checkbox"]:invalid + .sm-privacy-text::before {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(217,48,37,0.1);
}

/* Messaggio testuale in stato INVALID (sovrascrive eventuali content precedenti) */
.sm-form-group.sm-privacy-group .sm-privacy-label input[type="checkbox"]:invalid + .sm-privacy-text::after {
  content: "Seleziona questa casella se intendi procedere" !important;
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #d93025;
}

/* Quando torna valido, nascondi il messaggio */
.sm-form-group.sm-privacy-group .sm-privacy-label input[type="checkbox"]:valid + .sm-privacy-text::after {
  content: "";
  display: none;
}


/* Nascondi i messaggi finché non si tenta l’invio */
.sm-booking-form:not(.sm-show-errors) .sm-privacy-label .sm-privacy-text::after { content:""; display:none; }
/* Mostra solo quando è stato tentato l’invio ed è invalid */
.sm-booking-form.sm-show-errors .sm-privacy-label input[type="checkbox"]:invalid + .sm-privacy-text::after { 
  content:"Seleziona questa casella se intendi procedere";
  display:block; color:#d93025; margin-top:6px; font-size:12px; 
}

/* Nascondi i messaggi finché non si tenta l’invio */
.sm-booking-form:not(.sm-show-errors) .sm-privacy-label .sm-privacy-text::after { 
  content:""; display:none; 
}

/* Messaggio SOLO dopo tentativo invio ed è invalid */
.sm-booking-form.sm-show-errors .sm-privacy-label input[type="checkbox"]:invalid + .sm-privacy-text::after { 
  content:"Seleziona questa casella se intendi procedere";
  display:block; color:#d93025; margin-top:6px; font-size:12px; 
}

/* Bordo rosso SOLO dopo tentativo invio */
.sm-booking-form.sm-show-errors .sm-privacy-label input[type="checkbox"]:invalid + .sm-privacy-text::before {
  border-color:#d93025; box-shadow:0 0 0 2px rgba(217,48,37,.1);
}


/* 1) Rimetti visibili i checkbox nativi nel blocco privacy/CG */
.sm-form-group.sm-privacy-group input[type="checkbox"]{
  position: static !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  margin-right: 10px;
  margin-top: 2px;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: #0073aa; /* colore brand */
}

/* 2) Annulla i riquadri/icone disegnati sul testo (evita doppioni) */
.sm-form-group.sm-privacy-group .sm-privacy-text{
  padding-left: 0 !important;
  position: static !important;
}
.sm-form-group.sm-privacy-group .sm-privacy-text::before,
.sm-form-group.sm-privacy-group .sm-privacy-text::after{
  content: none !important;
  display: none !important;
}

/* 3) Se vuoi evidenziare l’errore con bordo rosso sul nativo */
.sm-form-group.sm-privacy-group .sm-privacy-label input[type="checkbox"]:invalid{
  outline: 2px solid rgba(217,48,37,.6);
  outline-offset: 2px;
}





