.sd-afc-form {
max-width: 560px;
margin: 1rem 0;
}
.sd-afc-multi-booking-form {
max-width: 600px;
margin: 1rem 0;
}
.sd-afc-form .sd-afc-field {
margin-bottom: 1rem;
} .sd-afc-form .sd-afc-field[data-step="2"],
.sd-afc-form .sd-afc-field[data-step="3"],
.sd-afc-form .sd-afc-field[data-step="4"],
.sd-afc-form .sd-afc-privacy[data-step="4"],
.sd-afc-form .sd-afc-actions[data-step="4"] {
display: none;
}
.sd-afc-form.sd-afc-has-pratica .sd-afc-field[data-step="2"] {
display: block;
}
.sd-afc-form.sd-afc-has-operatore .sd-afc-field[data-step="3"] {
display: block;
}
.sd-afc-form.sd-afc-has-slot .sd-afc-field[data-step="4"],
.sd-afc-form.sd-afc-has-slot .sd-afc-privacy[data-step="4"],
.sd-afc-form.sd-afc-has-slot .sd-afc-actions[data-step="4"] {
display: block;
}
.sd-afc-form label {
display: block;
margin-bottom: 0.35rem;
font-weight: 600;
}
.sd-afc-form .sd-afc-field-hint {
margin: 0.35rem 0 0;
font-size: 0.875em;
color: #666;
font-weight: 400;
line-height: 1.4;
}
.sd-afc-form .required {
color: #c00;
}
.sd-afc-form input[type="text"],
.sd-afc-form input[type="email"],
.sd-afc-form select {
width: 100%;
max-width: 100%;
padding: 0.5rem 0.75rem;
border: 1px solid #8c8f94;
border-radius: 4px;
font-size: 1rem;
}
.sd-afc-privacy {
margin-bottom: 1rem;
}
.sd-afc-privacy-label {
display: flex;
align-items: flex-start;
gap: 0.5rem;
cursor: pointer;
font-weight: 400;
}
.sd-afc-privacy-label input[type="checkbox"] {
margin-top: 0.25rem;
flex-shrink: 0;
}
.sd-afc-privacy-text a {
text-decoration: underline;
}
.sd-afc-form .sd-afc-submit {
padding: 0.6rem 1.5rem;
background: #2271b1;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}
.sd-afc-form .sd-afc-submit:hover {
background: #135e96;
}
.sd-afc-form .sd-afc-submit:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.sd-afc-messages {
margin-bottom: 1rem;
padding: 0.75rem;
border-radius: 4px;
}
.sd-afc-messages.sd-afc-success {
background: #d4edda;
color: #155724;
}
.sd-afc-messages.sd-afc-error {
background: #f8d7da;
color: #721c24;
}
.sd-afc-messages:empty {
display: none;
} .sd-afc-calendar-container {
background: #f9f9f9;
border: 1px solid #ddd;
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
}
.sd-afc-calendar-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
}
.sd-afc-calendar-prev,
.sd-afc-calendar-next {
width: 36px;
height: 36px;
border: 1px solid #8c8f94;
border-radius: 4px;
background: #fff;
cursor: pointer;
font-size: 1.25rem;
line-height: 1;
padding: 0;
transition: border-color 0.15s, background 0.15s;
}
.sd-afc-calendar-prev:hover:not(:disabled),
.sd-afc-calendar-next:hover:not(:disabled) {
border-color: #2271b1;
background: #f0f6fc;
}
.sd-afc-calendar-prev:disabled,
.sd-afc-calendar-next:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.sd-afc-calendar-title {
font-weight: 600;
font-size: 1.1rem;
}
.sd-afc-calendar-weekdays {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 4px;
margin-bottom: 4px;
text-align: center;
font-size: 0.75rem;
font-weight: 600;
color: #646970;
}
.sd-afc-calendar-grid {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 4px;
min-height: 180px;
}
.sd-afc-calendar-grid.sd-afc-cal-loading {
align-items: center;
justify-items: center;
}
.sd-afc-calendar-grid.sd-afc-cal-loading .sd-afc-slot-loading {
grid-column: 1 / -1;
}
.sd-afc-cal-day {
aspect-ratio: 1;
min-height: 36px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid transparent;
border-radius: 6px;
background: #fff;
font-size: 0.9rem;
cursor: pointer;
position: relative;
transition: border-color 0.15s, background 0.15s;
}
.sd-afc-cal-day.sd-afc-cal-other {
background: transparent;
cursor: default;
visibility: hidden;
}
.sd-afc-cal-day.sd-afc-cal-past {
color: #a7aaad;
background: #f0f0f1;
cursor: default;
}
.sd-afc-cal-day.sd-afc-cal-available:not(.sd-afc-cal-disabled):hover {
border-color: #2271b1;
background: #f0f6fc;
}
.sd-afc-cal-day.sd-afc-cal-selected {
border-color: #2271b1;
background: #2271b1;
color: #fff;
}
.sd-afc-cal-day.sd-afc-cal-disabled {
cursor: not-allowed;
opacity: 0.6;
}
.sd-afc-cal-badge {
position: absolute;
bottom: 2px;
right: 4px;
font-size: 0.65rem;
background: #2271b1;
color: #fff;
padding: 0 4px;
border-radius: 10px;
min-width: 16px;
text-align: center;
}
.sd-afc-cal-day.sd-afc-cal-selected .sd-afc-cal-badge {
background: rgba(255,255,255,0.9);
color: #2271b1;
} @media (max-width: 480px) {
.sd-afc-calendar-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.sd-afc-cal-day {
min-height: 32px;
}
}
.sd-afc-slot-picker .sd-afc-slot-slots {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 0.5rem;
min-height: 2rem;
}
.sd-afc-slot-picker .sd-afc-slot-btn {
padding: 0.5rem 1rem;
border: 1px solid #8c8f94;
border-radius: 4px;
background: #fff;
color: #1d2327;
cursor: pointer;
font-size: 0.95rem;
transition: border-color 0.15s, background 0.15s;
}
.sd-afc-slot-picker .sd-afc-slot-btn:hover {
border-color: #2271b1;
background: #f0f6fc;
color: #1d2327;
}
.sd-afc-slot-picker .sd-afc-slot-btn.sd-afc-slot-selected {
border-color: #2271b1;
background: #2271b1;
color: #fff;
}
.sd-afc-slot-picker .sd-afc-slot-loading,
.sd-afc-slot-picker .sd-afc-slot-empty,
.sd-afc-slot-picker .sd-afc-slot-error {
color: #646970;
font-size: 0.9rem;
} .sd-afc-file-wrap {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.sd-afc-file-wrap input[type="file"] {
width: 100%;
max-width: 100%;
}
.sd-afc-file-status {
font-size: 0.875em;
color: #646970;
}
.sd-afc-file-status.sd-afc-file-ok {
color: #00a32a;
}
.sd-afc-file-status.sd-afc-file-error {
color: #d63638;
}