/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'SF Pro Display', Arial, sans-serif;
  background: #f6f7f9;
  padding: 32px 18px;
  color: #222;
}

/* TITOLI */
h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

h3 {
  margin: 28px 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-top: -6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.card {
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

.page-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.business-header-card {
  width: 100%;
  margin-bottom: 28px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 18px;
}

.booking-header-card {
  width: 100%;
  margin-bottom: 28px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 20px;

  max-height: 110px;       /* ← limite assoluto */
}

.business-logo {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
}

.business-logo-full {
  max-height: 70px;        /* ← limite vero */
  max-width: 100%;
  object-fit: contain;
}


.business-logo-full {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}


.password-hint {
    display: block;
    margin-top: 6px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    position: relative;
}

.password-hint::before {
    content: "ℹ";
    position: absolute;
    left: 0;
    top: 0;
    color: #999;
    font-size: 13px;
}




/*-----------------------------------*/
/*              COOKIE               */
/*-----------------------------------*/

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    z-index: 9999;
}

.cookie-box {
    max-width: 1200px;
    margin: auto;
    padding: 14px 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.cookie-box a {
    color: #9dd1ff;
    text-decoration: underline;
}

.cookie-box button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
}

#cookie-banner {
    box-sizing: border-box;
}

.cookie-box p {
    margin: 0;
}


/*-----------------------------------*/
/*              FOOTER               */
/*-----------------------------------*/

.site-footer {
    margin: 40px auto 0;
    padding: 18px 20px;
    border-top: 1px solid #e5e5e5;
    background: transparent;
    font-size: 13px;
    color: #777;
    max-width: 520px;   /* come le card */
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    margin-left: 8px;
}

.footer-links a:hover {
    text-decoration: underline;
}

#cookie-banner {
    padding-bottom: env(safe-area-inset-bottom);
}


/*-----------------------------------*/
/*     SEZIONE LOGIN / REGISTER      */
/*-----------------------------------*/

.login-subtitle {
  text-align: center;
  margin-bottom: 22px;
  font-size: 14px;
  color: #666;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 15px;
    margin-bottom: 6px;
    display: block;
}

.form-group input:focus {
  border-color: #4a74f5;
  box-shadow: 0 0 0 3px rgba(74,116,245,0.15);
  outline: none;
  background: #fff;
}

form button[type="submit"] {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: #D8783D;
  color: #fff;
  border: none;
  cursor: pointer;
}

form button[type="submit"]:active {
  transform: scale(0.97);
}

/* Requisiti password */
.pw-rules {
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
}

.pw-rule {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
}

.pw-rule.ok {
    color: #2ecc71;
}

.pw-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

.pw-rule.ok .pw-icon {
    border-color: #2ecc71;
    background: #2ecc71;
}

/* password dimenticata */
.forgot-password {
  text-align: right;
  margin-top: -6px;
  margin-bottom: 16px;
}

.forgot-password a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  font-weight: 600;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.ok-box{
  background:#e9f6ef;
  color:#1f7a4d;
  border:1px solid rgba(31,122,77,.25);
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  text-align:center;
  margin-bottom:12px;
}

/* box errore */
.error-box {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 12px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 10px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.google-btn:hover {
  background: #f7f7f7;
}

.google-btn img {
    width: 18px;
    height: 18px;
}

/* ========================= */
/* CAMPI AGGIUNTIVI REGISTER */
/* ========================= */

.phone-row {
  display: flex;
  gap: 8px;
}

/* prefisso: stretto e stabile */
.phone-prefix {
  width: 72px;
  min-width: 72px;
  flex: 0 0 72px;
}

/* numero: prende tutto lo spazio restante */
.phone-number {
  flex: 1 1 auto;
  min-width: 0;
}

/* select sesso coerente con input */
.form-group select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  background: #fff;
}

/* focus select uguale agli input */
.form-group select:focus {
  border-color: #4a74f5;
  box-shadow: 0 0 0 3px rgba(74,116,245,0.15);
  outline: none;
}

/* placeholder data nascita */
input[name="birth_date"]::placeholder {
  color: #aaa;
}



/*-----------------------------------*/
/*        DASHBOARD UTENTE           */
/*-----------------------------------*/

