:root {
    --primary-color: #0056d4;
    --purple-50: #f5f3ff;
    --purple-100: #ede9fe;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --primary-gradient: linear-gradient(141deg, rgb(0, 86, 212) 10%, rgb(38, 165, 225) 88%);
    --secondary-color: #2575fc;
    --accent-color: #ff7675;
    --light-bg: #f8f9fa;    
    --dark-bg: #343a40;
    --text-color: #000;
    --light-text: #6c757d;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: "Gabarito", sans-serif !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(to bottom, var(--purple-50), var(--purple-100));
}

.main-container {
    padding: 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Bar Styles */
.progress-container {
    margin-bottom: 20px;
    padding: 0 1rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    background-color: rgba(106, 17, 203, 0.1);
}

.progress-bar {
   background-image: linear-gradient(141deg, rgb(0, 86, 212) 10%, rgb(38, 165, 225) 88%);
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    color: var(--light-text);
    transition: var(--transition);
}

.progress-step.active {
    color: #0056d4;
    font-weight: 500;
}

.progress-step.completed {
    color: var(--secondary-color);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.progress-step.active .step-icon {
    background: rgba(106, 17, 203, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.progress-step.completed .step-icon {
    background: var(--primary-gradient);
    color: white;
}

.step-label {
    font-size: 16px;
    letter-spacing: 0.6px;
    font-weight: 500;
}

/* Booking Card Styles */
.booking-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.booking-header {
    margin-bottom: 2rem;
    text-align: center;
}

.booking-header h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.booking-content {
    margin-bottom: 2rem;
}

/* Category and Services Styles */
.categories-container,
.services-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.categories-container h5, .services-container h5 {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.categories-list {
    overflow-y: scroll;
    max-height: 450px;
    scrollbar-width: thin;
    padding: 0 15px 0 0;
}

.category-btn {
    text-align: left;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    align-items: center;
    background-color: white;
    border: 1px solid #dee2e6;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    color: #0056d4;
    font-size: 16px;
    letter-spacing: 0.6px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 8px;
}

.category-btn:hover,
.category-btn:focus {
    background-color: rgba(106, 17, 203, 0.05);
    border-color: rgba(106, 17, 203, 0.2);
}

.category-btn.active {
    background-color: rgba(106, 17, 203, 0.1);
    border-color: var(--primary-color);
    color: #0056d4;
}

.category-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 0 2px 2px 0;
}

.services-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 450px;
    flex-grow: 1;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--light-text);
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.service-item {
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    background-color: rgba(106, 17, 203, 0.05);
    transform: translateY(-2px);
}

.service-item .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.service-item .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.25);
}

.service-item .form-check-label {
    font-weight: 500;
    padding-left: 0.5rem;
}

/* Summary Container */
.summary-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px dashed rgba(106, 17, 203, 0.3);
}

