/* Thai Garden Booking Public Styles */

/* Container */
.thai-garden-booking-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Make sure all elements respect box-sizing */
.thai-garden-booking-container * {
    box-sizing: border-box;
}

/* Only apply borders to specific elements and keep the rest borderless */
.thai-garden-booking-container *:not(.time-slot):not(.branch-item):not(.service-item):not(.booking-summary):not(.message):not(.ui-tabs-nav li a):not(input):not(textarea):not(select):not(#booking-date):not(.form-group *) {
    border: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .thai-garden-booking-container {
        padding: 0;
    }
    
    /* Better mobile step indicators */
    #thai-garden-booking-steps .ui-tabs-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 0 10px 0;
        margin-bottom: 20px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        gap: 0; /* Remove gap between tabs */
        grid-template-columns: unset;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari/Opera */
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li {
        flex: 0 0 auto;
        width: auto;
        min-width: 150px;
        max-width: none;
        margin: 0;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li:first-child {
        margin-left: 0;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li:last-child {
        margin-right: 0;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li a {
        border: 1px solid #ddd;
        padding: 10px 8px;
        white-space: normal;
        word-break: break-word;
        height: 54px;
        border-radius: 0;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li a:before {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 6px;
    }
    
    .branches-container,
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .branch-select-btn,
    .service-select-btn,
    .submit-btn {
        padding: 14px 10px;
        font-size: 16px;
    }
    
    #calendar-container {
        max-width: 100%;
    }
    
    #thai-garden-booking-steps .ui-tabs-panel {
        padding: 15px 0;
    }
    
    /* Ensure scrollable tabs have no gaps */
    #thai-garden-booking-steps .ui-tabs-nav li {
        margin: 0;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li a {
        border-right: none;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li:not(:first-child) a {
        border-left: none;
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-summary p {
        font-size: 14px;
    }
    
    .branch-item, 
    .service-item {
        padding: 10px;
    }
    
    #thai-garden-booking-steps h3 {
        font-size: 1.2em;
    }
    
    /* Even more compact for smaller screens */
    #thai-garden-booking-steps .ui-tabs-nav {
        margin-bottom: 15px;
        gap: 6px;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li {
        min-width: 130px;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li a {
        font-size: 10px;
        padding: 8px 6px;
        height: 48px;
    }
    
    #thai-garden-booking-steps .ui-tabs-nav li a:before {
        width: 22px;
        height: 22px;
        font-size: 11px;
        margin-right: 5px;
    }
    
    /* Time slots on smaller screens */
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Calendar needs to be full width */
    #calendar-container {
        max-width: 100%;
    }
}

/* Messages */
#thai-garden-booking-messages {
    margin-bottom: 20px;
}

.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

/* Tabs - Box Style with number on left - squared corners and no gaps */
#thai-garden-booking-steps .ui-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    position: relative;
    justify-content: space-between;
    gap: 0; /* Remove gap between tabs */
    width: 100%;
}

#thai-garden-booking-steps .ui-tabs-nav li {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 2;
    max-width: none; /* Remove max-width restriction */
    margin: 0;
}

#thai-garden-booking-steps .ui-tabs-nav li a {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: #666;
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 12px;
    line-height: 1.3;
    padding: 12px 10px;
    text-align: left;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 0; /* Square corners */
    height: 100%;
    align-items: center;
    box-shadow: none; /* Remove shadow */
}

/* Make tabs touch each other by removing right border except for last tab */
#thai-garden-booking-steps .ui-tabs-nav li:not(:last-child) a {
    border-right: none;
    margin-right: -1px; /* Compensate for borders to avoid double thickness */
}

#thai-garden-booking-steps .ui-tabs-nav li a:before {
    content: attr(data-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f8f8f8;
    border: 2px solid #ddd;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

#thai-garden-booking-steps .ui-tabs-nav li.ui-tabs-active {
    position: relative;
    z-index: 5; /* Higher z-index for the active tab li element */
}