.dashboard-panels {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 10px;
}

.dashboard-panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e2e6;
  padding: 16px 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* header panel */
.dashboard-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dashboard-panel .panel-title {
  font-size: 16px;
  font-weight: 600;
}

.dashboard-panel .panel-icon {
  font-size: 22px;
}

/* contenuto centrale */
.dashboard-panel .panel-body {
  font-size: 14px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.panel-row .label {
  font-weight: 500;
  color: #666;
}

.panel-row .value {
  font-weight: 600;
  text-align: right;
}

/* nota */
.panel-note {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

/* footer link */
.panel-footer-link {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #D8783D;
  align-self: flex-start;
}

.panel-footer-link:hover {
  text-decoration: underline;
}

/* panel appuntamenti */
.panel-appointments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-app-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #e2e2e6;
}

.panel-app-item .row-top,
.panel-app-item .row-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.panel-app-item .service {
  font-weight: 600;
}

.panel-app-item .status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.panel-app-item .status.upcoming {
  background: rgba(46, 204, 113, 0.12);
  color: #1b7e46;
}

.panel-app-item .status.past {
  background: rgba(127, 140, 141, 0.12);
  color: #555;
}

.panel-app-item .row-bottom .date {
  color: #555;
}

.panel-app-item .row-bottom .barber {
  color: #777;
}

.panel-empty-note {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* panel logout */
.logout-panel {
  border-color: #f0c2c2;
}

.logout-link {
  color: #b33030;
}

.logout-link:hover {
  text-decoration: underline;
}

.panel-primary-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 12px 16px;
    background: #D8783D;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.panel-primary-btn:hover {
    background: #C96735;
}

/*-----------------------------------*/
/*   DASHBOARD UTENTE — INFO ACCOUNT */
/*-----------------------------------*/

.page-header {
  max-width: 420px;          /* stessa larghezza delle card */
  margin: 0 auto 24px auto;  /* CENTRATO */
  text-align: center;
}

.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.page-subtitle {
  margin: 6px auto 0 auto;
  font-size: 14px;
  color: #666;
  max-width: 320px;          /* evita righe troppo lunghe */
}

.page-header::after {
  content: "";
  display: block;
  margin-top: 14px;
  height: 1px;
  background: #e5e5e5;
}

/* righe riepilogo dati */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  gap: 12px;
}

.info-row span {
  color: #666;
}

.info-row strong {
  font-weight: 600;
  color: #222;
}

/* pulsanti modifica */
.edit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 14px;

  border-radius: 12px;
  border: 1px solid #d3d3d3;
  background: #ffffff;

  font-weight: 600;
  font-size: 15px;
  color: #333;

  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.edit-btn:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
}

/* pannelli edit */
.edit-panel {
  display: none;
}

.edit-panel.open {
  display: block;
}

/* form */
.update-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

/* label */
.update-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;

  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* input */
.update-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d2d3d9;

  font-size: 15px;
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.update-form input:focus {
  border-color: #4a74f5;
  box-shadow: 0 0 0 3px rgba(74,116,245,0.15);
  outline: none;
  background: #ffffff;
}

/* bottone salva */
.update-form button {
  margin-top: 6px;
  align-self: flex-start;

  padding: 12px 22px;
  border-radius: 12px;
  border: none;

  background: #111827;
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  transition: opacity .15s, transform .1s;
}

.update-form button:hover {
  opacity: 0.9;
}

.update-form button:active {
  transform: scale(0.97);
}

.update-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* messaggi feedback */
.msg-box {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);

  padding: 12px 18px;
  border-radius: 10px;

  font-size: 15px;
  font-weight: 600;
  color: #fff;

  opacity: 0;
  transition: opacity .3s ease;
  z-index: 9999;
}

.msg-box.ok {
  background: #2ecc71;
}

.msg-box.err {
  background: #e74c3c;
}

/* nota google account */
.info-note {
  margin-top: 16px;
  padding: 12px;

  font-size: 14px;
  color: #555;

  background: #f6f7f9;
  border-radius: 10px;
}

/* zona pericolosa */
.danger-zone {
  border: 1px solid #f2c2c2;
  background: #fff5f5;
}