.summary-container h5 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.selected-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-service-tag {
    background: rgba(106, 17, 203, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-service {
    cursor: pointer;
    color: var(--accent-color);
    transition: var(--transition);
}

.remove-service:hover {
    color: #e74c3c;
}

/* Date and Time Selection Styles */
.date-container,
.time-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.min-grid-wid {
    width: 37% !important;
}

.flatpickr-current-month span.cur-month {
    color: var(--primary-color);
}

.flatpickr-current-month input.cur-year {
    color: var(--primary-color);
    font-weight: 600;
}

.date-container h5, .time-container h5 {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 18px;
}

.calendar-container {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
}

.flatpickr-months .flatpickr-month {
    overflow: visible !important;
}

.flatpickr-months {
    position: relative;
    align-items: center;
}

.time-slots {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.time-slot-btn {
    border: 1px solid #dee2e6;
    background-color: white;
    color: var(--text-color);
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 11px;
    text-align: center;
}

.form-floating .form-control {
    box-shadow: none;
    height: auto;
    min-height: auto;
}

.form-floating .form-control::placeholder {
    color: #000;
}

.time-slot-btn:hover {
    background-color: rgba(106, 17, 203, 0.05);
    border-color: rgba(106, 17, 203, 0.2);
}

.time-slot-btn.selected {
    background-image: linear-gradient(141deg, #0056d4 10%, #26a5e1 88%);
    color: #fff;
}

/* Confirmation Styles */
.confirmation-content {
    padding: 1rem 0;
}

.confirmation-details {
    gap: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.confirmation-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.appointmentPrice {
    font-size: 22px;
}

.confirmation-item.box-second {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.confirmation-item.box-second .total-price-area .confirmation-total p {
    font-size: 22px;
}

.confirmation-item h5 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.confirmation-services {
    display: flex;
    height: 210px;
    overflow-y: scroll;
    flex-direction: column;
    gap: 0.5rem;
}

.confirmation-detail-users h5 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.confirmation-user-details .form-floating input {
    height: auto !important;
    min-height: auto;
    padding: 10px;
    box-shadow: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

.confirmation-user-details .form-floating input::placeholder {
    color: #000;
}

.form-floating > .form-control-plaintext:focus,
.form-floating > .form-control-plaintext:not(:placeholder-shown),
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 10px;
    padding-bottom: 10px;
}

.confirmation-service {
    background-color: white;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirmation-service h3 {
    font-size: 20px;
    color: #000;
    margin-bottom: 0;
}

span.price {
    color: var(--primary-color) !important;
    font-size: 18px !important;
}

.confirmation-datetime p#confirmationDate {
    margin-bottom: 10px;
}

.confirmation-datetime p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-notes textarea {
    resize: none;
}

.confirmation-detail-users {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 15px;
}

/* .confirmation-item.box-height-area {
    height: 300px;
    overflow-y: scroll;
  } */

.time-selected-area {
    margin-bottom: 30px;
}

.confirmation-user-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.confirmation-user-details .form-floating {
    position: relative;
    width: 33.33333%;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
}

.navigation-buttons button#backToServicesBtn {
    margin-right: 40px;
    padding: 0.75rem 1.5rem;
}

.navigation-buttons button#backToDateBtn {
    margin-right: 40px;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-image: linear-gradient(141deg, rgb(0, 86, 212) 10%, rgb(38, 165, 225) 88%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 18px;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: var(--light-text);
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: var(--text-color);
    border-color: #dee2e6;
}

.btn-success {
    background: linear-gradient(135deg, #20bf6b 0%, #0bb197 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-success:hover,
.btn-success:focus {
    box-shadow: 0 5px 15px rgba(32, 191, 107, 0.4);
    transform: translateY(-2px);
}

/* Success Modal Styles */
.success-icon {
    font-size: 5rem;
    color: #20bf6b;
    animation: pulse 1.5s infinite;
}

.confirmation-message {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
}

/* Service Card Styles (replacing checkbox style) */
.service-card {
    padding: 1rem;
    border-radius: 10px;
    background-color: white;
    border: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-card-footer p {
    margin: 0 !important;
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 22px !important;
}
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card h4 {
    margin: 0;
    font-size: 15px;
    color: #0056d4;
    font-weight: 600;
}

.service-card p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--light-text);
}

.service-card.selected {
    background-color: rgba(106, 17, 203, 0.05);
    border-color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* Remove old service item styles */
.service-item {
    display: none;
}

/* Improved calendar styling to match design */


.flatpickr-month {
    border-radius: 0;
    color: #6a11cb;
    fill: #6a11cb;
    margin-bottom: 10px;
}

.flatpickr-current-month {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 10px 0;
}

.flatpickr-weekday {
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.85rem;
}

.flatpickr-day {
    border-radius: 50%;
    margin: 2px;
    height: 38px;
    line-height: 38px;
    width: 38px;
    max-width: 38px;
    font-weight: 500;
    border: none;
}

.flatpickr-day.selected {
    background: #6a11cb;
    border-color: #6a11cb;
    color: white;
}

.flatpickr-day.today {
    border: 1px solid #6a11cb;
    color: #6a11cb;
}

.flatpickr-day.today.selected {
    color: white;
}

.flatpickr-day:hover {
    background: rgba(106, 17, 203, 0.1);
    border-color: transparent;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed {
    color: #d9d9d9;
}

.numInputWrapper:hover {
    background: transparent;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 10px;
    fill: #6a11cb !important;
}

.flatpickr-input[readonly] {
    cursor: pointer;
    display: none;
}
