/* Body */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  padding: 0;
}

/* Container */
.driver-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
}

/* Driver Card */
.driver-card {
  background-image: url('https://flexidriver.in/wp-content/uploads/2025/09/driver-banner.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

/* Profile Image */
.driver-img-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.driver-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  object-position: center center;   /* এখানে পরিবর্তন */
  border-radius: 50%;
  border: 4px solid #fff;
  background: #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* Name & Meta */
.driver-name {
  font-size: 24px;
  margin-top: 10px;
  font-weight: 600;
  color: #fff;
}

.driver-meta {
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 10px;
  color: #fff;
}

/* Contact Buttons */
/* Contact Buttons */
.driver-contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 15px;
}

.driver-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out;
}

.btn-call {
  background-color: #007bff;
}
.btn-call:hover {
  background-color: #0056b3;
}

.btn-whatsapp {
  background-color: #25d366;
}
.btn-whatsapp:hover {
  background-color: #1da851;
}

/* Home button now replaced by Book Now button */
.btn-book {
  background-color: #ff6600;  /* Orange color */
}
.btn-book:hover {
  background-color: #e65c00;  /* Darker orange on hover */
}

.icon {
  font-size: 13px;
}

/* Info Section */
.driver-info-section {
  background: #eae8f9;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e7d6c7;
  margin-top: 30px;
}

.driver-info-section h3 {
  font-size: 17px;
  color: #3d342f;
  margin-bottom: 14px;
  border-bottom: 1px solid #e3d5c5;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.driver-info-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.driver-info-section li {
  background: #ffffff;
  padding: 10px 14px;
  border: 1px solid #e1d5c9;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.driver-info-section li i {
  color: #4e73df;
  font-size: 16px;
  flex-shrink: 0;
}

.driver-info-section li strong {
  font-weight: 600;
  margin-right: 4px;
  color: #222;
}

/* Service Offered Paragraph */
.driver-info-section p {
  background: #ffffff;
  padding: 10px 14px;
  border: 1px solid #e1d5c9;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.driver-info-section p i {
  color: #4e73df;
  font-size: 16px;
  margin-right: 6px;
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 999;
  width: 45px;
  height: 45px;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  font-size: 22px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background: linear-gradient(135deg, #0056b3, #009fdd);
  transform: scale(1.05);
}

/* Animation for fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When element is visible */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: If JavaScript disabled, show everything */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}

/* Mobile Responsive Fix */
@media (max-width: 576px) {
  .driver-container {
    padding: 10px 15px;
  }

.driver-card {
    padding: 12px;
    border-radius: 8px;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}








.review-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.review-actions button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  transition: background-color 0.3s ease;
}

.review-actions .delete-review-btn {
  background-color: #dc3545;
}

.review-actions button:hover {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .review-actions button {
    font-size: 10px;
    padding: 2px 6px;
    gap: 3px;
  }
} 

/* Reply wrapper */
.reply {
  position: relative;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  border-left: 3px solid #007bff;
}

/* Reply meta info (name + date) */
.reply-meta {
  font-size: 13px;
  color: #444;
  margin-bottom: 4px;
}

/* Reply text */
.reply-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  padding-left: 2px;
}

/* Reply Actions (Edit/Delete) */
.reply-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reply-actions button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  transition: background-color 0.3s ease;
}

.reply-actions .delete-reply-btn {
  background-color: #dc3545;
}

.reply-actions button:hover {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .reply-actions button {
    font-size: 10px;
    padding: 2px 6px;
    gap: 3px;
  }
}



/* Reply Container */
.review-replies {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 3px solid #ccc;
  background-color: #f4f4f4;
  border-radius: 6px;
  padding: 10px;
}

/* Individual Reply Block */
.review-replies .reply {
  background-color: #ffffff;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}






/* ===============================
   Premium Driver Status Section
   =============================== */

.driver-status-container {
    margin-top: 18px;
    text-align: center;
}

/* Title */
.driver-status-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.85;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Wrapper */
.driver-status-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
}

