/* Button Styles */
.salon-button {
    border: none;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%; /* Ensure container doesn't extend beyond parent */
}

.category-buttons {
    margin-bottom: 5px;
    max-width: 100%; /* Prevent buttons from causing overflow */
}

.category-btn {
    background-color: var(--inner-box-background-color, #ffffff);
    border: 1px solid var(--border-color, #dddddd);
    color: var(--text-color, #333333);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for text that's too long */
    max-width: 100%; /* Prevent buttons from causing overflow */
}

.category-btn:hover {
    background-color: var(--primary-button-color, #4a90e2);
    color: white;
}

.category-btn.active {
    background-color: var(--primary-button-color, #4a90e2);
    color: white;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Contact Form Styles */
.contact-form-section {
    margin-bottom: 40px;
}

.contact-form-section h2 {
    margin-bottom: 25px;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .primary-btn:hover {
    background-color: #2a70c7;
}

/* Map Section */
.map-section {
    margin-top: 40px;
}

.map-section h2 {
    margin-bottom: 20px;
}

.map-container {
    height: 300px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.map-placeholder .address {
    margin-top: 10px;
    font-weight: 500;
}/* Base Styles */
:root {
    --primary-color: #028ea9;
    --secondary-color: #f0f4f8;
    --accent-color: #e83e8c;
    --light-text: #777;
    --white: #fff;
    --border-color: #ddd;
    --success-color: #28a745;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --background-color: #f8f9fa;
    --inner-box-background-color: #fff;
    --main-menu-text-color: #333;
    --main-menu-hover-color: #028ea9;
    --banner-background-color: #028ea9;
    --banner-text-color: #fff;
    --business-name-heading-color: #028ea9;
    --text-heading-color: #333;
    --text-subheading-color: #555;
    --text-color: #333;
    --primary-button-color: #028ea9;
    --secondary-button-color: #a768f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header and Navigation */
header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: relative;
}

.logo img {
    max-height: 100px;
    max-width: 80%;
}

nav {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
}

.main-menu li {
    margin-left: 30px;
}

.main-menu a {
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    color: var(--main-menu-text-color);
}

.main-menu a.active,
.main-menu a:hover {
    color: var(--main-menu-hover-color);
}

.main-menu a.active::after,
.main-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-menu-hover-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    color: var(--primary-button-color);
    z-index: 100; /* Ensure it's above other elements */
    position: relative;
}

.mobile-menu-toggle:hover {
    /* transform: scale(1.1); */
}

/* Booking Header Section */
.booking-header {
    background-color: var(--banner-background-color);
    color: var(--banner-text-color);
    padding: 50px 0;
    text-align: center;
}

.booking-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Main Content Layout */
.main-content {
    padding: 50px 0;
    background-color: var(--background-color)
}

.content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.content-main {
    flex: 1;
    min-width: 300px;
}

.content-box {
    background-color: var(--inner-box-background-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.sidebar {
    width: 350px;
}

.salon-image {
    margin-bottom: 30px;
}

.salon-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.business-hours-card,
.contact-card {
    background-color: var(--inner-box-background-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.business-hours-card h3,
.contact-card h3 {
    color: var(--text-subheading-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3rem;
}
.business-hours-card h2,
.contact-card h2 {
    color: var(--business-name-heading-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5rem;
}

.business-hours-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.business-hours-card ul li:last-child {
    border-bottom: none;
}

.business-hours-card ul li .day {
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.business-hours-card ul li .time {
    flex: 1;
    text-align: right;
}

/* Services Section (now inside content-box) */
.services-section {
    padding: 0;
}

/* Contact styles now in sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 25px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

#available-times {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.time-slot {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--light-text);
}

/* Map Card Styles */
.map-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.map-container {
    height: 250px;
    width: 100%;
    background-color: #eee;
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    padding: 20px;
}

/* Social Media Card Styles */
.social-card {
    background-color: var(--inner-box-background-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.social-card h3 {
    color: var(--text-heading-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

/* Facebook */
.social-icon.facebook {
    background-color: #3b5998;
}

/* Instagram */
.social-icon.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

/* Twitter */
.social-icon.twitter {
    background-color: #1da1f2;
}

/* YouTube */
.social-icon.youtube {
    background-color: #ff0000;
}

.retail-list {
    margin-top: 20px;
}

/* Service list styling */
.services-list {
    margin-top: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
}

.service-info {
    flex: 1;
}

.service-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-heading-color);
}

.service-details {
    display: flex;
    margin-bottom: 8px;
}

.service-duration {
    margin-right: 15px;
    font-size: 14px;
    color: #666;
}

.service-price {
    font-weight: 600;
    color: var(--text-color);
}

.service-description {
    font-size: 13px;
    color: #777;
    margin: 0;
    position: relative;
    max-height: 3em;  /* About 2-3 lines of text */
    overflow: hidden;
    margin-bottom: 5px;
    transition: max-height 0.3s ease;
}

.service-description.expanded {
    max-height: 500px; /* Enough for most descriptions */
}

.service-description-toggle {
    color: var(--primary-color, #007bff);
    cursor: pointer;
    display: inline-block;
    font-size: 0.85em;
    margin-top: 2px;
    font-weight: 500;
}

.service-description-toggle:hover {
    text-decoration: underline;
}

.service-checkbox {
    margin-left: 15px;
}

.service-checkbox i {
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.no-services-message, 
.error-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: #d9534f;
}


/* Animation for checkbox */
@keyframes checkmark {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.service-item.selected .service-checkbox i {
    animation: checkmark 0.3s ease-in-out;
}

/* Selected Services Section */
.booking-div {
    margin-top: 20px;
}

.selected-services-container h2,
.staff-selection-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 30px;
    color: var(--text-heading-color);
}

.selected-services-container h2,
.calendar-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-heading-color);
}

.selected-retail-list .retail-item {
    margin-bottom: 15px;
}

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

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

.remove-service-btn {
    background: none;
    border: none;
    color: #d9534f;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.remove-service-btn:hover {
    background-color: rgba(217, 83, 79, 0.1);
}

.remove-retail-btn {
    background: none;
    border: none;
    color: #d9534f;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.remove-retail-btn:hover {
    background-color: rgba(217, 83, 79, 0.1);
}

/* Staff Selection Section */
.staff-section {
    margin-bottom: 30px;
}

.staff-section-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-subheading-color);
}

.staff-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.staff-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.staff-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.staff-member:hover {
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
}

.staff-member.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
}

.staff-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
}

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

.staff-name {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.staff-select-indicator {
    display: none;
    color: var(--primary-color);
    font-size: 18px;
}

.staff-member.selected .staff-select-indicator {
    display: block;
}

.any-staff .staff-image {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.any-staff .staff-image img {
    opacity: 0.7;
}

/* Action Buttons */
.booking-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 30px;
}

.add-service-btn,
.continue-booking-btn,
.save-guest-button,
.confirm-booking-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-service-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    /* float right */
    margin-left: auto;
    margin-right: 0px;
}

.add-service-btn:hover {
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
}

.add-retail-btn,
.continue-booking-btn,
.save-guest-button,
.confirm-booking-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-retail-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    /* float right */
    margin-left: auto;
    margin-right: 0px;
}

.add-retail-btn:hover {
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
}

.continue-booking-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.save-guest-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.save-guest-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.continue-booking-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.confirm-booking-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    margin-left: auto;
    margin-right: 0px;
}

.confirm-booking-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure proper error message display */
.no-staff,
.error-message {
    color: #666;
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px;
}

.error-message {
    color: #d9534f;
}

.datepicker {
    width: 100% !important;
}

.datepicker-inline {
    width: 100% !important;
}

.datepicker table {
    width: 100% !important;
}

.datepicker {
    padding: 5px;
}

.datepicker table tr th,
.datepicker table tr td {
    width: 32px;
    height: 32px;
}

.datepicker .datepicker-switch {
    width: 120px;
    font-size: 14px;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: #fff !important;
}

/* Staff Slots Styling */
.staff-slots {
    margin-top: 25px;
    padding-top: 0px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.slots-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-subheading-color);
}

.staff-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.staff-slot {
    background-color: var(--inner-box-background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.staff-slot:hover {
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
    border-color: var(--primary-color);
}

.staff-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.staff-slots-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.booking-summary {
    margin-bottom: 30px;
}

.col-md-12 {
    margin-bottom: 20px;
}
.booking-summary h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-heading-color);
}
.booking-summary h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-subheading-color);
}
.booking-total h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-subheading-color);
}
.booking-deposit h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-subheading-color);
}
.booking-summary p {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-subheading-color);
}
.booking-summary .service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.booking-summary .service-item:last-child {
    border-bottom: none;
}
.booking-summary .service-item .service-name {
    font-size: 14px;
    color: var(--text-heading-color);
}
.booking-summary .service-item .service-price {
    font-size: 14px;
    color: var(--text-subheading-color);
}
.booking-summary .service-item .service-duration {
    font-size: 14px;
    color: var(--text-subheading-color);
}

/* Form Styling */
.booking-client-details {
    background-color: var(--inner-box-background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-top: 25px;
}

.booking-client-details-header {
    margin-bottom: 20px;
}

.booking-client-details-header h2 {
    font-size: 22px;
    color: var(--text-heading-color);
    margin-bottom: 0;
}

.booking-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 12px;
    height: auto;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 0, 123, 255), 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-text {
    margin-top: 0.25rem;
    font-size: 85%;
}

/* Form actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.back-btn {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-btn:hover {
    background-color: var(--primary-color);
}

.continue-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.continue-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Form validation styles */
.form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Loading overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-message {
    color: white;
    font-size: 16px;
}

/* Override Bootstrap link styling */
a {
    text-decoration: none !important; /* !important to override Bootstrap */
}

a:hover {
    text-decoration: none !important;
}

/* If you want to keep underlines only for specific links, you can target them */
.content-main a.text-link {
    text-decoration: underline;
}

/* Sidebar contact links */
.contact-item a {
    text-decoration: none !important;
    color: inherit;
}

.contact-item a[href^="mailto:"] {
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Menu links */
.main-menu a {
    text-decoration: none !important;
}

/* Button links */
a.btn, .salon-button a {
    text-decoration: none !important;
}

/* Cancellation policy custom styling */
.cancellation-policy-row {
    margin-top: 15px;
    margin-bottom: 10px;
}

.cancellation-policy-row.has-error #cancellationError {
    display: block !important;
    color: #dc3545;
    margin-top: 5px;
}

.custom-checkbox.is-invalid {
    border-color: #dc3545;
}

/* Ensure error message is visible */
#cancellationError {
    display: none;
    font-size: 80%;
    margin-top: 5px;
}