#thai-garden-booking-steps .ui-tabs-nav li.ui-tabs-active a {
    color: #dac494;
    background-color: #fff;
    border: 1px solid #dac494;
    box-shadow: none;
    position: relative;
    z-index: 5;
    margin-right: -1px; /* Ensure no gap with next tab */
}

/* Fix for the active tab border */
#thai-garden-booking-steps .ui-tabs-nav li.ui-tabs-active:not(:last-child) a {
    border-right: 1px solid #dac494; /* Ensure right border is visible */
    margin-right: -1px; /* Compensate for the missing border on adjacent tabs */
}

#thai-garden-booking-steps .ui-tabs-nav li.ui-state-disabled a {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #f1f1f1;
}

/* Completed steps - ensure these rules are available */
#thai-garden-booking-steps .ui-tabs-nav li.step-completed a {
    background-color: #dac49440;
    border-color: #dac494;
}

#thai-garden-booking-steps .ui-tabs-nav li.step-completed a:before {
    background-color: #dac494;
    border-color: #dac494;
    color: #fff;
    content: "✓";
}

/* Tab Content */
#thai-garden-booking-steps .ui-tabs-panel {
    padding: 20px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

#thai-garden-booking-steps h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

/* Branches */
.branches-container {
    width: 100%;
    padding: 0;
}

