/* =========================================
   MindraCare Booking Widget Styles (Final Design Lock)
   ========================================= */

/* 1. Main Card Container */
.kivicare-booking-container,
.mcp-booking-container {
    background: transparent;
    /* Seamless blend */
    padding: 0;
    margin-bottom: 24px;
    max-width: 100%;
}

/* 2. Headers / Labels */
.kivicare-field-group label,
.mcp-field-group label,
.mcp-slots-header {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 3. Inputs (Date) */
.kivicare-input,
.mcp-input {
    width: 100%;
    height: 50px;
    padding: 10px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    /* Strict 12px */
    font-size: 16px;
    color: #2D3748;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.kivicare-input:focus,
.mcp-input:focus {
    border-color: #5B1879;
    /* Strict Primary */
    box-shadow: 0 0 0 1px #5B1879;
    outline: none;
}

/* 4. Time Slot Grid */
.kivicare-slots-grid,
.mcp-slots-grid {
    display: grid;
    /* Image shows 5 columns */
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

.kivicare-slot-btn,
.mcp-slot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* Strict 48px */
    background-color: #ffffff;
    /* Strict White */
    border: 1px solid #E2E8F0;
    /* Light grey border */
    border-radius: 12px;
    /* Strict 12px */
    color: #4A5568;
    /* Dark Text */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0;
}

.kivicare-slot-btn:hover,
.mcp-slot-btn:hover {
    background-color: #F7FAFC;
    /* Subtle hover */
    border-color: #CBD5E0;
    color: #2D3748;
}

/* Selected State */
.kivicare-slot-btn.selected,
.mcp-slot-btn.selected {
    background-color: #5B1879 !important;
    /* Strict Primary */
    border-color: #5B1879 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(91, 24, 121, 0.2);
}

/* Disabled State */
.kivicare-slot-btn.disabled,
.mcp-slot-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #E2E8F0;
    border-color: #E2E8F0;
}

/* 5. Responsive */
@media (max-width: 768px) {

    .kivicare-slots-grid,
    .mcp-slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {

    .kivicare-slots-grid,
    .mcp-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .kivicare-slot-btn,
    .mcp-slot-btn {
        font-size: 14px;
        height: 44px;
        border-radius: 12px;
    }
}

/* 6. Messages */
#mcp-message {
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
    margin-top: 5px;
}

.mcp-loading {
    color: #718096;
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
}

.mcp-error {
    color: #E53E3E;
    grid-column: 1 / -1;
}

.mcp-no-slots {
    color: #718096;
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: #F7FAFC;
    border-radius: 12px;
}

/* 7. Action Button Overrides (WooCommerce) */
/* Force Cart Form to Column Layout to allow full width button */
form.cart {
    display: flex !important;
    flex-direction: column;
    width: 100%;
}

/* Hide Quantity */
form.cart .quantity {
    display: none !important;
}

/* Add to Cart Button (Book Consultation) */
form.cart button.single_add_to_cart_button {
    background-color: #5B1879 !important;
    /* Strict Primary */
    border-radius: 12px !important;
    height: 50px !important;
    font-weight: 600 !important;
    width: 100% !important;
    /* Full Width */
    margin-top: 10px;
    border: none !important;
    color: #ffffff !important;
}

/* 8. Input Date Specifics */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: #718096;
    opacity: 0.6;
    display: block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center;
    width: 20px;
    height: 20px;
    margin-right: 5px;
}