.has-error label.cancellation-label {
    color: #dc3545;
}

.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 5px;
}

.custom-checkbox {
    /* Make checkbox larger */
    width: 22px;
    height: 22px;
    margin-right: 12px;
    margin-top: 3px; /* Align with first line of text */
    cursor: pointer;
    flex-shrink: 0;
}

.cancellation-label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    cursor: pointer;
    margin-bottom: 0;
    display: inline;
}

/* Override Bootstrap's checkbox styling */
input[type="checkbox"].custom-checkbox {
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 3px;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
}

input[type="checkbox"].custom-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"].custom-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    line-height: 1;
}

/* Error state for checkbox */
input[type="checkbox"].custom-checkbox.is-invalid {
    border-color: #dc3545;
}

/* Space below the checkbox for error message */
.custom-checkbox-container .invalid-feedback {
    position: absolute;
    top: 100%;
    left: 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Make background darker/less transparent */
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 25px;
    border: 1px solid var(--border-color, #dddddd);
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-color);
    text-decoration: none;
}

.salon-list {
    margin-top: 20px;
}

.salon-option {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.salon-option:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.salon-option h3 {
    margin: 0 0 5px 0;
    color: var(--text-heading-color);
}

.salon-option p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
}

/* Add these styles for the dropdown in the salon change modal */
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading-color);
    margin-bottom: 20px;
    padding-right: 30px; /* Space for the close button */
}