.danger-btn {
  background: #d9534f;
  color: #fff;

  border: none;
  padding: 14px;
  width: 100%;

  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;

  cursor: pointer;
  transition: background .15s;
}

.danger-btn:hover {
  background: #c9302c;
}

.danger-text {
  margin-top: 12px;
  font-size: 13px;
  color: #a94442;
}


/*-----------------------------------*/
/*  DASHBOARD UTENTE - APPUNTAMENTI  */
/*-----------------------------------*/

.no-future-note {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 22px;
}

/* CARD APPUNTAMENTO */

.row-left{
  display: flex;
  flex-direction: column;
}

.appointment-item {
    background: #f7f8fa;
    border: 1px solid #e2e2e6;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

/* Riga superiore: data e stato */
.appointment-item .row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
}

.booking-code-top{
  font-size: 12px;
  color: #777;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}



/* Riga inferiore: servizio e barbiere */
.appointment-item .row-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}

.appointment-item .service {
    font-weight: 600;
    color: #333;
}

.appointment-item .barber {
    color: #777;
    font-size: 13px;
}

.service-total {
    margin-top: 6px;
    font-size: 13px;
    color: #444;
}

/* Cestino */
.appointment-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.cancel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;

    padding: 6px 12px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition: background 0.2s, transform 0.15s;
}

.cancel-pill:hover {
    background: rgba(231, 76, 60, 0.25);
}

.cancel-pill:active {
    transform: scale(0.96);
}

.cancel-icon {
    font-size: 14px;
    line-height: 1;
}

.cancel-text {
    color: #e74c3c;
}

/* Stato */
.status {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.upcoming {
    background: rgba(46, 204, 113, 0.15);
    color: #1b7e46;
}

.status.past {
    background: rgba(127, 140, 141, 0.12);
    color: #555;
}

.service strong {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
}


/* Contenitore pulsanti: due bottoni affiancati */
.app-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Bottone base */
.app-btn {
    flex: 1; /* occupano stesso spazio */
    padding: 10px 12px;
    text-align: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    min-height: 44px;
    white-space: nowrap;
}

/* Bottoni dentro gli appuntamenti */
.app-actions .app-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    height: 40px;        /* altezza fissa uguale per tutti */
    padding: 0 12px;     /* niente padding verticale che sballa */

    margin-top: 0;       /* sovrascrive il button { margin-top: 28px } */
    width: auto;         /* sovrascrive il button { width: 100% } */

    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
}


/* Modifica */
.app-btn.edit {
    background: #D8783D;
    color: #fff;
}

.app-btn.edit:hover {
    background: #C96735;
}

/* Annulla */
.app-btn.cancel {
    background: #e74c3c;
    color: #fff;
}

.app-btn.cancel:hover {
    background: #c0392b;
}

/* Mobile: bottoni sempre affiancati */
@media (max-width: 480px) {
    .app-actions {
        flex-direction: row;
    }
}

.services-block {
    margin-top: 6px;
    font-size: 14px;
    color: #333;
}

.services-label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.services-list {
    line-height: 1.4;
}

.service-total {
    margin-top: 6px;
    font-size: 13px;
    color: #444;
}

.appointment-location {
    margin-top: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

/* ============================= */
/*   DASHBOARD – ADDRESS PREVIEW */
/* ============================= */

.panel-address-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-address-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #e2e2e6;
  font-size: 13px;
}

.panel-address-item .row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-address-item .address {
  color: #555;
  line-height: 1.3;
}

.address-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  color: #1b7e46;
}

.address-toggle {
  font-size: 12px;
  font-weight: 600;
  color: #D8783D;
  text-decoration: none;
}

.address-toggle:hover {
  text-decoration: underline;
}

/* ============================= */
/*       ACCOUNT ADDRESSES       */
/* ============================= */

.address-card {
  background: #f7f8fa;
  border: 1px solid #e2e2e6;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.address-label {
  font-weight: 600;
  font-size: 15px;
}

.address-delete {
  color: #b33030;
  text-decoration: none;
  font-size: 16px;
}

