/* Appointment Booking Plugin Styles */
.appointment-booking-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.appointment-booking-form {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

@media (max-width: 768px) {
  .appointment-booking-form {
    padding: 1.5rem;
  }
}

.appointment-form-title {
  text-align: center;
  color: #1f2937;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .appointment-form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.appointment-form-messages {
  margin-bottom: 1.5rem;
}

.success-message,
.error-message {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.success-message.show,
.error-message.show {
  display: block !important;
}

.success-message {
  background-color: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: #059669;
}

.error-message {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1f2937;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-label .required {
  color: #dc2626;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.2s ease-in-out;
  background-color: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
}

.appointment-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-height: 2.75rem;
  background-color: #2563eb;
  color: #ffffff;
  width: 100%;
}

.appointment-submit-btn:hover:not(:disabled) {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.appointment-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.appointment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.appointment-submit-btn .btn-text {
  display: inline;
}

.appointment-submit-btn .btn-loading {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.appointment-submit-btn.loading .btn-text {
  display: none;
}

.appointment-submit-btn.loading .btn-loading {
  display: flex;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}

.spinner .path {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.field-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

@media (max-width: 640px) {
  .appointment-booking-form-wrapper {
    padding: 1rem 0.5rem;
  }
  
  .appointment-booking-form {
    padding: 1rem;
  }
  
  .form-row {
    gap: 0.5rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
  }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@media print {
  .appointment-booking-form-wrapper {
    max-width: none;
    padding: 0;
  }
  
  .appointment-booking-form {
    box-shadow: none;
    border: 1px solid #d1d5db;
  }
  
  .appointment-submit-btn {
    display: none;
  }
}

.ab-booking-step {
  display: none;
}
.ab-booking-step.ab-step-active {
  display: block;
} 