/* Hover lift */
.driver-status-wrapper:hover {
    transform: translateY(-2px);
}

/* ===============================
   Status Background Colors
   =============================== */

/* Available */
.driver-status-available {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Busy */
.driver-status-busy {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* On Leave */
.driver-status-on-leave {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ===============================
   Status Dot
   =============================== */

.driver-status-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Softer contrast dots */

/* Available */
.driver-status-available .driver-status-icon {
    background: #bbf7d0;  /* soft mint */
}

/* Busy */
.driver-status-busy .driver-status-icon {
    background: #fecaca;  /* soft pink */
}

/* On Leave */
.driver-status-on-leave .driver-status-icon {
    background: #fde68a;  /* soft yellow */
}






/* ===============================
   Pulse Animation (Available Only)
   =============================== */

.driver-status-available .driver-status-icon {
    position: relative;
    animation: fd-pulse 1.8s infinite;
}

/* Soft outer glow ring */
.driver-status-available .driver-status-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(187, 247, 208, 0.4);
    animation: fd-pulse-ring 1.8s infinite;
}

/* Dot breathing */
@keyframes fd-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Outer glow expanding */
@keyframes fd-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}



/* driver booking form css  */



/* Booking Modal */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.booking-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.25);
}

.booking-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}
.booking-close:hover {
  color: #ff6600;
}

/* Label Style */
#driverBookingForm label {
  display: block;           /* ✅ প্রতিটা label আলাদা লাইনে আসবে */
  text-align: left;         /* ✅ সবসময় বাম দিকে align */
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 5px;
  color: #222;
}

/* Input Style */
#driverBookingForm input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

#driverBookingForm input:focus {
  border-color: #ff6600;
  outline: none;
  box-shadow: 0 0 4px rgba(255,102,0,0.4);
}

/* Submit Button */
#driverBookingForm button {
  width: 100%;
  padding: 12px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#driverBookingForm button:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

/* Status Messages */
.booking-loading {
  font-weight: bold;
  color: #007bff;
  margin-top: 12px;
  text-align: center;
}

.booking-success {
  font-weight: bold;
  color: green;
  margin-top: 12px;
  text-align: center;
}


.btn-book-submit {
  background-color: #ff6600;
}
.btn-book-submit:hover {
  background-color: #e65c00;
}


#bookingSuccessModal .booking-modal-content {
  max-width: 350px;
  padding: 25px;
  border-radius: 10px;
}
#bookingSuccessModal h3 {
  font-size: 18px;
  font-weight: 700;
}
#bookingSuccessModal p {
  font-size: 15px;
  color: #333;
}



/* ================================
   Button with Spinner (fd-btn)
   ================================ */
.fd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: #111827; /* dark gray */
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease, background .2s ease;
}

.fd-btn:hover:not(:disabled) {
  background: #1f2937; /* hover shade */
}

.fd-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner inside button */
.fd-btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #fff;
  animation: fd-spin .9s linear infinite;
  display: none; /* hidden by default */
}

.fd-btn.loading .fd-btn-label {
  opacity: 0;
}
.fd-btn.loading .fd-btn-spinner {
  display: inline-block;
}

/* ================================
   Overlay Loader
   ================================ */
.fd-loader { 
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.fd-loader.show { display: flex; }

.fd-loader-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.25);
}

.fd-loader-spinner {
  position: relative;
  width: 72px;
  height: 72px;
}

.fd-loader-spinner .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: currentColor;
  animation: fd-spin 1s linear infinite;
  color: #3b82f6; /* blue */
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}
.fd-loader-spinner .ring:nth-child(2) {
  inset: 8px;
  border-right-color: currentColor;
  animation-duration: 1.2s;
  opacity: 0.85;
}
.fd-loader-spinner .ring:nth-child(3) {
  inset: 16px;
  border-bottom-color: currentColor;
  animation-duration: 1.4s;
  opacity: 0.7;
}

/* ================================
   Spinner Keyframe
   ================================ */
@keyframes fd-spin {
  to { transform: rotate(360deg); }
}






/* Default (desktop) layout */
body, .driver-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