/* Add branches-container to the grid layout rule */
.treatment-categories-grid,
.category-services-list,
.branches-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Responsive adjustments - update to include branches-container */
@media (max-width: 1200px) {
    .treatment-categories-grid,
    .category-services-list,
    .branches-container {
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .treatment-categories-grid,
    .category-services-list,
    .branches-container {
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .treatment-categories-grid,
    .category-services-list,
    .branches-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.branch-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.branch-item.selected {
    border-color: #dac494;
    box-shadow: 0 0 10px rgba(218, 196, 148, 0.3);
}

.branch-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.branch-item h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1em;
}

.branch-address {
    margin-bottom: 10px;
    color: #666;
}

.branch-phone {
    font-size: 14px;
    margin: 0 0 10px 0;
}

.branch-maps {
    font-size: 14px;
    margin: 0 0 15px 0;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    color: #267d6c;
    text-decoration: none;
    background-color: rgba(38, 125, 108, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.maps-link:hover {
    background-color: rgba(38, 125, 108, 0.2);
    color: #0c6b58;
}

.maps-icon {
    margin-right: 5px;
    font-size: 16px;
}

.branch-select-btn {
    background-color: var(--primary-color, #dac494);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: auto;
    -webkit-appearance: none; /* Removes default styling on iOS */
    appearance: none;
    font-size: 16px;
}

.branch-select-btn:hover {
    background-color: #c1a678;
}

/* Services Container - Match branches-container grid layout */
.services-container {
    width: 100%;
    padding: 0;
    display: block; /* Explicitly set to block if needed */
}

/* At line 419 & 425 - Keep only responsive adjustments not related to grid */
@media (max-width: 992px) {
    /* Responsive grid adjustments are now consolidated */
}

@media (max-width: 576px) {
    /* Responsive grid adjustments are now consolidated */
}

/* Service item styling */
.service-item {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    background-color: #fff;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.service-item:hover {
    transform: translateY(-3px);
}

.service-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.service-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.service-duration {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

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

.service-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    text-align: center;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    min-width: 80px;
}

/* Quantity Selector styles */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 110px;
    height: 36px;
    background: #fff;
}

.quantity-button {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    color: #555;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.quantity-button:hover {
    background: #e0e0e0;
}

.quantity-button:focus {
    outline: none;
}

.quantity-button.minus {
    border-right: 1px solid #ddd;
}

.quantity-button.plus {
    border-left: 1px solid #ddd;
}

.quantity-display {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 0 5px;
}

/* Replace service-add-to-cart-btn with add-to-cart */
.add-to-cart {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.add-to-cart-button {
    background-color: #dac494;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.2s;
}

.add-to-cart-button:hover {
    background-color: #c1a678;
}

.add-to-cart-button.in-cart {
    background-color: #dac494;
}

/* Mobile styling for treatment card: move quantity selector above add button */
@media (max-width: 768px) {
    .service-variation {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
    }
    
    .service-details {
        flex: 1;
        min-width: 150px;
        max-width: 60%;
        margin-right: 10px;
        display: flex;
        align-items: center;
    }
    
    .service-price {
        margin: 0 0 0 10px;
    }
    
    .add-to-cart {
        flex-direction: column;
        align-items: flex-end;
        margin-left: 0;
    }
    
    .quantity-selector {
        margin-bottom: 8px;
        width: 110px;
    }
    
    .add-to-cart-button {
        margin-left: 0;
        width: 110px;
    }
}

/* Extra small screens mobile styling */
@media (max-width: 576px) {
    .service-variation {
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        border: 1px solid #eee;
        border-radius: 6px;
        margin-bottom: 10px;
        justify-content: space-between;
        align-items: center;
    }
    
    .service-details {
        flex: 1;
        min-width: 150px;
        max-width: 60%;
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }
    
    .service-duration {
        margin-right: 10px;
        white-space: nowrap;
        font-size: 13px;
    }
    
    .service-price {
        white-space: nowrap;
        margin: 0 0 0 5px;
        padding: 4px 8px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .add-to-cart {
        align-self: flex-end;
        margin-left: 0;
    }
    
    .quantity-selector {
        width: 110px;
        margin-bottom: 6px;
    }
    
    .add-to-cart-button {
        width: 110px;
        font-size: 13px;
        padding: 6px 8px;
    }
}

/* Date & Time */
.date-time-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .date-time-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .date-picker-container,
    .time-slots-container {
        width: 100%;
    }
}

.date-picker-container {
    margin-bottom: 20px;
}

.date-picker-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

#booking-date {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc !important; /* Added !important to override the general rule */
    border-radius: 4px;
    background-color: #fff;
}

#booking-date:focus {
    border-color: var(--primary-color, #4CAF50) !important; /* Added !important */
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.time-slots-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.time-slot {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.time-slot:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.time-slot.selected {
    background-color: #4caf50;
    color: white;
    border-color: #43a047;
}

/* Responsive styling for time slots */
@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .time-slot {
        padding: 10px 8px;
        font-size: 13px;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group select {
    height: 45px;
    background-color: #fff;
}

.form-group .description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color, #4CAF50) !important; /* Added !important */
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.form-group textarea {
    min-height: 100px;
}

@media (max-width: 768px) {
    .form-group input, 
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;   /* Larger touch target */
    }
    
    .time-slot {
        padding: 14px 8px; /* Larger touch target for time slots */
        font-size: 15px;
    }
    
    .ui-datepicker-calendar td a {
        padding: 8px !important; /* Larger touch target for calendar days */
    }
}

/* GDPR Checkbox Styling */
.form-group-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
    width: auto; /* Override 100% width */
    margin-right: 10px;
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    height: 16px;
    width: 16px;
    vertical-align: middle; /* Align checkbox better with text */
}

/* Booking Summary */
.booking-summary {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.booking-summary h4 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* New styles for integrated treatment list */
.summary-cart-items { /* Renamed from .summary-treatment-list in HTML to match JS output */
    margin: 5px 0 15px 0; /* Adjust spacing */
}
.summary-treatment-details { /* Target the ul generated by JS */
    margin-left: 20px; /* Add some margin for indentation */
}
.summary-treatment-details li {
    padding: 3px 0; /* Add small spacing between items */
    font-size: 14px; /* Match other summary text */
    color: #555; /* Match other summary text color */
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #45a049;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Loading Message */
.loading-message {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Error Message */
.error {
    color: #721c24;
    padding: 10px;
    text-align: center;
}

/* Date & Time Step */
#calendar-container {
    margin-bottom: 20px;
    width: 100%;
    max-width: 325px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#calendar-container .ui-datepicker {
    width: 100%;
}

#calendar-container .ui-datepicker-header {
    color: #555555;
    padding: 10px;
    border-radius: 4px 4px 0 0;
}

#calendar-container .ui-datepicker-title {
    font-weight: bold;
}

#calendar-container .ui-datepicker-calendar {
    width: 100%;
    background: #fff;
    border-radius: 0 0 4px 4px;
    padding: 5px;
}

#calendar-container .ui-datepicker-calendar th {
    padding: 7px;
    text-align: center;
    font-weight: normal;
    font-size: 13px;
}

#calendar-container .ui-datepicker-calendar td {
    padding: 3px;
    text-align: center;
}

#calendar-container .ui-datepicker-calendar .ui-state-default {
    display: block;
    padding: 5px;
    text-decoration: none;
    border-radius: 4px;
}

#calendar-container .ui-datepicker-calendar .ui-state-active {
    background-color: white !important;
    color: var(--primary-color, #4CAF50) !important;
    font-weight: bold;
    text-shadow: none;
    border: 2px solid var(--primary-color, #0c6b58) !important;
}

/* Restore active tab styling */
#thai-garden-booking-steps .ui-tabs-nav li.ui-tabs-active a:before {
    background-color: #dac494;
    border-color: #dac494;
    color: #fff;
}

/* Remove the after pseudo-element since we're using before for the number */
#thai-garden-booking-steps .ui-tabs-nav li a:after {
    display: none;
}