#changeSalonModal .salon-list {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 6px;
    padding: 5px;
}

#changeSalonModal .salon-option {
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff; /* Explicit white background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#changeSalonModal .salon-option:hover {
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#changeSalonModal .salon-option h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-heading-color);
}

#changeSalonModal .salon-option p {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

#changeSalonModal .modal-footer {
    margin-top: 20px;
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Salon search styling */
.search-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-form-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-left: 5px;
}

.search-form-group .search-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.375rem 0.75rem;
    height: 38px; /* Match the height of the input */
}

/* Change salon row styling */
.change-salon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #f9f9f9;
}

.salon-info {
    display: flex;
    flex-direction: column;
}

.salon-name {
    font-weight: 500;
    color: var(--text-heading-color);
    font-size: 15px;
}

.change-salon-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    padding: 5px 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.change-salon-link:hover {
    text-decoration: none;
    color: var(--primary-color);
    opacity: 0.85;
}

.change-salon-link i {
    font-size: 12px;
    margin-top: 1px;
}

/* Voucher styling */
.voucher-button {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-weight: 500;
}

.voucher-button:hover {
    background-color: #f0f0f0;
}

.voucher-button.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.voucher-value-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.voucher-value-input {
    margin-top: 15px;
}

.voucher-value-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.voucher-value-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Voucher Templates */
.voucher-templates-section {
    margin-top: 30px;
}

.voucher-category {
    margin-bottom: 30px;
}

.voucher-category h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-heading-color);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.template-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: white;
}