.address-body {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.address-note {
  margin-top: 8px;
  font-size: 13px;
  color: #777;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

/* form */

.form-row {
  display: flex;
  gap: 10px;
}

.form-row > label {
  flex: 1;
}

/* textarea coerente con input */
textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #d3d4da;
  font-size: 15px;
  margin-top: 8px;
  resize: vertical;
}

/* bottone posizione */
.location-btn {
  margin-top: 6px;
  background: #f1f1f1;
  border-color: #d0d0d0;
  color: #333;
}

.location-btn:hover {
  background: #e6e6e6;
}

.address-default-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  color: #1b7e46;
}

.address-set-default {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #D8783D;
  font-weight: 600;
  text-decoration: none;
}

.address-set-default:hover {
  text-decoration: underline;
}

/*     ADD ADDRESS TOGGLE        */

.add-address-toggle {
  cursor: pointer;
  border: 2px dashed #d6d7da;
  background: #fafafa;
}

.add-address-content {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 20px;
}

.add-address-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #D8783D;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-address-text {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* FORM NASCOSTO */
.add-address-form {
  display: none;
}

.add-address-form.open {
  display: block;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* bottone annulla */
.cancel-add {
  background: #7a0a0a;
  border-color: #d0d0d0;
  color: #ffffff;
  margin-top: 10px;
}

.cancel-add:hover {
  background: #380000;
}

.address-separator {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
}

.address-separator span {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.address-empty-note {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;

    background: #f7f8fa;
    border: 1px dashed #d6d7da;
    border-radius: 14px;

    font-size: 14px;
    color: #555;
}

.address-empty-note strong {
    font-weight: 600;
    color: #333;
}


/*-----------------------------------*/
/*        PRIMO STEP BOOKING         */
/*-----------------------------------*/

.booking-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

/* FORM */
form {
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  max-width: 520px;
  margin: auto;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

.business-name {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.account-link {
    text-decoration: none;
}

.account-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #D8783D;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.account-circle:hover {
    background: #C96735;
}

/* Riga dedicata al tondino account */
.top-account-row {
    position: relative;
    height: 60px;
    margin-bottom: 10px;
}

.top-account-row .account-circle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.choose-barber-cta{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;

  display: none;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;

  background: #ffffff;
  color: #333;

  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  cursor: pointer;
  width: auto;
  max-width: max-content;
  display: inline-flex;

  appearance: none;
  -webkit-appearance: none;

  margin: 0;
}

.choose-barber-cta:active{
  transform: translateX(-50%) scale(.96);
}

.choose-barber-cta .cta-arrow{
  font-size: 16px;
  line-height: 1;
  opacity: .7;
  display: inline-block;   /* fondamentale per trasform */
  animation: ctaBounce 1.4s ease-in-out infinite;
  will-change: transform;
}

.choose-barber-cta .cta-text{
  white-space: nowrap;
}

.service-gender-info {
    margin: 20px auto 10px auto;
    max-width: 420px;
    font-size: 13px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.service-gender-info a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: #111;
    text-decoration: underline;
}

@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.choose-barber-cta .cta-arrow{
  animation: ctaBounce 1.4s ease-in-out infinite;
}


@media (min-width: 769px){
  .choose-barber-cta{
    display: none !important;
  }
}


/*-----------------------------------*/
/*         SEZIONE SERVIZI           */
/*-----------------------------------*/

.service-card {
  position: relative;
  margin-bottom: 16px;
}

/* Nascondo checkbox */
.service-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Card cliccabile */
.service-card label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e5e9;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

/* Icona */
.service-card label .icon {
  width: 42px;
  height: 42px;
  background: #f1f2f4;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card label .icon img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

/* Testo */
.service-card label .info {
  display: flex;
  flex-direction: column;
}

.service-card label .info .name {
  font-size: 16px;
  font-weight: 600;
}

.service-card label .info .duration {
  font-size: 13px;
  color: #666;
}

/* Descrizione servizio (step 1) */
.service-card label .info .desc {
  font-size: 13px;
  color: #777;
  line-height: 1.35;
  margin-top: 2px;
  max-width: 100%;
}

.service-card input[type="checkbox"]:checked + label .duration {
    color: #e8e8ff;
}

.service-card input[type="checkbox"]:checked + label .desc {
    color: rgba(255,255,255,0.85);
}


/* Stato selezionato */
.service-card input[type="checkbox"]:checked + label {
  background: #4a74f5;
  border-color: #4a74f5;
  color: #fff;
}

.service-card input[type="checkbox"]:checked + label {
    background: var(--service-color);
    border-color: var(--service-color);
    color: #fff;
}

.service-card input[type="checkbox"]:checked + label .icon {
    background: rgba(255,255,255,0.22);
}

.service-card input[type="checkbox"]:checked + label .duration {
    color: #e8e8ff;
}

.service-card input[type="checkbox"]:checked + label .price {
    color: #fff;
}


/* PREZZO SERVIZIO STEP 1 */

.service-card label {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ecco la magia */
  gap: 16px;
}

/* Spazio info a sinistra e prezzo a destra */
.service-card .info {
  flex: 1;
}

/* Prezzo */
.service-card .price {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

/* Se il servizio è selezionato */
.service-card input[type="checkbox"]:checked + label .price {
  color: #fff; /* per contrasto */
}

/*-----------------------------------*/
/*         SEZIONE BARBIERI          */
/*-----------------------------------*/

/* Container barbieri */
#barber_selector {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Card barbiere */
.avatar{
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar .shuffle-icon{
  display: block;
  max-width: 60%;
  max-height: 60%;
}


.barber-card {
  text-align: center;
  cursor: pointer;
  width: 90px;
}

.barber-card .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e0e0e0;
  transition: 0.25s;
}

.barber-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barber-card .name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* Stato selezionato */
.barber-card.selected .avatar {
  border-color: #4a74f5;
  box-shadow: 0 0 0 4px rgba(74,116,245,0.25);
}

.barber-card.selected .name {
  color: #4a74f5;
}

.barber-placeholder {
  font-size: 14px;
  color: #777;
  margin-top: 6px;
}

.shuffle-icon {
  width: 80px;
  height: 80px;
  color: #C96735;
}

.barber-card:hover .shuffle-icon {
  color: #e07b45;
}



/*-----------------------------------*/
/*      ADDRESS STEP BOOKING         */
/*-----------------------------------*/

/* pagina */
.booking-address-page {
  padding: 20px 16px;
}

/* wrapper: stesso respiro delle altre pagine */
.booking-address-page .summary-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

/* card principale */
.address-step-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

/* lista indirizzi */
.address-select-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

/* card indirizzo */
.address-select-card {
  display: block;
  cursor: pointer;
}

/* radio nascosto */
.address-select-card input[type="radio"] {
  display: none;
}

/* contenuto indirizzo */
.address-select-content {
  border: 1px solid #e3e3e8;
  border-radius: 14px;
  padding: 16px 18px;
  transition: 0.2s;
}

/* header */
.address-select-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.address-label {
  font-size: 15px;
  font-weight: 600;
}

/* badge predefinito */
.address-default-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46,204,113,0.15);
  color: #1b7e46;
  margin-left: auto;
}

/* corpo indirizzo */
.address-select-body {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* hover */
.address-select-card:hover .address-select-content {
  background: #f6f7f9;
}

/* selezionato */
.address-select-card input[type="radio"]:checked
+ .address-select-content {
  border-color: #D8783D;
  background: rgba(216,120,61,0.08);
}

/* footer gestione indirizzi */
.address-step-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  text-align: center;
}

.address-manage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 16px;
  border-radius: 999px;

  background: rgba(216,120,61,0.12);
  color: #D8783D;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.address-manage-link:hover {
  background: rgba(216,120,61,0.18);
}


/*-----------------------------------*/
/*    SEZIONE SCELTA DATA E ORA      */
/*-----------------------------------*/

/* Riepilogo in alto */
.summary-top {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 18px;
  padding: 20px 24px;
  max-width: 520px;
  margin: 0 auto 25px auto;
  display: flex;
  gap: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

/* Barber mini card */
.barber-mini-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.barber-mini-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.barber-mini-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barber-mini-card .title {
  font-size: 13px;
  color: #777;
}

.barber-mini-card .value {
  font-size: 16px;
  font-weight: 600;
}

.barber-mini-card .avatar .shuffle-icon{
  width: 26px;
  height: 26px;
}


/* Servizi mini lista */
.services-mini-list {
  flex: 1;
}

.services-mini-list .title {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.services-mini-list ul {
  padding-left: 18px;
  margin-bottom: 4px;
}

.services-mini-list li {
  font-size: 14px;
  margin-bottom: 2px;
}

.services-mini-list .duration {
  font-size: 14px;
  margin-top: 6px;
}

.center {
  text-align: center;
}

/* Contenitore badge servizi */
.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px 0;
}

/* Badge individuale */
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f7;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  font-size: 13px;
  transition: 0.2s;
}

/* Nome del servizio */
.service-badge .service-name {
  font-weight: 600;
  color: #333;
}

/* Durata */
.service-badge .service-time {
  font-size: 12px;
  color: #666;
}

/* Hover leggero */
.service-badge:hover {
  background: #e9ebef;
  border-color: #d0d0d0;
}

/* Calendario semplice */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 520px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: 14px;
}

.calendar-day {
  padding: 12px;
  border-radius: 10px;
  background: #f7f7f8;
  cursor: pointer;
  border: 1px solid #e1e1e1;
}

.calendar-day:hover {
  background: #e9e9ec;
}

.calendar-day.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.calendar-day.selected {
  background: #4a74f5;
  color: #fff;
  border-color: #4a74f5;
}

/* Header calendario moderno */
.calendar-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;   /* <— rende allineati verticalmente mese e frecce */
  padding: 0 4px;
  margin-bottom: 14px;
  height: 40px;          /* <— garantisce che tutto stia sulla stessa riga */
}