/* Step Navigation - CONSOLIDATED DEFINITIVE STYLING */
.step-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #e9e9e9;
    text-decoration: none;
    color: #333;
}

/* Cart Button Styling */
.view-cart-btn,
.return-to-treatments-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    background-color: #dac494 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    min-width: 110px !important;
}

/* Add the cart icon only through CSS to avoid duplicates */
.view-cart-btn:before {
    content: '🛒' !important;
    margin-right: 6px !important;
    font-size: 16px !important;
    display: inline-block !important;
}

.view-cart-btn:hover,
.return-to-treatments-btn:hover {
    background-color: #c1a678 !important;
    text-decoration: none !important;
    color: white !important;
}

.cart-count {
    background-color: white !important;
    color: #dac494 !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    margin-left: 5px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Mobile Styling - Definitive Version */
@media (max-width: 768px) {
    .step-navigation {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .nav-right {
        margin-left: auto !important;
    }
    
    .back-btn, 
    .view-cart-btn {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
}

/* Mobile Styling for small screens */
@media (max-width: 480px) {
    .step-navigation {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .nav-left, .nav-right {
        width: 100% !important;
        margin: 5px 0 !important;
    }
    
    .back-btn, .view-cart-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .view-cart-btn {
        margin-left: 0 !important;
    }
    
    .view-cart-btn:before {
        font-size: 14px !important;
    }
}

/* Categories in Step 2 */
.treatment-categories-container {
    margin-bottom: 20px;
}

.treatment-category-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #ddd;
}

.treatment-category-tab {
    padding: 12px 20px;
    margin: 0 5px 0 0;
    cursor: pointer;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s ease;
}

.treatment-category-tab:hover {
    background-color: #e9e9e9;
}

.treatment-category-tab.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.treatment-category-content {
    display: none;
}

.treatment-category-content.active {
    display: block;
}

.category-description {
    margin-bottom: 20px;
    font-style: italic;
    color: #666;
}

@media (max-width: 576px) {
    .treatment-category-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .treatment-category-tab {
        margin: 0 0 5px 0;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
}

/* Override to force 4-column layout */
:root {
    --grid-columns: 4;
}

/* Category Container - 4 columns layout with explicit sizing */
.treatment-categories-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    box-sizing: border-box;
}

/* Make service container and treatment categories grid use the same column configuration */
.treatment-categories-grid,
.category-services-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Individual Category Card - Match branch-item styling */
.category-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .treatment-categories-grid,
    .category-services-list {
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .treatment-categories-grid,
    .category-services-list {
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .treatment-categories-grid,
    .category-services-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-image {
        height: 150px; /* Slightly larger image for single column */
    }
}

/* Keep hover and active styles - match branch-item selected state */
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.category-card.active,
.category-card.selected {
    border-color: #dac494;
    box-shadow: 0 0 10px rgba(218, 196, 148, 0.3);
}

/* Make sure the buttons inside take full width */
.category-card .service-select-btn {
    width: 100%;
    margin-top: auto;
}

/* Category Image Section */
.category-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Category Title Section - match branch-item h4 styling */
.category-title {
    margin-top: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Hide empty cards */
.category-card:empty {
    display: none;
}

/* Category back button */
.category-back-btn {
    display: inline-block;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-back-btn:hover {
    background-color: #e9e9e9;
    text-decoration: none;
    color: #333;
}

/* Show back button only when viewing a specific category */
.treatment-category-content.active .category-back-btn {
    display: inline-flex;
}

.treatment-categories-container .category-back-btn {
    display: none; /* Hide by default */
}

/* Category services list layout - match other grid layouts */
.category-services-list {
    width: 100%;
    margin-bottom: 20px;
}

.category-services-list .service-item {
    margin-bottom: 0;
}

/* Responsive adjustments for category services */
@media (max-width: 992px) {
    .category-services-list {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .category-services-list {
        gap: 15px;
    }
}

/* Cart Styles */
.cart-container {
    margin-top: 20px;
    max-width: 100%;
}

.thai-garden-cart-container {
    max-width: 100%;
    background-color: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

/* REMOVE the original .return-to-treatments-btn styles */
/* 
.return-to-treatments-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.return-to-treatments-btn:hover {
    background-color: #357abD;
    text-decoration: none;
    color: white;
}
*/

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.cart-item-meta {
    display: flex;
    font-size: 14px;
    color: #666;
}

.cart-item-duration {
    margin-right: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.cart-item-quantity label {
    margin-right: 5px;
    font-size: 14px;
}

.cart-quantity-select {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.cart-item-total {
    font-weight: 600;
    margin: 0 15px;
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    margin-left: 10px;
}

.remove-cart-item {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-cart-item:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.cart-summary {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cart-totals {
    display: flex;
    flex-direction: column;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.cart-total-row:last-child {
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 5px;
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.continue-shopping-btn,
.clear-cart-btn,
.proceed-to-booking-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.continue-shopping-btn {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.continue-shopping-btn:hover {
    background-color: #eee;
    text-decoration: none;
}

.clear-cart-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
}

.clear-cart-btn:hover {
    background-color: #c0392b;
    text-decoration: none;
    color: white;
}

.proceed-to-booking-btn {
    background-color: #2ecc71;
    color: white;
    flex-basis: 100%;
    margin-top: 10px;
}

.proceed-to-booking-btn:hover {
    background-color: #27ae60;
    text-decoration: none;
    color: white;
}

#summary-cart-items {
    margin: 10px 0;
}

.summary-cart-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.summary-cart-item-name {
    font-weight: 600;
}

.summary-cart-item-details {
    display: flex;
    font-size: 14px;
    color: #666;
    justify-content: space-between;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
        padding: 12px 0;
    }
    
    .cart-item-details {
        flex: 1 0 60%;
    }
    
    .cart-item-quantity {
        order: 3;
        margin: 10px 0 0 0;
    }
    
    .cart-item-total {
        flex: 1 0 20%;
        order: 2;
        text-align: right;
    }
    
    .cart-item-remove {
        order: 4;
        margin: 10px 0 0 auto;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .continue-shopping-btn,
    .clear-cart-btn,
    .proceed-to-booking-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Additional animation for adding to cart */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-added-animation {
    animation: cartPulse 0.5s ease-in-out;
}

/* Bottom Navigation */
.step-bottom-navigation {
    margin-top: 30px;
    text-align: center;
}

.step-bottom-navigation .review-treatments-btn {
    padding: 12px 20px !important;
    font-size: 16px !important;
    min-width: 200px !important;
}

/* Services grid layout */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Media queries for responsive grid */
@media (max-width: 992px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}

/* Category services title */
.category-services-title {
    margin: 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #e9e9e9;
    text-decoration: none;
    color: #333;
}

@media (max-width: 768px) {
    .step-navigation {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }
    
    .nav-right {
        margin-left: auto;
    }
    
    .back-btn, 
    .view-cart-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Mobile fixes for smaller screens */
@media (max-width: 480px) {
    .step-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-left, .nav-right {
        width: 100%;
        margin: 5px 0;
    }
    
    .back-btn, .view-cart-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .view-cart-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .view-cart-btn:before {
        font-size: 14px;
    }
}

/* Review Treatments Button */
.review-treatments-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #dac494 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    min-width: 110px !important;
}

.review-treatments-btn:hover {
    background-color: #c1a678 !important;
    text-decoration: none !important;
    color: white !important;
}

@media (max-width: 768px) {
    .nav-buttons-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .review-treatments-btn {
        width: calc(50% - 5px);
        justify-content: center;
    }
}

/* Phone Input Styling */
.iti {
    width: 100%;
    display: block;
    margin-bottom: 5px;
}

.iti__flag-container {
    z-index: 3;
}

.phone-input-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
}

.country-code-select {
    width: 120px;
    min-width: 120px;
    flex-shrink: 0;
    height: 42px; /* Match input height */
    font-size: 16px; /* Prevent iOS zoom */
    padding: 8px 12px;
    text-align: left;
}

.phone-input-container input[type="tel"] {
    flex-grow: 1;
    min-width: 150px;
    height: 42px; /* Match select height */
    font-size: 16px; /* Prevent iOS zoom */
    padding: 8px 12px;
}

/* Mobile-specific adjustments for phone input */
@media (max-width: 480px) {
    .phone-input-container {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .country-code-select {
        width: 100px;
        min-width: 100px;
        height: 48px; /* Increased height for better touchability */
        font-size: 16px;
        text-align: left;
        padding-left: 8px;
        border-radius: 4px;
        border: 1px solid #ddd;
        box-shadow: none;
        outline: none;
        margin-bottom: 0;
    }
    
    .phone-input-container input[type="tel"] {
        width: 100%;
        height: 48px; /* Match the dropdown height */
        font-size: 16px;
        margin-top: 0;
    }
}

/* Service variations */
.service-variations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.service-variation {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.service-variation:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-variation.default-variation {
    background-color: transparent;
    border-color: #e5e5e5;
}

.service-variation .service-details {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.service-variation-mobile {
    display: none; /* Hide on desktop by default */
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.mobile-cart-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
}

.mobile-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-variation-selector {
    flex: 1;
    min-width: 0;
}

.variation-dropdown {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Mobile styling for treatment card */
@media (max-width: 768px) {
    .desktop-variation {
        display: none; /* Hide desktop variations on mobile */
    }
    
    .service-variation-mobile {
        display: block; /* Show mobile variations */
    }
    
    .service-details {
        display: none; /* Hide individual price/duration details */
    }
    
    .quantity-selector {
        width: 110px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .add-to-cart-button {
        margin-left: 0;
        width: 110px;
        flex-shrink: 0;
    }
}

/* Extra small screens mobile styling */
@media (max-width: 576px) {
    .service-variation-mobile {
        padding: 12px;
        border: 1px solid #eee;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .mobile-cart-actions {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .mobile-button-group {
        gap: 6px;
    }
    
    .variation-dropdown {
        padding: 8px 24px 8px 8px;
        font-size: 13px;
        background-position: right 6px center;
        background-size: 16px;
    }
    
    .mobile-variation-selector {
        flex: 1;
        min-width: 0;
    }
    
    .quantity-selector {
        width: 100px;
        height: 32px;
    }
    
    .quantity-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .add-to-cart-button {
        width: 100px;
        font-size: 13px;
        padding: 6px 8px;
    }
}

/* Animation for adding to cart */
@keyframes addedToCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-added-animation {
    animation: addedToCart 0.4s ease;
}

/* Popular tag styling */
.popular-tag {
    display: none; /* Hide the popular tag instead of removing it completely */
}