/**
 * Driver Booking Manager — CityRide Theme Compatibility Styles
 *
 * Makes our booking form blend seamlessly into the CityRide theme's
 * "Book Your Ride" card used in the About, Hero, and Booking sections.
 *
 * Loaded automatically when the CF7 override is active.
 */

/* ── Wrapper inside the CF7 override ─────────────────────────────────── */
.tbm-theme-override {
    width: 100%;
}

/* ── Reset — CityRide injects some globals that conflict ─────────────── */
.tbm-theme-override input,
.tbm-theme-override select,
.tbm-theme-override textarea,
.tbm-theme-override button {
    box-sizing: border-box;
}

/* ── Hero layout inside CityRide card ────────────────────────────────── */
.tbm-theme-override .tbm-hero {
    background: transparent;
    padding: 0;
    min-height: unset;
}

/* Hide the big "Book a Driver" headline — theme card already has its own title */
.tbm-theme-override .tbm-hero__headline {
    display: none !important;
}

/* Remove the tall overlay padding designed for full-page hero usage */
.tbm-theme-override .tbm-hero__overlay {
    padding: 0;
}

.tbm-theme-override .tbm-hero__content {
    max-width: 100%;
}

/* Remove white card-inside-card — the theme already provides the card */
.tbm-theme-override .tbm-hero__form-wrap {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

/* ── Classic / Card layout inside CityRide card ──────────────────────── */
.tbm-theme-override .tbm-form-wrap {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
}
.tbm-theme-override .tbm-form-header {
    display: none !important; /* title already shown in the theme widget */
}

/* ── Input fields — match CityRide style ─────────────────────────────── */
.tbm-theme-override .tbm-field input,
.tbm-theme-override .tbm-field select,
.tbm-theme-override .tbm-field textarea,
.tbm-theme-override .tbm-hero__field input,
.tbm-theme-override .tbm-hero__field select,
.tbm-theme-override .tbm-hero__field textarea {
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    padding: 11px 12px 11px 34px;
    font-size: 14px;
    width: 100%;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
}
.tbm-theme-override .tbm-field input:focus,
.tbm-theme-override .tbm-field select:focus,
.tbm-theme-override .tbm-field textarea:focus,
.tbm-theme-override .tbm-hero__field input:focus,
.tbm-theme-override .tbm-hero__field select:focus,
.tbm-theme-override .tbm-hero__field textarea:focus {
    outline: none;
    border-color: var(--tbm-color, #e8420a);
    box-shadow: 0 0 0 3px rgba(232,66,10,.1);
}

/* ── Submit button — match the orange CityRide BOOK TAXI NOW button ─── */
.tbm-theme-override .tbm-btn-submit,
.tbm-theme-override button[type="submit"] {
    background: var(--tbm-color, #e8420a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s, transform 0.1s !important;
}
.tbm-theme-override .tbm-btn-submit:hover,
.tbm-theme-override button[type="submit"]:hover {
    background: #c73808 !important;
    transform: translateY(-1px) !important;
}

/* ── Row layout — responsive ─────────────────────────────────────────── */
.tbm-theme-override .tbm-hero__row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tbm-theme-override .tbm-hero__field {
    flex: 1;
    min-width: 140px;
}
.tbm-theme-override .tbm-hero__field--sm {
    flex: 0 0 150px;
}
.tbm-theme-override .tbm-hero__field--full {
    flex: 0 0 100%;
}
@media (max-width: 640px) {
    .tbm-theme-override .tbm-hero__row {
        flex-direction: column;
        gap: 8px;
    }
    .tbm-theme-override .tbm-hero__field--sm {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ── Success / error messages ────────────────────────────────────────── */
.tbm-theme-override .tbm-response {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 14px;
}
.tbm-theme-override .tbm-response.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #43a047;
}
.tbm-theme-override .tbm-response.error {
    background: #fce4ec;
    color: #c62828;
    border-left: 4px solid #ef5350;
}
