/* Sweden Appointment Booking - sab.css v1.1.5 */

.sab-hidden { display: none !important; }

.sab-wrap{
  max-width: 100%;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.sab-head h3{
  margin: 0 0 6px 0;
  font-size: 22px;
}

.sab-sub{
  margin: 0 0 12px 0;
  color: #4b5563;
  font-size: 14px;
}

.sab-controls{
  display:flex;
  gap: 10px;
  align-items:flex-end;
  flex-wrap: wrap;
  margin: 12px 0;
}

.sab-controls label{
  display:flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #111827;
}

.sab-controls input[type="date"]{
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.sab-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #111827;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  cursor:pointer;
  font-weight: 600;
  font-size: 14px;
}

.sab-btn:hover{ opacity: .92; }

.sab-secondary{
  background:#fff;
  color:#111827;
}

.sab-slots{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 640px){
  .sab-slots{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sab-slot{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.sab-slot strong{
  font-size: 18px;
  display:block;
  margin-bottom: 4px;
}

.sab-slot .meta{
  font-size: 13px;
  color:#4b5563;
  margin-bottom: 10px;
}

.sab-form{
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}

.sab-form h4{
  margin: 0 0 10px 0;
}

.sab-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px){
  .sab-grid{ grid-template-columns: 1fr; }
}

.sab-grid label{
  display:flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color:#111827;
}

.sab-grid input{
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: none;
}

.sab-grid input:focus{
  border-color:#111827;
}

.sab-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.sab-msg{
  margin-top: 10px;
  font-size: 14px;
  color:#111827;
}

.sab-msg.err{ color:#b91c1c; }

.sab-err{
  color:#b91c1c;
  font-size: 12px;
  min-height: 16px;
}

.sab-input-err{
  border: 1px solid #dc2626 !important;
}

/* Thank you container */
.sab-thankyou{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  background: #f9fafb;
}

.sab-thanks-title{
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}

.sab-thanks-meta{
  color:#374151;
  margin-bottom: 12px;
  font-size: 14px;
}

/* ✅ Location block */
.sab-location{
  margin: 10px 0 14px 0;
}

.sab-location-title{
  font-weight: 800;
  margin-bottom: 4px;
}

.sab-location-addr{
  color:#111827;
  margin-bottom: 6px;
}

.sab-location-link{
  display:inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  text-decoration: none;
}

.sab-location-link:hover{
  text-decoration: underline;
}

.sab-map iframe{
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* ✅ Calendar UI card (like your screenshot) */
.sab-cal-card{
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f3f4f6;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sab-cal-item{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 14px;
  text-decoration:none;
  color:#111827;
  font-weight: 700;
  background:#fff;
  border: 1px solid rgba(229,231,235,.8);
  font-size: 14px;
}

.sab-cal-item + .sab-cal-item{ margin-top: 0px; }

.sab-cal-item:hover{
  background:#f9fafb;
}

.sab-cal-btn{
  width:100%;
  border:none;
  cursor:pointer;
  text-align:left;
}
#sab-ics-btn {
    display: flex;
    background: #fff;
    border: none;
    color: #000;
    font-weight: 700;
    width: 100%;
    border-radius: 10px;
}

.sab-cal-ico{
  width: 36px;
  height: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
}