/* Etichetta del mese */
.month-label {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

/* Contenitore pulsanti */
.nav-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 35px;
}

/* Pulsanti tondi */
.nav-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: #D8783D;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  color: #ffffff;
}

.nav-dot:hover {
  background: #C96735;
  border-color: #c9c9c9;
}

.nav-dot:active {
  transform: scale(0.92);
}

/* Riga giorni della settimana */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  max-width: 520px;
  margin: 0 auto 10px auto;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.calendar-weekdays div {
  padding: 6px 0;
  opacity: 0.9;
}

/* Contenitore orari */
#time_slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

/* Bottone orario */
.time-slot-btn {
  background: #f3f4f7;
  border: 1px solid #d7d7db;
  padding: 12px 0;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

/* Hover */
.time-slot-btn:hover {
  background: #e6e7ea;
}

/* Selezionato */
.time-slot-btn.selected {
  background: #4a74f5;
  color: #fff;
  border-color: #4a74f5;
}

.calendar-day.checking {
    pointer-events: none;
    opacity: 0.7;
}

.compare-link{
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  text-align: center;
  outline: none;
}

.compare-link:focus{
  outline: none;
}


.compare-link::before{
  content: "ⓘ ";
  font-size: 13px;
}

.compare-link:hover{
  color: #000;
}

.compare-action{
  color: #000;
  font-weight: 500;
  text-decoration: underline;
}

.compare-link:hover .compare-action{
  text-decoration: none;
  opacity: .85;
}

.compare-link:focus-visible{
  box-shadow: 0 0 0 2px rgba(0,0,0,.15);
  border-radius: 6px;
}

.modal-barbers{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-barber-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.modal-barber-card:hover{
  background: #f7f7f7;
  border-color: #ddd;
}


.modal-barber-card img{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.modal-avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f0f0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-avatar img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


.modal-barber-card div{
  font-size: 14px;
  color: #222;
}

@media (max-width: 768px){

  .modal-barber-card{
    padding: 12px 14px;
    gap: 14px;
  }

  .modal-barber-card img{
    width: 46px;
    height: 46px;
  }

  .modal-barber-card div{
    font-size: 15px;
  }

  .compare-link{
    font-size: 14px;
    padding: 10px 12px;
  }

  .compare-action{
    font-weight: 600;
  }

  .barber-mini-card .avatar{
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-width: 1.5px;
  }

  .barber-mini-card .avatar .shuffle-icon{
    width: 22px;
    height: 22px;
    display: block;
  }

  .avatar .shuffle-icon{
    max-width: 55%;
    max-height: 55%;
  }
}


/*-----------------------------------*/
/*      RIEPILOGO APPUNTAMENTO       */
/*-----------------------------------*/

/* TIMER PROGRESS BAR */

.timer-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #6a5a39;
}

/* Riga con timer a destra */
.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timer-value {
    font-size: 28px;
    font-weight: bold;
    font-family: monospace;
    color: #6a5a39;
}

.timer-warning {
    color: #c0392b !important;
}

/* Barra */
.timer-progress {
    width: 100%;
    height: 8px;
    background: #e8e2c7;
    border-radius: 6px;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    width: 100%;
    background: #1b7e46;
    transition: width 1s linear, background-color 0.3s ease;
}

.timer-bar.warning {
    background: #c0392b !important;
}


/* WRAPPER PRINCIPALE */
.summary-wrapper {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* CARD */
.summary-card {
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.summary-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #707070;
  margin-bottom: 14px;
}

/* PROFESSIONISTA */
.barber-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.barber-summary .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ddd;
}

.barber-summary .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barber-summary .name {
  font-size: 17px;
  font-weight: 600;
}

/* SERVIZI */
.services-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.service-row .duration {
  color: #666;
}

/* --- RIEPILOGO SERVIZI STEP 3 --- */

.service-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid #e2e2e6;
  border-radius: 14px;
  margin-bottom: 12px;
}

.service-summary-card .icon {
  width: 42px;
  height: 42px;
  background: #eceef1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-summary-card .icon img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.service-summary-card .info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-summary-card .info .name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.service-summary-card .info .duration {
  font-size: 13px;
  color: #666;
}

.service-summary-card .price {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: #333;
}

/* totale prezzi */
.total-price {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: #000;
}

.total-price-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;

  background: rgba(46, 204, 113, 0.15); /* verde chiaro tenue */
  color: #1b7e46; /* verde scuro leggibile */

  margin-top: 12px;
  margin-left: auto; /* allinea a destra */
}

