/* Container */
#wcd-booking-app {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Progress Bar */
.wcd-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.wcd-progress .step {
    flex: 1;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 4px;
    border-bottom: 2px solid #ddd;
    color: #999;
}
.wcd-progress .step.active {
    border-color: #0073aa;
    color: #0073aa;
}

/* Step Content */
.wcd-step-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
}
.wcd-step-content p {
    margin: 0 0 8px;
}

/* Rows & Inputs */
.wcd-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.wcd-row input[type="text"],
.wcd-row input[type="email"],
.wcd-row input[type="tel"],
.wcd-row input[type="date"] {
    flex: 1;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Buttons */
.wcd-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    padding: 10px 16px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}
.wcd-btn:hover {
    background: #005f8a;
}
.wcd-btn-text {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

/* Grid for dentists */
.wcd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.wcd-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.wcd-card h4 {
    margin: 0 0 4px;
    font-size: 14px;
}
.wcd-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}
.wcd-card:hover {
    border-color: #0073aa;
    background: #f9fafb;
}

/* Services list */
.wcd-list-group {
    border-radius: 6px;
    border: 1px solid #eee;
    overflow: hidden;
}
.wcd-list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.wcd-list-item:last-child {
    border-bottom: none;
}
.wcd-list-item:hover {
    background: #f9fafb;
}
.wcd-serv-name {
    font-size: 14px;
}
.wcd-serv-price {
    font-size: 14px;
    font-weight: 600;
}

/* Slots */
.wcd-time-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.wcd-time-btn {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 6px 4px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
}
.wcd-time-btn:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

/* Summary */
.wcd-summary {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* Payment options */
.wcd-payment-options,
.wcd-payment-methods {
    margin-bottom: 12px;
}

/* Admin Flex */
.wcd-admin-flex {
    display: flex;
    gap: 20px;
}
.wcd-list {
    flex: 2;
}
.wcd-form {
    flex: 1;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}
.status-approved {
    color: green;
    font-weight: bold;
}
.status-cancelled {
    color: red;
}

/* === Booking UI enhancements for production === */

/* Highlight selected cards, services, and times */
.wcd-card.wcd-selected,
.wcd-list-item.wcd-selected,
.wcd-time-btn.wcd-selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

/* Stripe card section */
.wcd-stripe-section {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f9fafb;
}

.wcd-stripe-card-element {
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.wcd-stripe-card-element.StripeElement--focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0,115,170,0.25);
}

.wcd-error {
    margin-top: 8px;
    font-size: 13px;
    color: #b91c1c;
}

.wcd-note {
    margin-top: 10px;
    font-size: 14px;
    color: #4b5563;
}

/* Payment actions layout */
.wcd-payment-actions {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Inline labels */
.wcd-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-right: 14px;
}

/* Simple label styling */
.wcd-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Success state */
.wcd-success {
    text-align: left;
}

.wcd-success h3 {
    margin-bottom: 8px;
}

/* Mobile optimisations */
@media (max-width: 640px) {
    #wcd-booking-app {
        max-width: 100%;
        padding: 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .wcd-row {
        flex-direction: column;
    }

    .wcd-grid {
        grid-template-columns: 1fr;
    }

    .wcd-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcd-payment-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .wcd-payment-actions .wcd-btn {
        width: 100%;
        margin-top: 10px;
    }
}
