/* Add styles for the bio section */
.braider-bio-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.braider-bio-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

.braider-photo-container {
  flex: 0 0 180px;
  position: relative;
}

.braider-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #d4a373;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ── Gallery slideshow shown when braider has no display photo ── */
.profile-slideshow {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #d4a373;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #f0ece8;
}

.profile-slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 0;
  line-height: 1;
  transition: background 0.2s;
}

.slideshow-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slideshow-arrow-prev { left: 6px; }
.slideshow-arrow-next { right: 6px; }

.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slideshow-dot.active {
  background: #fff;
}

.braider-bio-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  padding-right: 250px;
}

.braider-bio-content h3 {
  font-size: 1.3rem;
  color: #5c4033;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.braider-bio-text {
  line-height: 1.6;
  white-space: pre-line;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-navigation {
    position: static;
    margin-top: 20px;
    justify-content: center;
  }
  
  .braider-bio-content {
    padding-right: 0;
  }
  
  .braider-bio-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .braider-photo-container {
    margin-bottom: 1rem;
  }
  
  .braider-bio-content {
    text-align: center;
  }
}

/* Photo viewer styles */
.photo-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.photo-viewer.active {
  display: flex;
}

.photo-viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: transparent;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.full-photo {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.close-viewer {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.close-viewer:hover {
  background: rgba(0, 0, 0, 0.8);
}

.photo-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-button {
  background: rgba(212, 163, 115, 0.7);
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: background-color 0.3s, transform 0.3s;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-button:hover {
  background: rgba(212, 163, 115, 1);
  transform: scale(1.1);
}

/* Add styling for the profile navigation buttons */
.profile-navigation {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.profile-nav-button {
  padding: 10px 20px;
  background-color: #d4a373;
  border: none;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-nav-button:hover {
  background-color: #c89666;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Ensure the gallery container displays properly */
.gallery-container {
  margin-top: 20px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.thumbnail {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail:hover::after {
  opacity: 0.8;
}

.thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Style update for the profile buttons to ensure consistency */
.profile-buttons {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
}

.profile-buttons button {
  padding: 10px 20px;
  background-color: #d4a373;
  border: none;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-buttons button:hover {
  background-color: #c89666;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.profile-buttons button.active {
  background-color: #b07d5c;
  color: white;
  font-weight: 600;
}

/* Additional style for the bio section restructure */
.profile-info h1 {
  margin-bottom: 5px;
}

/* Ensuring gallery section displays properly */
#gallery-section {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

#gallery-section h2 {
  color: #5c4033;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* Add styles for the subtotal display */
.booking-subtotal {
  background-color: #f8f8f8;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 15px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  border-left: 3px solid #4CAF50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-subtotal::before {
  content: "💰";
  margin-right: 10px;
} 

/* Gallery Section Styles */
.gallery-section {
  margin-top: 2rem;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(92, 64, 51, 0.08);
}

.gallery-section h2 {
  color: #5c4033;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
}

/* Braider Information Section Styles */
.braider-info-section {
  margin-top: 2rem;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(92, 64, 51, 0.08);
}

.braider-info-section h2 {
  color: #5c4033;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 600;
}

/* Centered title for braider information */
.braider-info-title {
  text-align: center;
  color: #5c4033;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

/* Side-by-side layout for braider info content */
.braider-info-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.info-left-column {
  flex: 1;
  min-width: 0;
}

.info-right-column {
  flex: 1;
  min-width: 0;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .braider-info-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .braider-info-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}

/* Center the Availability heading */
.calendar-container h3 {
  text-align: center;
  color: #5c4033;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-subsection {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e1db;
}

.info-subsection:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Adjust spacing for the new layout */
.info-left-column .info-subsection {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-right-column .info-subsection {
  margin-bottom: 1.5rem;
}

.info-right-column .info-subsection:last-child {
  margin-bottom: 0;
}

.info-subsection h3 {
  color: #5c4033;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.subsection-description {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Styles Container */
.styles-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
  border: 1px solid #e8e1db;
  border-radius: 8px;
  padding: 1rem;
}

/* Custom scrollbar for styles container */
.styles-container::-webkit-scrollbar {
  width: 8px;
}

.styles-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.styles-container::-webkit-scrollbar-thumb {
  background: #d4a373;
  border-radius: 4px;
}

.styles-container::-webkit-scrollbar-thumb:hover {
  background: #c89666;
}

.style-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.style-item:hover {
  box-shadow: 0 4px 16px rgba(92, 64, 51, 0.1);
  transform: translateY(-2px);
}

.style-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.style-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5c4033;
}

.base-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d4a373;
}

.style-options {
  margin-top: 1rem;
}

.options-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #5c4033;
  margin-bottom: 0.75rem;
}

.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

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

.option-name {
  color: #666;
  font-size: 0.9rem;
}

.option-price {
  font-weight: 500;
  color: #d4a373;
  font-size: 0.9rem;
}

/* Notes Container */
.notes-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-item {
  background: #f8f9fa;
  border-left: 4px solid #d4a373;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.note-text {
  color: #333;
  line-height: 1.6;
}

.note-text::before {
  content: "•";
  color: #d4a373;
  font-weight: bold;
  margin-right: 0.75rem;
}

/* FAQ Container */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.1);
}

.faq-question {
  margin-bottom: 1rem;
}

.faq-question strong {
  color: #d4a373;
  font-weight: 600;
  font-size: 1rem;
}

.question-text {
  color: #333;
  font-weight: 500;
  margin-left: 0.5rem;
}

.faq-answer strong {
  color: #d4a373;
  font-weight: 600;
  font-size: 1rem;
}

.answer-text {
  color: #666;
  line-height: 1.6;
  margin-left: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

/* Loading State */
.loading {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
}

/* Message Braider Section */
.message-braider-section {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-braider-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #5c4033;
  margin-bottom: 1.5rem;
  text-align: center;
}

.message-disclaimer {
  margin-bottom: 2rem;
}

.disclaimer-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1.5rem;
}

.disclaimer-box h3 {
  margin: 0 0 1rem 0;
  color: #856404;
  font-size: 1.1rem;
}

.disclaimer-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #856404;
}

.disclaimer-box li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.general-inquiry-container {
  min-height: 200px;
}

.eligibility-check {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.eligibility-message {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 1rem 0;
}

.eligibility-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.eligibility-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-chat-container {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.chat-message {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.chat-message.sent {
  align-items: flex-end;
}

.chat-message.received {
  align-items: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  word-wrap: break-word;
  position: relative;
}

.chat-message.sent .message-bubble {
  background: #5c4033;
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.received .message-bubble {
  background: white;
  color: #333;
  border: 1px solid #ddd;
  border-bottom-left-radius: 4px;
}

.message-meta {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.chat-input-container {
  display: flex;
  padding: 1rem;
  gap: 0.5rem;
  background: white;
}

#general-message-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 40px;
  max-height: 120px;
}

#general-message-input:focus {
  outline: none;
  border-color: #5c4033;
  box-shadow: 0 0 0 2px rgba(92, 64, 51, 0.1);
}

.send-message-btn {
  background: #5c4033;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.send-message-btn:hover {
  background: #4a3428;
}

.send-message-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
} 