/* Waste Manager Booking - Frontend Styles */

.wmb-booking-form {
  max-width: 800px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.wmb-form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 20px;
}

.wmb-form-group {
  padding: 0 10px;
  margin-bottom: 15px;
}

.wmb-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.wmb-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.wmb-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.wmb-form-group input[type="text"],
.wmb-form-group input[type="tel"],
.wmb-form-group input[type="date"],
.wmb-form-group select,
.wmb-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.wmb-form-group input:focus,
.wmb-form-group select:focus,
.wmb-form-group textarea:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Radio and Checkbox Styles */
.wmb-radio-group {
  margin: 10px 0;
}

.wmb-radio-label,
.wmb-checkbox-label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: normal;
}

.wmb-radio-label input[type="radio"],
.wmb-checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 2px;
  width: auto;
}

.wmb-radio-text,
.wmb-checkbox-text {
  flex: 1;
}

.wmb-checkbox-text small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 2px;
}

.wmb-manage-access {
  margin-left: 20px;
  margin-top: 10px;
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid #0073aa;
  border-radius: 4px;
}

/* Size Guide Button */
.wmb-btn-link {
  background: none;
  border: none;
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  margin-top: 5px;
}

.wmb-btn-link:hover {
  color: #005177;
}

/* Price Section */
.wmb-price-section {
  background: #f8f9fa;
  border: 2px solid #0073aa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.wmb-price-display h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 18px;
}

.wmb-price-amount {
  font-size: 24px;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 5px;
}

.wmb-price-note {
  color: #666;
  font-size: 12px;
  font-style: italic;
}

/* Form Actions */
.wmb-form-actions {
  text-align: center;
  margin-top: 20px;
}

.wmb-btn-primary {
  background: #0073aa;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wmb-btn-primary:hover:not(:disabled) {
  background: #005177;
}

.wmb-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Modal Styles */
.wmb-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.wmb-modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.wmb-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.wmb-modal-header h3 {
  margin: 0;
  color: #333;
}

.wmb-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wmb-modal-close:hover {
  color: #333;
}

.wmb-modal-body {
  padding: 20px;
}

/* Size Guide Content */
.wmb-size-guide-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.wmb-size-guide-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.wmb-size-guide-item h4 {
  margin: 0 0 10px;
  color: #0073aa;
}

.wmb-size-guide-item p {
  margin: 5px 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wmb-col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .wmb-booking-form {
    padding: 15px;
  }

  .wmb-form-row {
    margin: 0 -5px 15px;
  }

  .wmb-form-group {
    padding: 0 5px;
  }

  .wmb-modal-content {
    width: 95%;
    margin: 20px;
  }
}

/* Loading States */
.wmb-loading {
  opacity: 0.6;
  pointer-events: none;
}

.wmb-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top: 2px solid #0073aa;
  animation: wmb-spin 1s linear infinite;
}

@keyframes wmb-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error States */
.wmb-error {
  color: #d63638;
  font-size: 13px;
  margin-top: 5px;
}

.wmb-form-group.has-error input,
.wmb-form-group.has-error select,
.wmb-form-group.has-error textarea {
  border-color: #d63638;
}

/* Success States */
.wmb-success {
  color: #00a32a;
  font-size: 13px;
  margin-top: 5px;
}