/* --- BLOCCHI DATA E ORARIO STEP 3 --- */

.datetime-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.date-box,
.time-box {
  background: #f7f8fa;
  border: 1px solid #e3e3e7;
  border-radius: 14px;
  padding: 14px 18px;
}

.date-box .label,
.time-box .label {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.date-box .value,
.time-box .value {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

/* freccina oraria */
.time-box .value {
  letter-spacing: 0.3px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}

.summary-row .label {
    color: #777;
}

.summary-row .value {
    font-weight: 600;
    color: #222;
}

.confirm-form {
    margin-top: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.confirm-form button {
    margin-top: 0;
}


/*-----------------------------------*/
/*          INPUT GENERICI           */
/*-----------------------------------*/

select,
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #d3d4da;
  background: #fff;
  font-size: 15px;
  transition: 0.25s;
  margin-top: 8px;
}

select:focus,
input:focus {
  border-color: #4a74f5;
  box-shadow: 0 0 0 3px rgba(74,116,245,0.18);
  outline: none;
}

/* BOTTONE */
button {
  width: 100%;
  padding: 15px;
  background: #D8783D;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 28px;
  transition: 0.2s;
}

button:hover {
  background: #C96735;
}

button:active {
  transform: scale(0.97);
}

.back-button-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: #D8783D;
  border: 1px solid #d6d7da;
  padding: 8px 14px;
  border-radius: 8px;

  font-size: 14px;
  color: #ffffff;
  font-weight: 500;

  cursor: pointer;

  width: auto; /* niente larghezza piena */
}

.back-button-small:hover {
  background: #C96735;
}

.back-button-small .arrow {
  font-size: 16px;
  line-height: 0;
}

.back-button-wrapper {
  text-align: center;
  margin-bottom: 20px;
}

/* MODALE GENERICA */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.modal-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

#modalBody{
  padding: 14px 16px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-loading{
  text-align:center;
  color:#666;
  padding: 18px 0;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

/* chiudi */
.modal-btn.modal-cancel {
    background: #e0e0e0;
    color: #333;
}

.modal-btn.modal-cancel:hover {
    background: #cbcbcb;
}

/* conferma */
.modal-btn.confirm {
    background: #e74c3c;
    color: #fff;
}

.modal-btn.confirm:hover {
    background: #c0392b;
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 12px;

  border: none;
  background: none;

  font-size: 20px;
  line-height: 1;

  color: #666;
  cursor: pointer;
  padding: 0;
}




/*-----------------------------------*/
/*          PAGINA DI CONFERMA       */
/*-----------------------------------*/

/* WRAPPER GENERALE */
.result-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid #e4e4e4;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

/* ICONA SUCCESSO / ERRORE */
.result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 42px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.result-icon.success {
  background: rgba(46, 204, 113, 0.15);
  border: 2px solid rgba(46, 204, 113, 0.25);
  color: #1b7e46;
}

.result-icon.error {
  background: rgba(231, 76, 60, 0.15);
  border: 2px solid rgba(231, 76, 60, 0.25);
  color: #a5332a;
}

/* TITOLI */
.result-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

/* TESTO */
.result-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* BOTTONI */
.result-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.success-btn {
  background: #4a74f5;
  color: #fff;
}

.success-btn:hover {
  background: #325dea;
}

.error-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
}

.error-btn:hover {
  background: #c0392b;
}

/* ===========================
      RESPONSIVE MOBILE
   =========================== */

@media (max-width: 600px) {

  body {
    padding: 20px 14px;
  }

  h2 {
    font-size: 22px;
    margin-bottom: 22px;
  }

  h3 {
    font-size: 17px;
    margin-top: 20px;
  }

  form {
    padding: 22px;
    border-radius: 16px;
  }

  .booking-header-card {
    padding: 18px 16px;
  }

  .business-logo {
    max-width: 90px;
    max-height: 50px;
  }

  .business-name {
    font-size: 16px;
  }

  .booking-header .business-name {
    font-size: 18px;
  }

  .service-card label {
    padding: 14px;
    gap: 12px;
  }

  .service-card label .info .name {
    font-size: 15px;
  }

  .service-card label .info .duration {
    font-size: 12px;
  }

  .service-card label .info .desc {
    font-size: 12px;
  }

  .service-card label .price {
    font-size: 15px;
  }

  /* Barbieri */
  #barber_selector {
    gap: 14px;
    justify-content: space-around;
  }

  .barber-card {
    width: 75px;
  }

  .barber-card .avatar {
    width: 75px;
    height: 75px;
  }

  .barber-card .name {
    font-size: 13px;
  }

  /* Cards riepilogo — corretto */
  .summary-card,
  .result-wrapper {
    padding: 20px;
    border-radius: 16px;
  }

  .summary-wrapper {
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }


  .barber-summary .avatar {
    width: 55px;
    height: 55px;
  }

  /* Calendario */
  .calendar-header {
    margin-bottom: 10px;
    padding: 0 4px;
  }

  #calendar {
    gap: 4px;
  }

  .calendar-day {
    padding: 10px 0;
    font-size: 13px;
  }

  /* Orari */
  #time_slots {
    gap: 10px;
  }

  .time-slot {
    width: 80px;
    height: 40px;
    font-size: 14px;
  }

  /* Pulsanti */
  button,
  .success-button,
  .result-button {
    padding: 13px;
    font-size: 15px;
  }

  /* Pulsante indietro */
  .back-button-small {
    padding: 7px 12px;
    font-size: 14px;
  }

  /* Totale prezzo */
  .total-price-pill {
    font-size: 14px;
    padding: 7px 14px;
  }

  .timer-box {
    width: 100% !important;
    padding: 15px 10px !important;
    margin-bottom: 15px;
  }

  .timer-progress {
  height: 16px !important;
  margin-top: 10px;
  }

  .timer-bar {
  height: 16px !important;
  }

  .timer-header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  }

  .timer-value {
  font-size: 20px !important;
  white-space: nowrap !important;
  }

  /*DASHBOARD CUSTOMER*/
  .dashboard-panels {
    padding: 0 4px;
  }

  .dashboard-panel {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .dashboard-panel .panel-title {
    font-size: 15px;
  }

}


