.abc-react-booking-form {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 550px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.abc-react-booking-form h2, .abc-react-booking-form h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
}
/* ✅ **THE FIX:** New styles for the time slot picker */
.time-picker-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}
.back-to-calendar {
    background: none;
    border: none;
    color: #0073e6;
    cursor: pointer;
    font-size: 0.9rem;
    align-self: flex-start;
}
.time-picker-header label {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}
.time-slot-btn {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s;
}
.time-slot-btn:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}
.time-slot-btn.selected {
    background-color: #0073e6;
    color: #fff;
    border-color: #0073e6;
    font-weight: 600;
}
.time-slots-loading, .time-slots-none {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    background-color: #f9fafb;
    border-radius: 6px;
}
.time-slot-btn.wide {
    display: flex;
    flex-direction: column; /* Stack the content vertically */
    align-items: center;    /* Center the content */
    justify-content: center;
    text-align: center;
    padding: 12px 8px;      /* Adjust padding for a better look */
    height: auto;           /* Allow the button height to adjust to its content */
    line-height: 1.4;       /* Improve line spacing */
}

.time-slot-btn.wide .slot-name {
    font-weight: bold;
    font-size: 1em;
}

.time-slot-btn.wide .slot-time {
    font-size: 0.9em;
    color: #555;
    margin: 2px 0;
}

.time-slot-btn.wide .slot-price {
    font-size: 0.9em;
    font-weight: bold;
    color: #0073aa; /* A standard WordPress blue */
}

.time-slot-btn.wide.selected {
    background-color: #0073aa; /* WordPress blue */
    color: #fff; /* White text for contrast */
    border-color: #0073aa;
}

/* This ensures all text inside the selected button becomes white */
.time-slot-btn.wide.selected .slot-name,
.time-slot-btn.wide.selected .slot-time,
.time-slot-btn.wide.selected .slot-price {
    color: #fff;
}
.abc-react-booking-form h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}
.abc-react-booking-form input[type="text"],
.abc-react-booking-form input[type="email"],
.abc-react-booking-form input[type="tel"],
.abc-react-booking-form input[type="number"],
.abc-react-booking-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #f9f9f9;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendar-header span {
    font-weight: 600;
    font-size: 1.1rem;
}
.calendar-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0073e6;
}

/* THE FIX: Styling for the bottom section */
/* THE FIX: Styling for the new price breakdown section */
.abc-booking-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 2rem;
}

.price-breakdown {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.price-line span:first-child {
    color: #555;
}
.price-line span:last-child {
    font-weight: 600;
    color: #333;
}

.price-line.discount span {
    color: #155724; /* Green for discount */
}

.price-line.total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.abc-react-booking-form button[type="submit"] {
    width: 100%; /* Make button full width in the new layout */
    padding: 1rem 2rem;
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Response Messages */
.form-response {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    text-align: center;
}
.form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2.5rem 0;
}

/* NEW: Coupon Group Styles */
.coupon-group {
    margin-top: 2rem;
}
.coupon-input-wrapper {
    display: flex;
    gap: 10px;
}
.coupon-input-wrapper input {
    flex-grow: 1;
}
.coupon-input-wrapper button {
    padding: 0 20px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.coupon-message {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #155724;
}