/* Public styles for WordPress Booking Plugin */
/* Higher specificity to override theme styles */

/* 6-Step Progress Indicator */
.wpbp-step-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 5px;
  position: relative;
  overflow-x: auto;
  min-height: 80px;
}

.wpbp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 80px;
  max-width: 100px;
  margin: 0 2px;
}

.wpbp-step .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.wpbp-step.active .step-number {
  background: #0073aa;
  color: white;
  border-color: #005a87;
}

.wpbp-step .step-title {
  font-size: 11px;
  text-align: center;
  color: #666;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.wpbp-step.active .step-title {
  color: #0073aa;
  font-weight: 600;
}

/* Form Steps */
.wpbp-form-step {
  display: none;
}

.wpbp-form-step.active {
  display: block;
}

/* Step 1: Product Overview */
.wpbp-price-display {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}

.wpbp-price-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.wpbp-price-amount {
  font-size: 32px;
  font-weight: bold;
  color: #0073aa;
  display: block;
}

.wpbp-price-unit {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  display: block;
}

.wpbp-product-features {
  margin: 20px 0;
  padding: 20px;
  background: #f0f8ff;
  border-radius: 8px;
}

.wpbp-product-features h4 {
  margin-top: 0;
  color: #0073aa;
}

.wpbp-product-features ul {
  margin: 10px 0;
  padding-left: 20px;
}

.wpbp-product-features li {
  margin-bottom: 8px;
  color: #333;
}

/* Step 6: Final Summary */
.wpbp-final-booking-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.wpbp-summary-section {
  margin-bottom: 20px;
}

.wpbp-summary-section:last-child {
  margin-bottom: 0;
}

.wpbp-summary-section h4 {
  margin: 0 0 15px 0;
  color: #0073aa;
  font-size: 18px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.summary-content .summary-item,
.contact-summary .contact-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}

.summary-content .summary-item:last-child,
.contact-summary .contact-item:last-child {
  border-bottom: none;
}

.wpbp-final-total-section {
  background: #0073aa;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}

.wpbp-final-total-section .wpbp-final-total {
  font-size: 24px;
  margin: 0;
}

.wpbp-terms-section {
  margin: 20px 0;
  padding: 15px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
}

.wpbp-terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.wpbp-terms-checkbox input[type='checkbox'] {
  margin: 0;
  flex-shrink: 0;
}

/* Step Actions */
.wpbp-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.wpbp-step-actions .wpbp-btn {
  flex: 1;
  max-width: 210px;
}

.wpbp-step-actions .wpbp-btn:only-child {
  margin-left: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wpbp-step-progress {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 120px;
  }

  .wpbp-step {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 70px;
    max-width: 90px;
    margin: 5px 2px;
  }

  .wpbp-step .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .wpbp-step .step-title {
    font-size: 10px;
    line-height: 1.1;
  }

  .wpbp-step-actions {
    flex-direction: column;
  }

  .wpbp-step-actions .wpbp-btn {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .wpbp-step-progress {
    gap: 5px;
    padding: 0 2px;
  }

  .wpbp-step {
    min-width: 60px;
    max-width: 75px;
  }

  .wpbp-step .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .wpbp-step .step-title {
    font-size: 9px;
  }
}

body .wpbp-booking-form,
.wpbp-booking-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body .wpbp-booking-form h3,
.wpbp-booking-form h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
}

.wpbp-product-description {
  margin: 15px 0;
  color: #666;
  line-height: 1.6;
  font-size: 16px;
}

.wpbp-product-price {
  margin: 15px 0;
  font-size: 18px;
  color: #0073aa;
}

.wpbp-form-row {
  margin-bottom: 20px;
}

.wpbp-form-row label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.wpbp-required {
  color: #d63638;
  font-weight: bold;
}

.wpbp-form-row input,
.wpbp-form-row select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.wpbp-form-row input:focus,
.wpbp-form-row select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.wpbp-form-section {
  margin: 25px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.wpbp-form-section h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.wpbp-addon-item {
  margin-bottom: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wpbp-addon-item label {
  margin: 0;
  font-weight: normal;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.wpbp-addon-checkbox {
  width: 18px !important;
  height: 18px !important;
  margin-right: 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  accent-color: #0073aa !important;
  flex-shrink: 0 !important;
}

/* Also apply to any checkbox in addon items */
.wpbp-addon-item input[type='checkbox'] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  accent-color: #0073aa !important;
  flex-shrink: 0 !important;
}

.wpbp-addon-item input[type='number'] {
  width: 60px;
  margin-left: 10px;
}

.wpbp-payment-methods {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.wpbp-payment-methods label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin: 0;
}

.wpbp-payment-methods input[type='radio'] {
  width: auto;
  margin-right: 8px;
}

.wpbp-total-price {
  margin: 25px 0;
  padding: 15px;
  background: #e8f4f8;
  border: 1px solid #0073aa;
  border-radius: 4px;
  text-align: center;
  font-size: 20px;
  color: #0073aa;
}

.wpbp-form-actions {
  text-align: center;
  margin-top: 25px;
}

.wpbp-submit-booking {
  background: #0073aa;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wpbp-submit-booking:hover {
  background: #005a87;
}

.wpbp-submit-booking:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.wpbp-submit-booking.wpbp-booking-completed {
  background: #28a745 !important;
  color: white !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  border-color: #28a745 !important;
}

.wpbp-form-completed {
  pointer-events: none;
  opacity: 0.8;
}

.wpbp-form-completed .wpbp-booking-result {
  pointer-events: all;
  opacity: 1;
}

.wpbp-form-completed .wpbp-submit-booking.wpbp-booking-completed {
  pointer-events: all;
  opacity: 1;
}

.wpbp-booking-result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
}

.wpbp-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: wpbp-success-fade-in 0.5s ease-in;
  margin: 20px 0;
}

.wpbp-success h3 {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  font-size: 1.4em !important;
}

@keyframes wpbp-success-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wpbp-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .wpbp-booking-form {
    margin: 10px;
    padding: 15px;
  }

  .wpbp-payment-methods {
    flex-direction: column;
    gap: 10px;
  }

  .wpbp-addon-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wpbp-addon-item input[type='number'] {
    margin-left: 0;
    width: 80px;
  }
}