.driver-card {

  margin-top: 14px !important;   /* desktop এ একটু space থাকবে */
  padding-top: 10 !important;
}
/* Mobile এ gap একদম কমিয়ে ফেলা */
@media (max-width: 768px) {
  .driver-card {
    margin-top: 15px !important;
    
    margin-bottom: 10px !important;
  }
}




/* ===========================
   fd-modal.css — cleaned & final
   (modal + button overrides + compact layout)
   =========================== */

/* Modal base (high specificity where useful) */
.single-driver .fd-login-modal,
.post-type-driver .fd-login-modal,
.fd-login-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none; /* JS toggles */
  align-items: center;
  justify-content: center;
}

.fd-login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.fd-login-modal-content {
  position: relative;
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  max-width: 480px;
  width: 94%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 100000;
  animation: fdModalFadeIn .28s cubic-bezier(.2,.9,.3,1);
}

.fd-login-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  color: #333;
}

/* Modal animation */
@keyframes fdModalFadeIn {
  from { opacity: 0; transform: translateY(6px) scale(.995); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===========================
   Compact contact buttons (primary)
   - Ensures 3 buttons sit side-by-side
   - Keeps styling consistent on modal & profile
   =========================== */

.driver-contact-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* always inline */
  margin-top: 12px;
}

/* Base button: keep lightweight so theme provides the main look if needed */
.driver-contact-buttons .driver-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;      /* compact */
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  min-width: 88px;        /* ensure readable */
  max-width: 130px;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

/* Specific color rules with enough specificity to override theme */
.driver-contact-buttons .btn-call,
.fd-login-modal .btn-call {
  background: linear-gradient(180deg,#0d6efd 0%, #0957d6 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(13,110,253,0.10) !important;
}

.driver-contact-buttons .btn-call:hover,
.fd-login-modal .btn-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(13,110,253,0.14) !important;
}

.driver-contact-buttons .btn-whatsapp,
.fd-login-modal .btn-whatsapp {
  background: linear-gradient(180deg,#25d366 0%, #1ebe57 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(37,211,102,0.10) !important;
}

.driver-contact-buttons .btn-whatsapp:hover,
.fd-login-modal .btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37,211,102,0.14) !important;
}

.driver-contact-buttons .btn-book,
.fd-login-modal .btn-book {
  background: linear-gradient(180deg,#ff6600 0%, #e65c00 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(255,102,0,0.10) !important;
}

.driver-contact-buttons .btn-book:hover,
.fd-login-modal .btn-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(230,92,0,0.14) !important;
}

/* Ensure icons inside buttons remain visible */
.driver-contact-buttons .driver-btn i,
.fd-login-modal .driver-btn i {
  color: #fff !important;
  font-size: 14px;
}

/* Make sure modal buttons don't stretch full width */
.fd-login-modal .driver-btn { width: auto !important; }

/* Small screens: keep buttons inline (no stacking) but allow slight scaling */
@media (max-width: 420px) {
  .driver-contact-buttons {
    gap: 6px;
  }
  .driver-contact-buttons .driver-btn {
    min-width: 72px;
    max-width: 110px;
    padding: 6px 8px;
    font-size: 12px;
  }
  /* shrink modal width a bit for very small devices */
  .fd-login-modal-content { max-width: 420px; width: 96%; padding: 14px; }
  .fd-login-modal .driver-btn { width: auto !important; }
}

/* Utility: if theme is extremely stubborn, class .force can be added server-side to ensure color */
.fd-login-modal .driver-btn.btn-whatsapp.force,
.fd-login-modal .driver-btn.btn-call.force,
.fd-login-modal .driver-btn.btn-book.force {
  color: #fff !important;
}






/* ===== Premium Booking Rate Box ===== */

.fd-booking-box {
    margin: 20px auto 0;
    max-width: 340px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 20px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.fd-booking-title {
    font-size: 12px;
    opacity: 0.75;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.fd-booking-price {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.fd-booking-price span {
    color: #ffd600;
}

.fd-booking-note {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 10px;
    font-style: italic;
}
