.service-type-label {
    display: inline-block;
    background: #6c757d;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    font-weight: 500;
}

.service-package[data-service-type="combo du lịch"] .service-type-label,
.service-package[data-service-type="combo"] .service-type-label {
    background: #28a745;
}
.service-description p{
    margin-bottom: 0px;
}
.service-package[data-service-type="Vé"] .service-type-label {
    background: #007cba;
}
/* Date Input với Icon */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.calendar-icon {
        top: 11px;
    position: absolute;
    left: 15px;
    z-index: 2;
 color: white;
    pointer-events: none;
    transition: color 0.3s ease;
}

.flatpickr-date {
    width: 100%;
    padding: 15px 15px 15px 45px !important; /* Thêm padding-left cho icon */
    border: 2px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flatpickr-date:focus,
.flatpickr-date.active {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.flatpickr-date:focus + .calendar-icon,
.flatpickr-date.active + .calendar-icon {
    color: #007cba;
}

/* Responsive */
@media (max-width: 480px) {
    .calendar-icon {
        width: 18px;
        height: 18px;
        left: 12px;
    }
    
    .flatpickr-date {
        padding: 12px 12px 12px 40px;
        font-size: 15px;
    }
}
.service-description li{
    margin-bottom: 5px;
}
.service-description{
    font-size: 15px;
}
/* Combo group styling */
.combo-group {
    border: 2px solid #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.combo-group .people-info label {
    color: #28a745;
    font-weight: 700;
}

.combo-group .people-price {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
}
.woocommerce #review_form #respond p.form-submit input#submit, .woocommerce #reviews #comments ol.commentlist #respond p.form-submit input#submit{
    height: 45px !important;
}
/* Min price styling */
.service-price .min-price {
    font-weight: bold;
    color: #007cba;
    background: rgba(0, 124, 186, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 1.1em;
}
.service-packages-container {
    margin: 20px 0;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}
.flatpickr-date::placeholder{
    color: white !important;
}
.flatpickr-date {
color: white !important;
    padding: 15px;
    border: 2px solid #e24d14 !important;
    border-radius: 0;
    font-size: 16px;
    background: #e24d14 !important;
    cursor: pointer;
    transition: all 0.3s ease;
   width: max-content !important;
} 

.flatpickr-date:focus,
.flatpickr-date.active {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}
.service-packages-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.4em;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.service-package {
    border: 1px solid #e0e0e0;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-package:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Service Header - New Layout */
.service-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.service-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-label {
    color: #666;
    font-size: 0.9em;
}

.service-price .child-price {
    font-weight: bold;
    color: #007cba;
    background: rgba(0, 124, 186, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 1.1em;
}

.btn-select-service {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-select-service:hover {
    background: linear-gradient(135deg, #005a87 0%, #004560 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.service-description {
 
    line-height: 1.6;
}

/* Service Form - New Layout */
.service-form {
    padding: 25px;
    background: #fff;
}

.service-form-container {
    max-width: 100%;
}
.dieu-kien {
    margin-top: 0px;
}

.terms-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
}

.terms-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.terms-content {
    margin-bottom: 12px;
}

.terms-preview {
    position: relative;
    max-height: 126px; /* Khoảng 3 dòng */
    overflow: hidden;
    line-height: 1.5;
    color: #666;
}

.terms-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #f8f9fa);
    pointer-events: none;
}

.terms-full {
    color: #666;
    line-height: 1.6;
}

.terms-full p {
    margin-bottom: 12px;
}

.terms-full ul, .terms-full ol {
    margin: 8px 0 12px 20px;
}

.terms-full li {
    margin-bottom: 4px;
}

.terms-toggle {
    background: none;
    border: none;
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-toggle:hover {
    color: #005a87;
}

.terms-toggle:focus {
    outline: none;
    color: #005a87;
}

/* Responsive cho terms */
@media (max-width: 768px) {
    .terms-container {
        padding: 12px;
        font-size: 13px;
    }
    
    .terms-title {
        font-size: 15px;
    }
    
    .terms-preview {
        max-height: 63px; /* Điều chỉnh cho mobile */
    }
}
.form-row {
    display: grid
;
    grid-template-columns: 30% 70%;
    gap: 15px;
    margin-bottom: 5px;
}

.form-col-date {
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.form-col-people {
    padding-left: 0px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Date Picker Styling */

/* Date Picker Styling - Flat Style */


/* People Selection */
.people-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.people-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
     padding: 6px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f8f9fa;
    gap: 15px;
}

.people-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.people-info label {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.people-description {
    margin: 0;
}

.description-text {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
}

.people-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}


.people-price {
    color: #007cba;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    background: rgba(0, 124, 186, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}
.flatpickr-day.selected{
    background: #F16722 !important;
    border: 1px solid #F16722 !important;
}
.flatpickr-day:hover{
    color: white !important;
        background: #F16722 !important;
}
.flatpickr-day.today:hover, .flatpickr-day.today:focus {
    border-color: #959ea9;
    background: #959ea9 !important;
    color: #fff;
}
.flatpickr-day.flatpickr-disabled{
    background: unset !important;
}
.flatpickr-day {
    background: #FAFAFA !important;
    border: 1px solid transparent;
    border-radius: 0px !important;
    margin-bottom: 6px !important;}
.quantity-selector input,.quantity-selector button{
    margin-bottom: 0px;
}
.quantity-selector .qty-plus{
    margin-left: 15px;
    margin-right: 0px;
}
.quantity-selector input{
    border-radius: 0px !important;
       max-width: 100px !important; 
}
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
        padding: 5px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #007cba;
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 45px;
    height: 35px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #333;
    outline: none;
}
.action-buttons button{
    margin-right: 0px;
}
.total-price {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    color: #F16722;
    text-align: center;
    padding: 8px 0px;
    margin-right: 0px;
    background: #f1672208;
    border-radius: 8px;
    border: 1px solid #F16722;
}

.btn-add-service {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-add-service:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-add-service:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .quantity-selector .qty-minus{
        margin-right: 2px ;
    }
     .quantity-selector .qty-plus{
        margin-left: 2px ;
    }
    .quantity-selector input {
    max-width: 50px !important;
}
      .service-form{
            padding: 13px !important;
    }
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .service-header .btn-select-service {
        align-self: stretch;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    
    .form-col-date {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .form-col-people {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .people-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .people-controls {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .quantity-selector {
        flex-shrink: 0;
    }
}

/* Loading animation */
.btn-add-service.loading {
    position: relative;
    color: transparent;
}

.btn-add-service.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Flatpickr custom theme */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: none;
}

.flatpickr-day.selected {
    background: #007cba;
    border-color: #007cba;
}

.flatpickr-day:hover {
    background: rgba(0, 124, 186, 0.1);
    border-color: #007cba;
}

/* Service Header - Updated Layout */
.service-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.service-title h4 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.service-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-label {
    color: #666;
    font-size: 0.9em;
}

.service-price .child-price {
    font-weight: bold;
    color: #007cba;
    background: rgba(0, 124, 186, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 1.1em;
}

.btn-select-service {
        margin-right: 0px;
    background: var(--primary-color);
    color: white;
    padding: 0px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: inherit;
    min-width: 150px;
    margin-bottom: 0px;

}
.service-description ul {
    margin-bottom: 0px;
}
.btn-select-service:hover {
    background: linear-gradient(135deg, #005a87 0%, #004560 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}


/* Action Buttons - New Layout */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-add-service {
        min-height: 1.8em !important;
            line-height: 1.8em !important;
    background:     var(--primary-color);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-add-service:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-book-now {
            min-height: 1.8em !important;
            line-height: 1.8em !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s ease;
}

.btn-book-now:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-add-service:disabled,
.btn-book-now:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive cho action buttons */
@media (max-width: 768px) {
    .btn-select-service{
        min-width: 105px !important;
    }
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .service-actions {
        align-self: stretch;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-add-service,
    .btn-book-now {
        flex: none;
        width: 100%;
    }
}

/* Loading animation cho cả 2 button */
.btn-add-service.loading,
.btn-book-now.loading {
    position: relative;
    color: transparent;
}

.btn-add-service.loading::after,
.btn-book-now.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}