/**
 * Service Booking Table CSS - Updated
 * Styles cho shortcode [w_service_booking_table]
 * Phù hợp với cấu trúc HTML mới
 */

/* Container chính */
.w-service-booking-table-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Booking Table Wrapper */
.booking-table-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.booking-table-main {
    flex: 1;
    min-width: 0;
}

/* Sticky Sidebar */
.booking-summary-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.booking-summary-sidebar .sticky-top {
    top: 20px !important;
}

/* Header Controls */
.w-booking-controls {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    border-radius: 8px;
    color: white;
}

.w-booking-controls .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.booking-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: White !important;
}

.booking-title i {
    color: White !important;
    font-size: 1.2em;
}

/* Control Buttons */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn-outline-primary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-primary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Selected Services Summary */
.selected-services-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.selected-services-summary h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.selected-services-summary h4 i {
    color: #667eea;
    margin-right: 8px;
}

.services-list {
    margin-bottom: 15px;
}

.service-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
}

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

.service-info {
    flex: 1;
}

.service-name {
    color: #333;
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.service-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

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

.service-duration {
    color: #6c757d;
}

.additional-services {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f4;
}

.additional-label {
    color: #6c757d;
    font-size: 0.85em;
    margin-bottom: 5px;
    display: block;
}

.additional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.85em;
    color: #6c757d;
}

.addon-name {
    flex: 1;
}

.addon-price {
    color: #28a745;
    font-weight: 500;
}

.total-summary {
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
    margin-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.summary-row.total-price-row {
    font-weight: 600;
    font-size: 1.1em;
    color: #28a745;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 5px;
}

.summary-label {
    color: #495057;
}

.summary-label i {
    margin-right: 5px;
    width: 16px;
}

.summary-value {
    font-weight: 600;
}

.total-price {
    color: #28a745;
    font-size: 1.2em;
}

/* Main table */
.w-services-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
    margin: 0;
}

.w-services-table thead {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    color: white !important;
}

.w-services-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.w-services-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* Column Specific Styles */
.col-select {
    width: 60px;
    text-align: center;
}

.col-image {
    width: 80px;
    text-align: center;
    color: white !important;
}

.col-name {
    min-width: 200px;
    color: white !important;
}

.col-price {
    width: 120px;
    text-align: right;
    color: white !important;
}

.col-duration {
    width: 120px;
    text-align: center;
    color: white !important;
}

.col-description {
    width: auto;
    color: white !important;
}

