/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Disorder Booking - Frontend Styles */

.disorder-booking-form-wrapper {
  /* max-width: 600px; */
  /* padding: 40px 20px; */
  margin: 0 auto;
}

.booking-form-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 30px;
  font-weight: 600;
}

.booking-form-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.disorder-booking-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
}

/* Steps - Progressive Reveal */
.booking-step {
  animation: fadeIn 0.4s ease;
  margin-bottom: 30px;
  padding: 10px 0px;
  background: white;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0s;
}

.booking-step.completed {
  opacity: 0.7;
  background: #f5f5f5;
  border-color: #e0e0e0;
}

.booking-step.completed .step-header h3 {
  color: #999;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  flex-direction: row;
  gap: 10px;
}

.step-header h3 {
  font-size: 1.2em;
  margin: 0;
  color: #333;
}

.btn-step-back {
  background: transparent;
  border: 2px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.btn-step-back:hover {
  background: #fff;
  border-color: #fb6f56;
  color: #333;
  transform: translateX(-3px);
}

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

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #b7b4b4;
  border-radius: 120px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fb6f56;
  box-shadow: 0 0 0 3px rgba(201, 221, 71, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

/* Modern Date Input Styling */
.form-group input[type="date"] {
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 45px;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
}

/* Calendar Popup Styling */
input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

/* Form Row (2 columns) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

/* Time Slots - Modern Rounded Design */
.time-slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 20px;
  min-height: 100px;
}

.time-slot-btn {
  /* padding: 14px 18px; */
  border: 2px solid #e8e8e8;
  /* background: #fafafa; */
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.time-slot-btn::before {
 content: '';
 position: absolute;
 top: 50%;
 left: 50%;
 width: 0;
 height: 0;
 border-radius: 50%;
 /* background: rgba(201, 221, 71, 0.1); */
 transform: translate(-50%, -50%);
 transition: width 0.4s, height 0.4s;
}

.time-slot-btn:hover::before {
  width: 200%;
  height: 200%;
}

.time-slot-btn:hover {
  border-color: #fb6f56;
  background: #f9fdf0;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(201, 221, 71, 0.15);
}

.time-slot-btn.selected {
  border-color: #fb6f56;
  color: #1a1a1a;
  font-weight: 700;
  /* transform: scale(1.05); */
}

.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  color: #666;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #fb6f56;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.no-times-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: #666;
  font-style: italic;
  background: #fafafa;
  border-radius: 12px;
}

/* Select Dropdown - Modern Style */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 45px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Checkbox Group - Modern */
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 15px;
  background: #fafafa;
  border-radius: 12px;
  transition: background 0.3s;
}

.checkbox-group label:hover {
  background: #f0f0f0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  min-width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #fb6f56;
  border-radius: 4px;
}

.checkbox-group span {
  font-size: 11px;
  line-height: 1.5;
  color: #666;
}

/* Submit Button - Modern Rounded */
.form-actions {
  margin-top: 30px;
  text-align: center;
}

.btn-submit {
  background: linear-gradient(135deg, #C9DD47 0%, #b5c73d 100%);
  color: #1a1a1a;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(201, 221, 71, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb6f56 0%, #e95a40 100%);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(201, 221, 71, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-submit:disabled {
  background: linear-gradient(135deg, #ddd 0%, #ccc 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success Message - Modern */
.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  display: inline-block;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #C9DD47 0%, #b5c73d 100%);
  color: #1a1a1a;
  border-radius: 50%;
  font-size: 36px;
  line-height: 70px;
  margin-bottom: 20px;
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 30px rgba(201, 221, 71, 0.3);
}

@keyframes successPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.success-message h3 {
  color: #2c5f2d;
  margin-bottom: 10px;
  font-size: 24px;
}

.success-message p {
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

/* Error Message - Modern */
.booking-error {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  color: #721c24;
  padding: 18px 20px;
  border-radius: 12px;
  margin-top: 20px;
  border-left: 4px solid #d63638;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(214, 54, 56, 0.1);
}

/* Dark Style Variant */
.disorder-booking-form-wrapper[data-style="dark"] .disorder-booking-form {
  background: #2c2c2c;
  color: #fff;
}

.disorder-booking-form-wrapper[data-style="dark"] .form-group input,
.disorder-booking-form-wrapper[data-style="dark"] .form-group select {
  background: #3a3a3a;
  border-color: #555;
  color: #fff;
}

.disorder-booking-form-wrapper[data-style="dark"] .time-slot-btn {
  background: #3a3a3a;
  border-color: #555;
  color: #fff;
}

.disorder-booking-form-wrapper[data-style="dark"] .time-slot-btn:hover {
  background: #4a4a4a;
}

/* Responsive */
@media (max-width: 600px) {
  .disorder-booking-form {
    padding: 20px;
  }
  
  .time-slots-container {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
  }
  
  .time-slot-btn {
    /* padding: 12px 10px; */
    font-size: 14px;
    border-radius: 14px;
  }
  
  .btn-submit {
    padding: 14px 40px;
    font-size: 15px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}


.db-date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #B7B4B4;
  border-radius: 9999px;
  /* padding: 10px 44px 10px 16px; */
  background: #fff;
}

.db-date-input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 15px;
  color: #333;
  background: transparent;
}

.db-date-btn {
  position: absolute;
  right: 10px;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
}

.db-date-btn:hover { background: #f2f3f5; }

.db-calendar-panel {
  margin-top: 10px;
  /* border: 1px solid #eef0f3; */
  border-radius: 12px;
  overflow: hidden;
  /* background: #fff; */
  /* box-shadow: 0 6px 18px rgba(0,0,0,.06); */
}

/* optional: invalid field highlight */
.is-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.08); }

/* Step Back Buttons με Dashicons */
.btn-step-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-step-back .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.btn-step-back:hover .dashicons {
  /* color: #C9DD47; */
}

button.btn-step-back {
    background-color:#201f1f;
    border-radius:120px;
    color:white;
    border-color:#201f1f;
    display:flex;
    gap: 5px;
    align-items: center;
    flex-direction: row;
    /* margin-inline: auto; */
}

button.btn-step-back:hover,
button.btn-step-back:focus{
    background-color:white;
    color:#201f1f;
    border-color:#201f1f;
}

.step-header{
    text-align:center;
}

.step-header > h3{
    color:#fb6f56;
}

#time-slots-container {
    display:flex;
    flex-direction: row;
    gap: 0.5em;
    flex-wrap:wrap;
    margin-top:10px;
    justify-content: center;
}


#time-slots-container button{
    border-radius:120px;
    width: 30%;
    font-size: 0.8em;
     max-height: 60px; 
    padding: 0.8em 0.5em;
}

#time-slots-container button:hover{
    border-color: rgba(251, 111, 86, 0.5);
    background-color: #fb6f56;
    color: white;
}

#time-slots-container button.selected{
    background: #fb6f56;
    color:white;
    border-color: #fb6f56;
}

@media(max-width:450px){
    #time-slots-container button{
        width: 45%;
        font-size: 1em;
    }
}

.booking-step .form-actions button.btn-submit{
  background: white!important;
  box-shadow: none;
  font-weight:400;
  color:#201f1f!important;
  border:1px solid #201f1f;
}


.booking-step .form-actions button.btn-submit:hover{
    color:white!important;
    border:1px solid #fb6f56;
}