#wpms-calendar {
    margin-top: 20px;
    margin-bottom: 20px;
}

.slot {
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.slot.taken {
    background: #ccc;
    cursor: not-allowed;
}

.slot.free {
    background: #fff;
}

.ui-datepicker-today {
    padding: 5px;
    background: #DEA71D;
    border-radius: 4px;
}
.ui-datepicker-today a { background: #DEA71D !important; color: #222D5D !important; box-shadow: none !important; }
.ui-datepicker-today a.ui-state-active { color: #222D5D !important; }
a.ui-state-highlight {
    padding: 0;
}

.wpms-booking-wrapper {
    font-family: system-ui, sans-serif;
    max-width: 700px;
    margin: 0 auto 50px auto;
    background: #fff;
    padding: 30px;
    /*border-radius: 12px;*/
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.wpms-booking-wrapper h2 {
    font-size: 16px;
}

.wpms-calendar-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wpms-datepicker-block, .wpms-time-slots {
    background-color: #fff !important;
    padding: 10px;
    flex: 1;
}

input:focus, textarea:focus {
    border: 1px solid #222D5D;
    background-color: #fff !important;
}
.wpms-booking-wrapper a:focus-visible, .wpms-booking-wrapper button:focus-visible, .wpms-booking-wrapper input:focus-visible,
.wpms-booking-wrapper textarea:focus-visible,
.wpms-booking-wrapper select:focus-visible, .wpms-service-cards:focus-visible {
    outline: #222D5D dotted 2px !important;
    outline-offset: 3px;
}

.booking-success-message {
    border: 1px solid #222D5D;
    color: #222D5D;
    padding: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 4px;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 1.3em;
    line-height: normal;
}
.error {
    border: 1px solid #222D5D;
    color: #222D5D;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: 1.3em;
    line-height: normal;
}

#wpms-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, auto));
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 0;
}

button.slot {
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background-color: white;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    padding: 6px 12px;
    text-align: center;
    cursor: pointer;
    width: 60px;
    transition: all 0.2s ease;
}

button.slot:hover {
    border-color: #000;
}

button.slot.selected {
    background-color: #222D5D;
    color: white;
    border-color: #222D5D;
}

button.slot.taken {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wpms-form {
    margin-top: 30px;
}

.wpms-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wpms-form-row > div {
    flex: 1 1 50%;
    min-width: 250px;
}

.wpms-form-row input[type="text"],
.wpms-form-row input[type="email"], .wpms-form-row textarea  {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem 1em;
    font-size: 1rem;
    line-height: normal;
}
.wpms-form-row textarea { padding: 1em; }

.wpms-submit-btn {
    padding: 12px 24px;
    background: #1a237e;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.wpms-staff-list ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.wpms-staff-list li {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.wpms-business-cards {
    /*display: flex;
    flex-wrap: wrap;
    gap: 1rem;*/
    margin-bottom: 2rem;
  width: 100%;
}

.wpms-staff-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.wpms-select {
    width: 100%;
    padding: 12px 10px;
    font-size: 1rem;
    line-height: 1.4;
    height: auto;
    border: none;
    border-bottom: 2px solid #222D5D;
    background: #f5f5f5;
    border-radius: 4px;
    appearance: none;
    box-sizing: border-box;
    outline: none;
}

.wpms-select:focus {
    background-color: #f5f5f5;
    outline: none;
}

wpms-dropdown {
    position: relative;
    width: 100%;
    font-family: sans-serif;
}

.wpms-status {
    font-size: 13px;
    color: #666;
}

.wpms-service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.wpms-card {
    width: 300px;
    padding: 16px;
    background: #f7f7f7;
    border: 2px solid #e2e2e2;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.wpms-card:hover {
    /*transform: scale(1.03);*/
    border-color: #1d2b53;
}

.wpms-card h3 {
    margin: 0 0 8px;
    font-size: 1.2em;
}
.wpms-card p {
    font-family: 'Montserrat', Helvativa, Arial, sans-serif;
    margin: 0 0 8px;
    font-size: 1em;
}
.wpms-card-footer {
    font-family: 'Montserrat', Helvativa, Arial, sans-serif;
}

.wpms-card.selected {
    border: 2px solid #333;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.wpms-card-footer {
    margin-top: 10px;
    font-weight: bold;
    color: #222;
}

.wpms-timezone-wrapper {
    display: flex;
    align-items: center; /* centra verticalmente tutto */
    gap: 12px;
    margin-top: 1rem;
    font-size: 14px;
    color: #333;
}

.wpms-timezone-label {
    color: #000;
    font-size: 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#timezone-select {
    font-size: 14px;
    padding: 6px 12px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 280px;
    height: 38px;
    line-height: 1.2;
}

/* Andrea */
.visore-interno .sottotitolo {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    font-size: calc(18px + 0.8vw);
    font-weight: 400;
    text-align: center;
    color: #ffffff;
}
.titleh3 {
    font-family: 'Prata', Helvetica, Arial, serif;
    text-align: center;
}
.wpms-datepicker-block label, .wpms-time-slots label, .ui-datepicker-inline, #wpms-slots,  #wpms-slots button,
.wpms-timezone-label, .wpms-timezone-wrapper select, .campi-necessari, .privacy label, .wpms-submit-btn {
    margin-bottom: 1em;
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}
.wpms-staff-selector{
    margin-bottom: 2em;
}
.wpms-staff-selector label, .wpms-staff-selector select {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}
.prenotazione-dett { margin-bottom: 20px; margin-top: 30px;}
.wpms-submit-btn { margin-top: 15px; margin-bottom: 15px; }
.wpms-booking-form { margin-bottom: 50px; }
/*
.wpms-form-row input {
    padding: 0.5rem 1em;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    line-height: normal;
}
*/
@media (max-width: 768px) {
    .wpms-calendar-container {
        flex-direction: column;
    }

    .wpms-datepicker-block,
    .wpms-time-slots {
        width: 100%;
    }
}