/* 
* Tour Requests Plugin Styles
* Version 1.77
*/

/* Global Styles */
.customer-quotations-booking-container {
  max-width: 950px;
  margin: 20px auto;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* Header Styling - Fixed text color issue */
.booking-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  margin: 0;
  border-bottom: 1px solid #283848;
}

.booking-header h2,
.tour-request h3,
.booking-header h3,
.modal-header h3 {
  color: white !important; /* Ensure text is visible on dark backgrounds */
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Tour Request Cards */
.tour-request {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.tour-request h3 {
  margin: 0;
  padding: 12px 15px;
  background: #334155;
  color: white;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-date {
  font-size: 14px;
  font-weight: normal;
}

/* Request ID Box */
.request-id-box {
  background: #f1f5f9;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

.request-id-box p {
  margin: 0;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
}

.request-date {
  color: #64748b;
  font-size: 14px;
  font-weight: normal;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  background: #f59e0b;
  color: white !important;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Tour Details */
.tour-details {
  padding: 12px 15px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  color: #4b5563;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tour-detail-item {
  margin-right: 15px;
  margin-bottom: 5px;
}

.tour-detail-item strong {
  color: #334155;
  font-weight: 600;
}

/* Quotations Title */
.quotations-title {
  padding: 10px 15px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
}

/* Quotation Cards */
.quotation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 12px;
}

.quotation-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: white;
  position: relative;
}

.quotation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.quotation-card.selected-card {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* Card Components */
.quotation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-bottom: 1px solid #f0f0f0;
}

.quotation-card-body {
  padding: 12px;
}

/* Owner Information */
.owner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.owner-info h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.owner-info h4 a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

/* Price Information */
.quotation-price {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
}

.price-offer-section {
  padding: 20px;
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  text-align: center;
}

.price-tag {
  font-size: 30px;
  font-weight: 700;
  color: #16a34a;
  display: inline-block;
  padding: 10px 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #dcfce7;
}

/* Best Offer Badge */
.best-offer {
  position: absolute;
  top: -6px;
  right: 10px;
  background: #f59e0b;
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 5;
}

/* Radio Button Styling */
.quotation-radio {
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.quotation-card label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
}

/* Booking Button Container */
.booking-button-container {
  padding: 12px;
  text-align: center;
}

/* Booking Button Styling */
.booking-button {
  display: inline-block;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  padding: 12px 16px;
  background: #2563eb;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.booking-button:hover:not(:disabled) {
  background: #1d4ed8;
}

.booking-button:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Book Now Button */
.book-now-button {
  background: #2563eb;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.book-now-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Tour Request Note */
.tour-request-note {
  padding: 15px;
  background: #f3f4f6;
  border-radius: 6px;
  margin: 10px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: text-bottom;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Sections */
.booking-section {
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.booking-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #374151;
}

/* Owner Message Section */
.owner-message-section {
  padding: 15px 20px;
  background: #fffbeb;
  border-top: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
}

.owner-message-section h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #92400e;
  font-weight: 600;
}

.owner-message-box {
  background: white;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
}

.owner-message-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #78350f;
}

/* Booking Form Section */
.booking-form-section {
  padding: 20px;
  background: white;
}

.booking-form-section h3 {
  margin: 0 0 15px 0;
  color: #334155;
  font-size: 16px;
  font-weight: 600;
}

/* Booking Actions */
.booking-actions {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

/* Message Notification */
.message-notification-section {
  padding: 10px 15px;
  background: #fef9c3;
  margin: 10px 0;
  text-align: center;
}

.unread-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  margin-right: 5px;
}

/* Message History Section */
.message-history-section {
  padding: 15px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
  margin-bottom: 15px;
}

.message {
  padding: 10px 12px;
  border-radius: 8px;
  position: relative;
}

.owner-message {
  background: #e0f2fe;
  border-left: 3px solid #0ea5e9;
  margin-right: 15px;
}

.customer-message {
  background: #f1f5f9;
  border-left: 3px solid #64748b;
  margin-left: 15px;
}

/* Modal Styles */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 50px 0;
}

.modal-content {
  background: white;
  margin: 0 auto;
  max-width: 500px;
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 15px 20px;
  background: #2563eb;
  color: white;
  position: relative;
}

.close-button {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 22px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  height: 24px;
  width: 24px;
  line-height: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.close-button:hover {
  transform: scale(1.1);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  text-align: right;
}

.confirm-button {
  background: #16a34a;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-button:hover {
  background: #15803d;
}

/* Empty state message */
.no-quotes {
  padding: 15px;
  text-align: center;
  color: #64748b;
  font-style: italic;
  background: #f1f5f9;
  border-radius: 6px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .quotation-cards {
      grid-template-columns: 1fr;
  }
  
  .tour-request h3 {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .tour-request h3 .tour-date {
      font-size: 13px;
      opacity: 0.9;
  }
  
  .request-id-box {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .quotation-card-header {
      flex-wrap: wrap;
      gap: 10px;
  }
  
  .details-grid {
      grid-template-columns: 1fr;
      gap: 10px;
  }
}

@media (max-width: 480px) {
  .customer-quotations-booking-container {
      margin: 10px;
  }
  
  .quotation-price {
      font-size: 16px;
      padding: 4px 8px;
  }
  
  .booking-button {
      font-size: 14px;
      padding: 10px 14px;
  }
  
  .book-now-button {
      font-size: 15px;
      padding: 12px;
      width: 100%;
  }
  
  .tour-details {
      flex-direction: column;
  }
}

/* Tour Request Form Specific Styles */
.tour-request-form .form-group {
  margin-bottom: 15px;
}

.tour-request-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #374151;
}

.tour-request-form input[type="text"],
.tour-request-form input[type="email"],
.tour-request-form input[type="tel"],
.tour-request-form input[type="date"],
.tour-request-form input[type="number"],
.tour-request-form select,
.tour-request-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  background: #f9fafb;
  color: #374151;
}

.tour-request-form input:focus,
.tour-request-form select:focus,
.tour-request-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.tour-request-form .description {
  font-size: 13px;
  color: #64748b;
  margin-top: 5px;
}

.tour-request-form .details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.tour-request-form .max-quotations-option {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

/* Mobile-friendly improvements */
.mobile-friendly .tour-detail-item {
  display: block;
  margin-bottom: 8px;
}

.mobile-friendly .tour-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-friendly .request-id-box {
  flex-direction: column;
  align-items: flex-start;
}

.mobile-friendly .quotation-cards {
  grid-template-columns: 1fr;
}

.mobile-friendly .booking-form .form-group {
  margin-bottom: 16px;
}

.mobile-friendly .message-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 5px;
}

/* Fix text colors in headers */
.tour-request.mobile-friendly h3 {
  color: white !important;
}

.owner-message-section.mobile-friendly h3 {
  background: transparent;
  color: #92400e !important;
  font-size: 16px;
  padding: 0 0 8px 0;
}

.booking-form-section.mobile-friendly h3 {
  background: transparent;
  color: #334155 !important;
  font-size: 16px;
  padding: 0 0 10px 0;
}

/* Compact view adjustments for pending tour requests */
.tour-request.compact-view {
  margin-bottom: 20px;
}

.tour-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 12px 15px;
  background-color: #f8fafc;
}

.tour-detail-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-detail-item {
  margin-bottom: 5px;
}

.tour-detail-item strong {
  color: #334155;
  font-weight: 600;
}

.owner-message-section.compact-view {
  padding: 12px 15px;
}

.owner-message-section.compact-view h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #92400e !important;
  padding: 0;
}

.booking-form-section.compact-view {
  padding: 15px;
}

.booking-form-section.compact-view h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #334155 !important;
  padding: 0;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.message-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 5px;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .tour-details-grid {
      grid-template-columns: 1fr;
      gap: 10px;
  }
  
  .tour-request.compact-view h3 {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .tour-request.compact-view h3 .tour-date {
      font-size: 13px;
      margin-top: 5px;
  }
  
  .request-id-box {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .quote-form-grid {
      gap: 10px;
  }
}