.id-appointment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.id-appointment-card {
    border: 0;
    border-radius: 16px;
    padding: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.id-appointment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.id-appt-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.id-appt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.id-appointment-card:hover .id-appt-image img {
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Price Badge */
.id-appt-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    color: #333;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Fonts */
.id-booking-wrapper h3,
.id-booking-wrapper h4,
.id-single-sidebar h3 {
    font-family: 'Mulish', sans-serif !important;
    font-weight: 700;
    color: #333;
}

.id-booking-wrapper h3 {
    text-align: center;
    padding-bottom: 5px;
    /* Reduced to sit closer to subtitle */
    margin-bottom: 0;
    font-size: 1.8em;
    font-weight: 800 !important;
    /* Force extra bold */
    color: #000;
    /* Darkest black */
    letter-spacing: -0.5px;
}

.id-booking-wrapper .id-appt-subtitle {
    text-align: center;
    font-size: 1.3em;
    color: #f97d13;
    /* Theme Orange */
    margin-top: 0;
    margin-bottom: 30px;
    /* Space before calendar */
    font-weight: 600;
}

.id-select-wrapper {
    position: relative;
    display: block;
}

.id-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 12px;
    height: 12px;
    border-right: 2px solid #f97d13;
    border-bottom: 2px solid #f97d13;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    transition: all 0.3s ease;
}

.id-select-wrapper:hover::after {
    border-color: #8dc63f;
}

.id-time-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Avenir-Light', sans-serif;
    /* Body font */
    color: #444;
    border: 2px solid #f0f0f0;
    border-radius: 45px;
    /* Pill shape matches button */
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Firefox */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: all 0.3s ease;
}

.id-time-select:focus,
.id-time-select:hover {
    border-color: #f97d13;
    /* Orange border on interaction */
    box-shadow: 0 4px 15px rgba(249, 125, 19, 0.1);
}

.id-appt-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.id-appt-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
}

.id-appt-content h3 a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.id-appt-content h3 a:hover {
    color: #0073aa;
}

.id-appt-duration {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.id-appt-duration i {
    font-size: 1.1em;
}

.id-appt-excerpt {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.id-appt-footer {
    margin-top: auto;
}

.id-book-btn {
    display: block;
    width: 100%;
    background: #f97d13;
    color: #fff !important;
    /* Force white text */
    padding: 15px 0;
    /* Cozier padding */
    text-align: center;
    border-radius: 45px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1em;
    box-shadow: 0 5px 15px rgba(249, 125, 19, 0.3);
    /* Orange glow */
    transition: all 0.3s ease;
    border: none;
}

.id-book-btn:hover {
    background: #8dc63f;
    /* Theme Green for Hover */
    color: #fff;
    transform: translateY(-2px);
}

/* Booking Wrapper: Modern Layout */
.id-booking-wrapper {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.id-booking-main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.id-calendar-section {
    flex: 1 1 300px;
    /* Min width 300px */
}

.id-slots-section {
    flex: 1 1 250px;
    min-width: 250px;
}

/* Flatpickr Customization - Theme Orange/Purple */
.flatpickr-calendar {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    border: none !important;
    width: 320px !important;
    /* Ensure min width fit */
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: #444 !important;
    fill: #444 !important;
    margin-bottom: 10px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
}

.flatpickr-weekdays {
    background: transparent !important;
}

.flatpickr-weekday {
    color: #888 !important;
    font-weight: 600 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #f97d13 !important;
    /* Theme Orange */
    border-color: #f97d13 !important;
}

.flatpickr-day.today {
    border-color: #f97d13 !important;
}

.flatpickr-day:hover {
    background: #f5f5f5 !important;
}

/* Slots Section Override */
#id-booking-slots {
    margin-top: 0;
    /* Clear previous margin */
    max-width: 100%;
}

#id-booking-slots h4 {
    margin-top: 0;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #666;
}

/* Selected Details */
.id-selected-info {
    margin-top: 20px;
    padding: 15px;
    background: #fff6ee;
    /* Light orange tint */
    border: 1px solid #ffead4;
    border-radius: 8px;
    color: #d35400;
    /* Darker orange text */
    font-size: 0.95em;
}

.id-selected-info strong {
    display: block;
    margin-top: 5px;
    font-size: 1.1em;
    color: #333;
}

/* Payment Button (ensure pill style inherits) */
#id-booking-form button.id-book-btn {
    margin-top: 20px;
    width: 100%;
    /* Ensure it fills container */
}

/* Single Page Hero */
.id-appointment-hero {
    min-height: 250px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 40px;
    /* Base padding */
}

.id-hero-overlay {
    z-index: 1;
}

.id-appointment-hero h2 {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.id-appointment-hero .woocommerce-breadcrumb,
.id-breadcrumb-wrapper {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
}

.id-appointment-hero .woocommerce-breadcrumb a,
.id-breadcrumb-wrapper a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.id-appointment-hero .woocommerce-breadcrumb a:hover,
.id-breadcrumb-wrapper a:hover {
    color: #f97d13;
    /* Theme Orange */
}

/* Single Content Area */
.id-single-content {
    background: #fff;
    /* padding: 30px; */
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

/* Single Sidebar Card */
.id-single-sidebar .id-appointment-card {
    padding: 0;
    position: sticky;
    top: 100px;
    /* Sticky sidebar */
}

.id-single-sidebar .id-appointment-card .id-appt-content {
    padding: 30px;
    background: #fdfdfd;
}

.id-single-sidebar h3 {
    margin-top: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.3em;
}