/* assets/css/style.css */
.professional-booking-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-sidebar {
    width: 300px;
    background: #f8f9fa;
    padding: 30px;
    border-right: 1px solid #e9ecef;
}

.booking-main {
    flex: 1;
    padding: 30px;
}

.doctor-info {
    text-align: center;
    margin-bottom: 30px;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.doctor-name {
    font-size: 24px;
    margin: 0 0 5px;
    color: #2c3e50;
}

.doctor-specialty {
    color: #6c757d;
    margin: 0;
}

.booking-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #495057;
}

.detail-icon {
    margin-right: 10px;
    font-size: 16px;
}

.description {
    margin-bottom: 25px;
    color: #495057;
    line-height: 1.5;
}

.prepare-section {
    margin-bottom: 25px;
}

.prepare-section p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.prepare-list {
    padding-left: 20px;
    color: #495057;
}

.prepare-list li {
    margin-bottom: 5px;
}

.legal-links {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.legal-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
}

.legal-links a:hover {
    text-decoration: underline;
}

.booking-form {
    max-width: 800px;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.step-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
}

/* New layout for date and time selection */
.date-time-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.calendar-section {
    flex: 1;
}

.times-section {
    flex: 1;
    min-width: 250px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.calendar-month {
    font-weight: 600;
    color: #2c3e50;
}

.calendar-nav {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    color: #495057;
}

.calendar-nav:hover {
    background: #e9ecef;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.calendar td {
    padding: 16px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.calendar td.available {
    background: white;
    color: #2c3e50;
}

.calendar td.available:hover {
    background: #e7f3ff;
}

.calendar td.selected {
    background: #0066cc;
    color: white;
}

.calendar td.unavailable {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.calendar td:empty {
    background: none;
    border: none;
    cursor: default;
}

/* Time slots styling */
#time-slots-container {
    margin-bottom: 20px;
    min-height: 200px;
}

.select-date-prompt {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 0;
}

.time-slots h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.time-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #e7f3ff;
    border-color: #0066cc;
}

.time-slot.selected {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.timezone-selector {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.timezone-selector select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
}

/* Form styling */
.selected-time-display {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #0066cc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.terms-notice {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 25px 0;
    font-size: 14px;
    color: #6c757d;
}

.terms-notice a {
    color: #0066cc;
    text-decoration: none;
}

.terms-notice a:hover {
    text-decoration: underline;
}

/* Navigation buttons */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.booking-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.booking-btn:not([disabled]) {
    background: #0066cc;
    color: white;
}

.booking-btn:not([disabled]):hover {
    background: #0056b3;
}

.booking-btn[disabled] {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.booking-btn.back {
    background: #6c757d;
    color: white;
}

.booking-btn.back:hover {
    background: #5a6268;
}

/* Confirmation styling */
.booking-confirmation {
    text-align: center;
    padding: 20px 0;
}

.confirmation-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.booking-details-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    font-weight: 600;
    min-width: 120px;
    color: #495057;
}

.email-notice {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: left;
}
/* Calendar Styling */
.calendar-container {
  margin: 20px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.calendar-month {
  font-weight: 600;
  font-size: 16px;
}

.calendar-nav {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
}

.calendar-nav:hover {
  background-color: #f0f0f0;
}

.calendar {
  width: 100%;
  border-collapse: collapse;
}

.calendar th {
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #e0e0e0;
}

.calendar td {
  padding: 16px;
  text-align: center;
  cursor: pointer;
  height: 40px;
  border: 1px solid #f0f0f0;
}

.calendar td.available {
  background-color: #fff;
  color: #333;
}

.calendar td.available:hover {
  background-color: #f0f7ff;
}

.calendar td.selected {
  background-color: #007bff;
  color: white;
  border-radius: 4px;
}

.calendar td.fully-booked {
  color: #ccc;
  cursor: not-allowed;
}

.calendar td.unavailable {
  color: #ccc;
  cursor: not-allowed;
}

/* Time Slots Styling */
.times-section {
  margin-top: 20px;
}

.time-slots h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.time-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.time-slot {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  text-align: center;
	color:#000;
}

.time-slot:hover {
  background-color: #f0f7ff;
  border-color: #007bff;
}

.time-slot.selected {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.select-date-prompt {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Responsive design */
@media (max-width: 900px) {
    .professional-booking-container {
        flex-direction: column;
    }
    
    .booking-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .date-time-container {
        flex-direction: column;
    }
    
    .time-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Add these styles to your existing style.css file */

/* Service Selection Styles */
.service-selection {
    margin-bottom: 24px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.15);
}

.service-card.selected {
    border-color: #0073aa;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 115, 170, 0.2);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.service-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.service-price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    margin-left: 12px;
}

.service-details {
    margin-top: 12px;
}

.service-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #28a745;
    font-weight: 500;
}

.service-duration {
    display: flex;
    align-items: center;
}

.service-duration::before {
    content: "⏱";
    margin-right: 6px;
}

/* Selected Service Display */
.selected-service-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.service-summary h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 16px;
}

.service-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.service-details span {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
}

.service-name {
    color: #0073aa;
    font-weight: 600;
}

.service-duration {
    color: #28a745;
}

.service-price {
    color: #fd7e14;
    font-weight: 600;
}

/* Loading and Error States */
.loading-services, .error-message, .no-services {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.no-services {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

/* Payment Step Styles */
.payment-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-summary h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 18px;
}

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

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

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

/* Payment Methods */
.payment-section {
    margin-bottom: 24px;
}

.payment-methods h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 16px;
}

.payment-options {
    margin-bottom: 20px;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.payment-option:hover {
    border-color: #0073aa;
    background-color: #f8f9fa;
}

.payment-option.selected {
    border-color: #0073aa;
    background-color: #e3f2fd;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
}

.payment-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.payment-option label img {
    margin-right: 12px;
    max-height: 24px;
}

/* Payment Button */
#payment-button-container {
    text-align: center;
    margin: 24px 0;
}

.payment-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    min-width: 200px;
}

.payment-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004a70 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.payment-btn:active {
    transform: translateY(0);
}

.payment-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Security */
.payment-security {
    text-align: center;
    padding: 16px;
    background: #e8f5e8;
    border-radius: 8px;
    color: #2d5016;
    font-size: 14px;
}

.security-icon {
    font-size: 16px;
    margin-right: 8px;
}

/* Confirmation Updates */
.booking-confirmation .confirmation-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 16px;
}

.confirmation-actions {
    text-align: center;
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.action-btn.secondary {
    background: #6c757d;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 16px;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .service-price {
        margin-left: 0;
    }
    
    .service-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-summary {
        padding: 16px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .summary-item.total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .payment-option {
        padding: 12px;
    }
    
    .payment-option label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .payment-btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Loading States */
.payment-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payment-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.payment-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.payment-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    padding: 20px 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-weight: bold;
    font-size: 14px;
}

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

.step.completed {
    background: #28a745;
    color: white;
}

.step-separator {
    width: 40px;
    height: 2px;
    background: #e9ecef;
}

.step-separator.completed {
    background: #28a745;
}

/* Amount Display */
.amount-display {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    text-align: center;
    margin: 16px 0;
}

.currency-symbol {
    font-size: 20px;
    margin-right: 4px;
}

/* Payment Method Icons */
.payment-methods-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    opacity: 0.7;
}

.payment-methods-icons img {
    height: 24px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.payment-methods-icons img:hover {
    filter: grayscale(0%);
}

/* Receipt Styles */
.receipt-preview {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.receipt-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .receipt-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .time-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-sidebar,
    .booking-main {
        padding: 20px;
    }
}