/* Enhanced Calendar Widget Styles */
.wpbp-calendar-container {
  margin: 15px 0;
}

.wpbp-calendar-widget {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

.wpbp-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.wpbp-calendar-nav {
  background: #0073aa;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wpbp-calendar-nav:hover {
  background: #005a87;
  transform: scale(1.1);
}

.wpbp-calendar-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.wpbp-current-month {
  margin-right: 8px;
}

.wpbp-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 10px;
}

.wpbp-weekday {
  text-align: center;
  font-weight: 600;
  color: #666;
  padding: 10px 5px;
  font-size: 14px;
}

.wpbp-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.wpbp-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  /* Default styling to prevent flashing */
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #333;
}

.wpbp-day-empty {
  cursor: default;
}

.wpbp-day-available {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e9ecef;
}

.wpbp-day-available:hover {
  background: #e8f4f8;
  border-color: #0073aa;
  transform: scale(1.05);
}

.wpbp-day-selected {
  background: #0073aa !important;
  color: white !important;
  border-color: #0073aa !important;
  font-weight: 600;
  transform: scale(1.05);
}

.wpbp-day-disabled {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  border: 1px solid #e9ecef;
}

.wpbp-day-unavailable {
  background: #ffe6e6;
  color: #999;
  cursor: not-allowed;
  border: 1px solid #ffcccc;
  position: relative;
}

.wpbp-day-unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #ff6b6b;
  transform: translateY(-50%);
}

.wpbp-selected-date-display {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
}

/* Loading Spinner */
.wpbp-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: wpbp-spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Larger spinner for PayPal redirect */
.wpbp-paypal-redirect .wpbp-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0066cc;
  margin: 0 auto;
}