.template-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.template-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-item:hover .template-image img {
    transform: scale(1.05);
}

.template-select {
    padding: 10px;
    text-align: center;
}

.select-template-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.select-template-btn:hover {
    opacity: 0.9;
}

/* Voucher Recipient Form */
.voucher-recipient-section {
    margin-top: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-heading-color);
}

.terms-checkbox {
    margin-top: 15px;
}

.terms-label {
    font-size: 14px;
}

.terms-label a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.voucher-summary {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
}

.voucher-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-heading-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 10px;
    border-bottom: none;
}

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

.template-category-btn {
    background-color: var(--inner-box-background-color, #ffffff);
    border: 1px solid var(--border-color, #dddddd);
    color: var(--text-color, #333333);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for text that's too long */
    max-width: 100%; /* Prevent buttons from causing overflow */
    margin: 1px;
    margin-bottom: 5px;
}

.template-category-btn:hover {
    background-color: var(--primary-button-color, #4a90e2);
    color: white;
}

.template-category-btn.active {
    background-color: var(--primary-button-color, #4a90e2);
    color: white;
}

.template-category-buttons {
    margin-bottom: 10px;
    max-width: 100%; /* Prevent buttons from causing overflow */
}

/* Retail list styling - matching service-item styling */
.retail-list {
    margin-top: 20px;
}

.retail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.retail-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.retail-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
}

.retail-info {
    flex: 1;
}

.retail-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-heading-color);
}

.retail-details {
    display: flex;
    margin-bottom: 8px;
}

.retail-price {
    font-weight: 600;
    color: var(--text-color);
}

.retail-description {
    font-size: 13px;
    color: #777;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.retail-checkbox {
    margin-left: 15px;
}

.retail-checkbox i {
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

/* Animation for checkbox - reusing the same animation as service-item */
.retail-item.selected .retail-checkbox i {
    animation: checkmark 0.3s ease-in-out;
}

/* Retail Product Details Styling */
.retail-product-details {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--box-shadow);
}

/* Product image container */
.product-image {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    object-fit: contain;
}

/* Product information */
.product-info {
    flex: 1;
    padding: 0 10px;
}

.product-info h2 {
    color: var(--text-heading-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.product-info p#productDescription {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-info p#productPrice {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Quantity selector */
.quantity-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-container label {
    margin-right: 10px;
    font-weight: 500;
}

.quantity-container input {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

/* Buttons */
.add-to-cart-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    opacity: 0.9;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.back-to-list-btn, 
.continue-to-checkout-btn {
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.back-to-list-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.continue-to-checkout-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.back-to-list-btn:hover {
    background-color: #e5e5e5;
}

.continue-to-checkout-btn:hover {
    opacity: 0.9;
}

/* Quantity control styling */
.quantity-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.quantity-container label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-heading-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    max-width: 150px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--inner-box-background-color);
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--border-color);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#productQuantity {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background-color: var(--white);
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

/* Remove spinner arrows from number input */
#productQuantity::-webkit-inner-spin-button, 
#productQuantity::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

#productQuantity {
    -moz-appearance: textfield;
}

.inventory-status {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

.inventory-status.low-stock {
    color: #e67e22;
}

.inventory-status.out-of-stock {
    color: #e74c3c;
}

/* Go to Cart button styling */
.goToCartButton {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    margin-bottom: 10px;
}

.goToCartButton button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.goToCartButton button i {
    font-size: 16px;
}

/* Booking services summary list styling */
.booking-details-content {
    margin-bottom: 20px;
}

.booking-details-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.booking-details-content li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.booking-details-content li:last-child {
    border-bottom: none;
}

.retail-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.retail-summary-item p {
    margin: 0;
    font-size: 15px;
    color: var(--text-color);
}

.total-price {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.total-price h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-heading-color);
}

/* International phone input styling */
.phone-input-container {
    position: relative;
}

.iti {
    display: block;
    width: 100%;
}

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

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f5f5f5;
    border-radius: 4px 0 0 4px;
}

.iti__selected-flag:hover {
    background-color: #e9e9e9;
}

.iti__country-list {
    border-radius: 4px;
    max-height: 200px;
    width: 350px;
}

/* Ensure the phone number input looks consistent with other form fields */
#mobileNumber {
    padding-left: 90px !important;
}
 
.iti--separate-dial-code .iti__selected-flag {
    background-color: var(--inner-box-background-color, #ffffff);
}

.iti__country-list {
    background-color: var(--inner-box-background-color, #ffffff);
}

/* Guest Management Styles */
.guest-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .guest-tab {
    padding: 10px 15px;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    background-color: var(--inner-box-background-color);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    border-bottom: none;
    position: relative;
  }
  
  .guest-tab.active {
    background-color: var(--primary-button-color);
    color: #fff;
  }
  
  .guest-tab .remove-guest {
    margin-left: 8px;
    opacity: 0.7;
    font-size: 12px;
  }
  
  .guest-tab .remove-guest:hover {
    opacity: 1;
  }
  
  .guest-services-container {
    display: none;
  }
  
  .guest-services-container.active {
    display: block;
  }
  
  #guestModal .modal-content {
    max-width: 600px;
  }
  
  .empty-guest-message {
    text-align: center;
    padding: 20px;
    color: #666;
    background-color: var(--inner-box-background-color);
    border-radius: 5px;
    margin-bottom: 20px;
  }
  
  .guest-indicator {
    background-color: var(--primary-button-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    display: inline-block;
  }

  /* Add this to your CSS file */
.booking-mode-selector {
    background-color: var(--inner-box-background-color);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.booking-mode-selector h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-heading-color);
}

.booking-mode-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.booking-mode-option {
    flex: 1;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-mode-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
}

.booking-mode-option.active {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
}

.booking-mode-option i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.guest-management {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

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

.guest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-item:hover {
    border-color: var(--primary-color);
}

.guest-item.active {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
}

.guest-item.primary {
    background-color: #fff;
    border-color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 4px;
}

.add-another-guest-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-another-guest-btn:hover {
    background-color: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
}

.remove-guest-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-guest-btn:hover {
    color: #d33;
    background-color: rgba(211, 51, 51, 0.1);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .content-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block; /* Show on mobile */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    header .container {
        padding-right: 60px; /* Add space for the burger icon */
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
      }
    
    .main-menu.show {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .main-menu li {
        margin: 0;
        text-align: center;
    }
    
    .main-menu a {
        display: block;
        padding: 15px;
    }
    
    .booking-header h1 {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20% auto;
    }

    .categories-container {
        justify-content: center;
    }
    
    .category-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .staff-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-client-details, .voucher-recipient-section {
        padding: 15px;
    }
    
    .form-row {
        margin-right: -5px;
        margin-left: -5px;
    }
    
    .form-group {
        padding-right: 5px;
        padding-left: 5px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .back-btn, .continue-btn {
        width: 100%;
    }

    .custom-checkbox {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        margin-top: 2px;
    }
    
    .cancellation-label {
        font-size: 13px;
    }

    .content-box {
        padding: 20px;
    }
    
    .business-hours-card,
    .contact-card {
        padding: 20px;
    }

    .modal-content {
        width: 90%;
    }
    
    .search-form-group {
        width: 100%;
    }

    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .template-image {
        height: 120px;
    }
    
    .voucher-value-buttons {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .retail-product-details {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .product-image {
        width: 40%;
        margin-bottom: 0;
    }
    
    .product-info {
        width: 60%;
        padding: 0 0 0 20px;
    }
    
    .product-actions {
        width: 100%;
        margin-top: 20px;
    }

    .booking-mode-options {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .staff-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-service-btn,
    .add-retail-btn,
    .continue-booking-btn,
    .save-guest-button,
    .confirm-booking-btn {
        width: 100%;
    }

    .datepicker {
        padding: 5px;
    }
    
    .datepicker table tr th,
    .datepicker table tr td {
        width: 32px;
        height: 32px;
    }
    
    .datepicker table tr td.day {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
    
    .datepicker table tr td.active,
    .datepicker table tr td.active:hover,
    .datepicker table tr td.active.disabled,
    .datepicker table tr td.active.disabled:hover {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
    }
    
    .datepicker .datepicker-switch {
        width: 120px;
        font-size: 14px;
    }

    .change-salon-row {
        padding: 10px 12px;
    }
    
    .salon-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        gap: 5px; /* Reduce gap on small screens */
    }
    
    .category-buttons {
        width: 100%; /* Make buttons take full width on very small screens */
    }
    
    .category-btn {
        width: 100%;
        font-size: 12px;
        padding: 5px 10px;
        white-space: normal; /* Allow text to wrap inside buttons */
    }
    
    /* Remove existing rule that's causing issues */
    .service-categories {
        flex-direction: column;
        align-items: center;
    }
    
    /* This rule is causing the overflow issue - modify it */
    .category-btn {
        width: 100%; /* Set to 100% instead of 80% to prevent overflow */
    }

    .staff-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-service-btn,
    .add-retail-btn,
    .continue-booking-btn,
    .save-guest-button,
    .confirm-booking-btn {
        width: 100%;
    }
}