/* Service rows */
.service-row {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-row:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-row.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

/* Checkbox styling */
.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.form-check-label {
    margin: 0;
    cursor: pointer;
}

/* Service image */
.service-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-no-image {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    margin: 0 auto;
}

.service-no-image i {
    font-size: 1.2em;
}

/* Service name */
.service-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

.service-categories {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-categories i {
    color: #667eea;
}

/* Price Styling */
.service-price {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Duration Styling */
.service-duration {
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Description */
.service-description-short {
    color: #495057;
    line-height: 1.4;
    margin-bottom: 8px;
}

.show-full-description {
    color: #FF6B9DFF;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.show-full-description:hover {
    color: #764ba2;
    text-decoration: underline;
}

.service-description-full {
    color: #495057;
    line-height: 1.4;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #FF6B9DFF;
}

/* Button show additional services */
.btn-show-additional {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.btn-show-additional:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-show-additional i {
    font-size: 0.7rem;
}

/* Service category */
.service-category {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #495057;
}

/* Price and duration */
.service-price {
    font-weight: 600;
    color: #28a745;
}

.service-duration {
    color: #6c757d;
}

/* Description */
.service-description {
    color: #6c757d;
    line-height: 1.4;
}

/* Additional Services Subrow */
.additional-services-subrow {
    background: #f8f9fa;
}

.additional-services-subrow td {
    padding: 20px 12px;
    border-bottom: 2px solid #e9ecef;
}

.additional-services-toggle {
    display: flex;
    justify-content: flex-end;
}

.btn-toggle-additional {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-toggle-additional:hover {
    background: #5a6268;
}

.additional-services-container {
    padding: 0;
}

.additional-services-title {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.additional-service-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.additional-service-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.additional-service-checkbox-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.additional-service-checkbox {
    display: none;
}

.additional-checkbox-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.additional-checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.additional-service-checkbox:checked + .additional-checkbox-label .additional-checkmark {
    background: #28a745;
    border-color: #28a745;
}

.additional-service-checkbox:checked + .additional-checkbox-label .additional-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 10px;
}

.additional-service-item .service-name {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

.additional-service-item .service-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #28a745;
    margin-left: 10px;
}

/* Responsive cho additional services */
@media (max-width: 768px) {
    .additional-services-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .additional-service-item .service-price {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* Sidebar Summary (Desktop) */
.summary-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.summary-card h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

/* Selected services list */
.selected-services-list {
    margin-bottom: 20px;
    min-height: 60px;
}

.no-services-selected {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 0;
    padding: 20px 0;
}

.selected-services {
    max-height: 200px;
    overflow-y: auto;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.selected-service-item .service-name {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    margin-right: 10px;
}

.selected-service-item.additional-service .service-name {
    font-weight: 400;
    color: #6c757d;
    font-size: 0.875rem;
    padding-left: 15px;
}

.selected-service-item .service-price {
    font-weight: 600;
    color: #28a745;
}

/* Summary totals */
.summary-totals {
    border-top: 2px solid #e9ecef;
    padding-top: 16px;
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.total-row:last-child {
    margin-bottom: 0;
}

.total-label {
    font-weight: 500;
    color: #495057;
}

.total-price {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.total-duration {
    font-weight: 600;
    color: #6c757d;
}

/* Booking actions */
.booking-actions {
    text-align: center;
}

.btn-book-now {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-book-now:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Bottom Bar */
.mobile-booking-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.mobile-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-total-price {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.mobile-total-duration {
    font-size: 0.875rem;
    color: #6c757d;
}

.btn-mobile-book {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .booking-table-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .booking-summary-sidebar {
        width: 100%;
        order: -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .w-service-booking-table-container {
        padding: 15px;
        padding-bottom: 80px; /* Space for mobile bar */
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .table-controls {
        justify-content: center;
    }
    
    .booking-summary-sidebar {
        display: none;
    }
    
    .mobile-booking-bar {
        display: block;
    }
    
    /* Table responsive adjustments */
    .services-table {
        font-size: 0.8rem;
    }
    
    .services-table th,
    .services-table td {
        padding: 10px 8px;
    }
    
    /* Hide some columns on mobile */
    .col-description {
        display: none;
    }
    
    .col-category {
        display: none;
    }
    
    .col-additional-services {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-table th,
    .services-table td {
        padding: 8px 6px;
    }
    
    .col-image {
        display: none;
    }
    
    .service-image-thumb,
    .service-image-placeholder {
        width: 40px;
        height: 40px;
    }
}

/* Animation cho smooth transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.selected-service-item {
    animation: fadeIn 0.3s ease;
}

/* Accessibility */
.service-checkbox:focus + .checkbox-label .checkmark {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-book-now:focus,
.btn-mobile-book:focus,
.btn-book-now:disabled{
    outline: 2px solid rgba(0, 123, 255, 0.5);
    color: black;
    outline-offset: 2px;
}

/* Loading states */
.loading .services-table {
    opacity: 0.6;
    pointer-events: none;
}

/* Inline Booking Form Styles */
.inline-booking-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    border: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.inline-booking-form.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
}

.booking-form-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    width: 100%;
    max-height: none;
    overflow: visible;
    transform: none;
    transition: none;
}

.inline-booking-form.show .booking-form-container {
    transform: none;
}

.form-header.enhanced {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header.enhanced h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.form-header.enhanced h3 i {
    margin-right: 8px;
    color: #ffd700;
}

.close-form {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-form:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.form-content,
.booking-form-content {
    padding: 25px;
}

.selected-services-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.selected-services-section h4 i {
    color: #667eea;
    margin-right: 8px;
}

.selected-service-item.enhanced {
    background: #f8f9ff;
    border: 1px solid #e1e8ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

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

.service-name {
    color: #333;
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.service-name i {
    color: #667eea;
    margin-right: 6px;
}

.service-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
}

.service-price, .service-duration {
    color: #666;
    font-weight: 500;
}

.service-price i, .service-duration i {
    margin-right: 4px;
    color: #667eea;
}

.additional-services {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e1e8ff;
}

.additional-label {
    color: #666;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.additional-label i {
    color: #28a745;
    margin-right: 4px;
}

.additional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-list li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.85em;
    color: #666;
}

.addon-price {
    color: #28a745;
    font-weight: 500;
}

.total-summary.enhanced {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.summary-row .label {
    font-weight: 500;
}

.summary-row .label i {
    margin-right: 6px;
    color: #ffd700;
}

.total-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #ffd700;
}

.total-duration {
    font-weight: 600;
}

/* Enhanced booking form styling */
.enhanced-booking-form-wrapper {
    background: white;
    border-radius: 8px;
}

.enhanced-booking-form-wrapper .form-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    padding: 20px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #e1e8ff;
}

.enhanced-booking-form-wrapper .form-header h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.enhanced-booking-form-wrapper .form-header h4 i {
    color: #667eea;
    margin-right: 8px;
}

.form-subtitle {
    color: #666;
    margin: 0;
    font-size: 0.9em;
}

.w-booking-form.enhanced {
    padding: 25px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group label i {
    color: #667eea;
    margin-right: 6px;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0px 0px;
    border: 2px solid #e1e8ff;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    background: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.booking-summary.enhanced {
    background: #f8f9ff;
    border: 2px solid #e1e8ff;
    border-radius: 8px;
    margin: 25px 0;
}

.summary-header {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    color: white;
    padding: 15px 20px;
    border-radius: 6px 6px 0 0;
}

.summary-header h5 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.summary-header h5 i {
    color: #ffd700;
    margin-right: 8px;
}

.summary-content {
    padding: 20px;
}

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

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

.summary-item.total {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    border-top: 2px solid #e1e8ff;
    padding-top: 12px;
    margin-top: 8px;
}

.summary-item .label {
    color: #666;
}

.summary-item .value {
    color: #333;
    font-weight: 500;
}

.summary-item.total .value {
    color: #667eea;
    font-weight: 700;
}

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

.btn-submit.enhanced {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%) !important;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

.btn-submit.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-submit.enhanced:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.enhanced i {
    margin-right: 8px;
}

.booking-messages {
    margin-top: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.success-message i {
    color: #28a745;
    margin-right: 8px;
}

.booking-form-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

.booking-form-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.inline-booking-form .error {
    color: #dc3545;
    background: #f8d7da;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-weight: 500;
}

/* Loading states */
.form-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner i {
    font-size: 2em;
    color: #667eea;
}

.loading-spinner p {
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Animation cho inline form */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .booking-form-container {
        width: 95%;
        margin: 20px 0;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .w-booking-form.enhanced {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .service-main {
        flex-direction: column;
        gap: 8px;
    }
    
    .service-details {
        justify-content: flex-start;
    }
    
    .btn-submit.enhanced {
        width: 100%;
        padding: 15px;
    }
}

.loading .summary-card {
    opacity: 0.6;
}

/* Error states */
.w-service-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 20px 0;
}

.w-service-no-results {
    background: #d1ecf1;
    color: #0c5460;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #bee5eb;
    text-align: center;
    margin: 20px 0;
}

/* Additional Services Styles */
.additional-services-wrapper {
    position: relative;
}

.additional-services-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.services-count {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.btn-view-more {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-view-more:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-view-more.expanded {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-view-more i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.additional-services-details {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    padding: 12px;
    margin-top: 4px;
    animation: fadeInDown 0.3s ease;
}

.services-list {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.additional-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.additional-service-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.additional-service-checkbox-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.additional-service-checkbox {
    display: none;
}

.additional-checkbox-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.additional-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.additional-service-checkbox:checked + .additional-checkbox-label .additional-checkmark {
    background: #28a745;
    border-color: #28a745;
}

.additional-service-checkbox:checked + .additional-checkbox-label .additional-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 10px;
}

.additional-checkbox-label .service-name {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

.additional-service-item .service-name {
    color: #495057;
    font-weight: 500;
}

.additional-service-item .service-price {
    color: #28a745;
    font-weight: 600;
    margin-left: 10px;
}

.btn-hide {
    background: #6c757d;
    border: 1px solid #6c757d;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-hide:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.no-additional-services {
    color: #6c757d;
    font-style: italic;
    font-size: 0.8rem;
}

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