.wpbp-selected-date-text {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* Additional Guest Names Styles */
.wpbp-additional-guests {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.wpbp-additional-guests h5 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.wpbp-guest-info {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

.wpbp-guest-name-field {
  margin-bottom: 15px;
}

.wpbp-guest-name-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.wpbp-guest-name-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.wpbp-guest-name-field input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wpbp-guest-name-field input::placeholder {
  color: #999;
  font-style: italic;
}

/* Responsive calendar styles */
@media (max-width: 768px) {
  .wpbp-calendar-widget {
    padding: 15px;
    margin: 0;
  }

  .wpbp-calendar-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .wpbp-calendar-title {
    font-size: 16px;
  }

  .wpbp-weekday {
    padding: 8px 3px;
    font-size: 12px;
  }

  .wpbp-calendar-day {
    font-size: 13px;
  }

  .wpbp-selected-date-display {
    padding: 12px;
  }

  .wpbp-selected-date-text {
    font-size: 14px;
  }
}

/* Multi-Step Form Styles */
.wpbp-step-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.wpbp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 200px;
}

.wpbp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.wpbp-step.active:not(:last-child)::after {
  background: #0073aa;
}

.wpbp-step .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.wpbp-step.active .step-number {
  background: #0073aa;
  color: white;
}

.wpbp-step .step-title {
  font-size: 14px;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.wpbp-step.active .step-title {
  color: #0073aa;
  font-weight: 600;
}

/* Form Step Visibility */
.wpbp-form-step {
  display: none;
}

.wpbp-form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

/* Button Styles */
.wpbp-btn {
  padding: 15px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.wpbp-btn-primary {
  background: #0073aa;
  color: white;
}

.wpbp-btn-primary:hover {
  background: #005a87;
  transform: translateY(-1px);
}

.wpbp-btn-secondary {
  background: #6c757d;
  color: white;
}

.wpbp-btn-secondary:hover {
  background: #545b62;
}

.wpbp-btn-success {
  background: #28a745;
  color: white;
  font-size: 16px;
  padding: 15px 30px;
}

.wpbp-btn-success:hover {
  background: #218838;
  transform: translateY(-1px);
}

.wpbp-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.wpbp-step-actions .wpbp-btn:only-child {
  margin-left: auto;
}

/* Guide Selection Dropdown */
.wpbp-guide-dropdown {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background: white;
  transition: border-color 0.3s ease;
}

.wpbp-guide-dropdown:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.wpbp-guide-description {
  margin-top: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-left: 4px solid #0073aa;
  border-radius: 4px;
}

.wpbp-guide-description p {
  margin: 0;
  color: #666;
  font-style: italic;
}

/* Product Info Section */
.wpbp-product-info {
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.wpbp-product-info h3 {
  margin-top: 0;
  color: #0073aa;
  font-size: 22px;
  border-bottom: none;
  padding-bottom: 0;
}

/* Form Sections */
.wpbp-form-section {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wpbp-form-section h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 8px;
}

/* Addon Items */
.wpbp-addons-selection {
  display: grid;
  gap: 15px;
}

.wpbp-addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.wpbp-addon-item:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.wpbp-addon-item label {
  display: flex;
  align-items: center;
  margin: 0;
  flex-grow: 1;
  cursor: pointer;
}

.wpbp-addon-item input[type='checkbox'] {
  width: auto;
  margin-right: 12px;
  transform: scale(1.2);
}

.addon-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.addon-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.addon-price {
  color: #0073aa;
  font-weight: 500;
}

.addon-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addon-quantity label {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.addon-quantity input {
  width: 60px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

/* Booking Summary */
.wpbp-booking-summary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item strong {
  color: #333;
}

/* Discount line specific styling */
.summary-item.summary-discount,
.wpbp-discount-row,
.booking-discount-row {
  color: #28a745;
  font-weight: 600;
}

.summary-item.summary-discount strong,
.wpbp-discount-row strong,
.booking-discount-row strong {
  color: #28a745;
}

.summary-item.summary-total {
  font-size: 18px;
  font-weight: bold;
  border-top: 2px solid #0073aa;
  margin-top: 10px;
  padding-top: 15px;
}

.summary-item.summary-total strong {
  color: #0073aa;
}

/* Additional discount amount styling */
.wpbp-discount-amount,
.booking-discount {
  color: #28a745;
  font-weight: 600;
}

/* Final Total */
.wpbp-final-total {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .wpbp-step-progress {
    padding: 15px 0;
  }

  .wpbp-step .step-number {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .wpbp-step .step-title {
    font-size: 12px;
  }

  .wpbp-step:not(:last-child)::after {
    display: none;
  }

  .wpbp-step-actions {
    flex-direction: column;
    gap: 15px;
  }

  .wpbp-step-actions .wpbp-btn {
    width: 100%;
  }

  .wpbp-addon-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .addon-quantity {
    align-self: flex-end;
  }

  .wpbp-final-total {
    font-size: 20px;
    padding: 15px;
  }
}

/* Enhanced Addon Styles */
.wpbp-addon-item {
  margin-bottom: 15px;
  padding: 0;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
}

.wpbp-addon-item:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.addon-header {
  padding: 15px;
}

.addon-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}

.addon-checkbox-label input[type='checkbox'] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 12px !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  accent-color: #0073aa !important;
  flex-shrink: 0 !important;
}

.addon-info {
  flex: 1;
}

.addon-name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.addon-description {
  display: block;
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.addon-base-price {
  display: block;
  color: #0073aa;
  font-weight: 500;
  font-size: 14px;
}

.addon-controls {
  padding: 0 15px 15px 15px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.addon-control-row {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.control-group {
  flex: 1;
}

.control-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
}

.control-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.control-group input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.addon-price-breakdown {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.price-calculation {
  text-align: center;
}

.calculation-text {
  font-size: 14px;
  color: #666;
}

.addon-total-price {
  color: #0073aa;
  font-size: 16px;
  font-weight: 600;
}

.calc-days,
.calc-persons {
  font-weight: 600;
  color: #333;
}

/* Responsive addon styles */
@media (max-width: 768px) {
  .addon-control-row {
    flex-direction: column;
    gap: 15px;
  }

  .addon-checkbox-label {
    flex-direction: row;
    align-items: flex-start;
  }

  .addon-checkbox-label input[type='checkbox'] {
    margin-bottom: 10px;
  }
}

/* Stripe Payment Form Styles */
.wpbp-stripe-card-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.wpbp-stripe-card-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.wpbp-stripe-card-element {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.3s ease;
}

.wpbp-stripe-card-element:focus-within {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wpbp-stripe-card-element.StripeElement--focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wpbp-stripe-card-element.StripeElement--invalid {
  border-color: #dc3545;
}

.wpbp-stripe-card-errors {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

/* Payment method selection styles */
.wpbp-payment-methods {
  margin-bottom: 20px;
}

.wpbp-payment-methods label {
  display: block;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  font-size: 16px;
}

.wpbp-payment-methods label:hover {
  border-color: #0073aa;
  background: #f8f9fa;
}

.wpbp-payment-methods input[type='radio'] {
  margin-right: 10px;
  width: auto;
}

.wpbp-payment-methods input[type='radio']:checked + span {
  font-weight: 600;
  color: #0073aa;
}

.wpbp-payment-methods label:has(input[type='radio']:checked) {
  border-color: #0073aa;
  background: #f0f8ff;
}

.summary-content {
  font-size: 18px;
}

/* Simple Clean Payment Styles - Original Design */
.wpbp-booking-form .wpbp-payment-methods {
  display: flex !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  margin-bottom: 20px !important;
}

.wpbp-booking-form .wpbp-payment-methods label {
  display: flex !important;
  align-items: center !important;
  font-weight: normal !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.wpbp-booking-form .wpbp-payment-methods input[type='radio'] {
  width: auto !important;
  margin-right: 8px !important;
  margin-bottom: 0 !important;
}

/* Simple Stripe Card Styles */
.wpbp-stripe-card-section {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.wpbp-stripe-card-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.wpbp-stripe-card-element {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.3s ease;
}

.wpbp-stripe-card-element:focus-within,
.wpbp-stripe-card-element.StripeElement--focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wpbp-stripe-card-element.StripeElement--invalid {
  border-color: #dc3545;
}

.wpbp-stripe-card-errors {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}

/* Loading state for Stripe */
.wpbp-stripe-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ========================================
   CALENDAR & LOADING ANIMATIONS
   ======================================== */

/* Spinner animation for loading states */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Payment method warning styles */
.wpbp-no-payment-methods {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  margin: 10px 0;
}

/* Calendar loading states */
.wpbp-calendar-widget {
  position: relative;
}

.wpbp-calendar-widget.wpbp-loading {
  position: relative;
}

.wpbp-calendar-widget.wpbp-loading .wpbp-calendar-days {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.wpbp-calendar-widget.wpbp-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
}

/* Smooth transitions for calendar days to prevent flashing */
.wpbp-calendar-days {
  transition: opacity 0.2s ease;
}

.wpbp-calendar-day {
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

/* Prevent layout shift during calendar updates */
.wpbp-calendar-day.wpbp-day-empty {
  visibility: hidden;
}

/* Ensure calendar maintains structure during updates */
.wpbp-calendar-widget.wpbp-updating .wpbp-calendar-days {
  opacity: 0.3;
  pointer-events: none;
}
