/* Frontend CSS for Premium CF7 booking form - Theme Adaptive */
.wpcf7-form .dab-premium-form {
    --dab-theme-color: #305f43; /* Matches the Request Appointment button */
    background: transparent;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

.wpcf7-form.dab-premium-form .dab-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.wpcf7-form.dab-premium-form .dab-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wpcf7-form.dab-premium-form .dab-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.wpcf7-form.dab-premium-form label {
    font-size: inherit;
    font-weight: 500;
    color: inherit;
    margin-bottom: 8px;
    display: block;
}
/* Removed explicit input styling so the theme's native CF7 input styles apply uniformly to text, select, and date fields */

.wpcf7-form .dab-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    min-height: 42px; /* Prevent jump when loading */
}

.wpcf7-form .dab-slot-btn {
    --dab-theme-color: #305f43;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--dab-theme-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: inherit;
    font-weight: 500;
    color: var(--dab-theme-color);
    opacity: 0.8;
}

.wpcf7-form .dab-slot-btn:hover {
    opacity: 1;
    background: var(--dab-theme-color);
    color: #ffffff;
}

.wpcf7-form .dab-slot-btn.selected {
    background: var(--dab-theme-color);
    color: #ffffff;
    border-color: var(--dab-theme-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.dab-loading {
    opacity: 0.6;
    pointer-events: none;
}

.wpcf7-form.dab-premium-form .dab-disclaimer {
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 24px;
    line-height: 1.5;
}

.wpcf7-form.dab-premium-form .wpcf7-submit {
    /* Rely on theme styling mostly, but add some sizing and transitions */
    border-radius: 8px;
    padding: 16px 24px;
    font-size: inherit;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
}

.wpcf7-form.dab-premium-form .wpcf7-submit:hover {
    filter: brightness(0.9);
}

.wpcf7-form.dab-premium-form .wpcf7-submit:active {
    transform: translateY(1px);
}

/* Make row responsive */
@media (max-width: 600px) {
    .wpcf7-form.dab-premium-form .dab-row {
        flex-direction: column;
        gap: 0;
    }
}
