/* ========================================
   Taxi Booking Plugin – Public Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --txb-primary:    #f59e0b;
    --txb-primary-dk: #d97706;
    --txb-dark:       #1a1a2e;
    --txb-dark2:      #16213e;
    --txb-text:       #1f2937;
    --txb-muted:      #6b7280;
    --txb-border:     #e5e7eb;
    --txb-bg:         #f9fafb;
    --txb-white:      #ffffff;
    --txb-green:      #10b981;
    --txb-red:        #ef4444;
    --txb-radius:     14px;
    --txb-shadow:     0 4px 24px rgba(0,0,0,.08);
}

.txb-wrap {
    font-family: 'Be Vietnam Pro', sans-serif;
    max-width: 760px;
    margin: 0 auto 40px;
    color: var(--txb-text);
}

/* Header */
.txb-header {
    text-align: center;
    background: linear-gradient(135deg, var(--txb-dark) 0%, var(--txb-dark2) 100%);
    border-radius: var(--txb-radius) var(--txb-radius) 0 0;
    padding: 36px 24px 28px;
    color: var(--txb-white);
}
.txb-header-icon { font-size: 2.6rem; margin-bottom: 8px; }
.txb-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.txb-subtitle { margin: 0; font-size: .92rem; opacity: .75; }

/* Form */
.txb-form {
    background: var(--txb-white);
    border: 1px solid var(--txb-border);
    border-top: none;
    border-radius: 0 0 var(--txb-radius) var(--txb-radius);
    padding: 28px 32px 36px;
    box-shadow: var(--txb-shadow);
}
@media(max-width:600px){ .txb-form{ padding: 20px 16px 28px; } }

.txb-section { margin-bottom: 24px; }
.txb-section-label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 12px;
    color: var(--txb-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.txb-req { color: var(--txb-red); }

/* Input */
.txb-input {
    width: 100%;
    border: 2px solid var(--txb-border);
    border-radius: 10px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: .95rem;
    color: var(--txb-text);
    background: var(--txb-bg);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.txb-input:focus {
    outline: none;
    border-color: var(--txb-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,158,11,.12);
}
.txb-input.txb-invalid { border-color: var(--txb-red); }
.txb-textarea { min-height: 80px; resize: vertical; }
.txb-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--txb-muted); }

/* Service Cards */
.txb-service-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}
@media(max-width:500px){ .txb-service-cards{ grid-template-columns: 1fr; } }
.txb-card { cursor: pointer; }
.txb-card input { display: none; }
.txb-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 10px;
    border: 2px solid var(--txb-border);
    border-radius: 12px;
    transition: all .2s;
    background: var(--txb-bg);
}
.txb-card:hover .txb-card-inner { border-color: var(--txb-primary); }
.txb-card input:checked + .txb-card-inner {
    border-color: var(--txb-primary);
    background: #fffbeb;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.txb-card-icon { font-size: 1.8rem; }
.txb-card-title { font-weight: 700; font-size: .9rem; }
.txb-card-desc { font-size: .75rem; color: var(--txb-muted); text-align: center; }

/* Car Cards */
.txb-car-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}
@media(max-width:500px){ .txb-car-cards{ grid-template-columns: 1fr; } }
.txb-car-card { cursor: pointer; }
.txb-car-card input { display: none; }
.txb-car-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 8px;
    border: 2px solid var(--txb-border);
    border-radius: 12px;
    transition: all .2s;
    background: var(--txb-bg);
}
.txb-car-card:hover .txb-car-inner { border-color: var(--txb-primary); }
.txb-car-card input:checked + .txb-car-inner {
    border-color: var(--txb-primary);
    background: #fffbeb;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.txb-car-icon { font-size: 2rem; }
.txb-car-name { font-weight: 700; font-size: 1rem; }
.txb-car-sub { font-size: .75rem; color: var(--txb-muted); }

/* Route */
.txb-route { position: relative; padding-left: 28px; margin-bottom: 14px; }
.txb-route-field { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; position: relative; }
.txb-route-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    position: absolute;
    left: -28px;
}
.txb-dot-green { background: var(--txb-green); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.txb-dot-red   { background: var(--txb-red);   box-shadow: 0 0 0 3px rgba(239,68,68,.2);  }
.txb-route-line {
    position: absolute;
    left: -22px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--txb-border) 0, var(--txb-border) 4px, transparent 4px, transparent 8px);
}
.txb-field-wrap { flex: 1; }

/* Calc button */
.txb-btn-calc {
    width: 100%;
    background: var(--txb-dark);
    color: var(--txb-white);
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-family: inherit;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.txb-btn-calc:hover { background: var(--txb-dark2); }

/* Fare Box */
.txb-fare-box {
    margin-top: 14px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border: 2px solid var(--txb-primary);
    border-radius: 12px;
    padding: 16px 18px;
}
.txb-fare-row { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; margin-bottom: 8px; }
.txb-fare-divider { border: none; border-top: 1px dashed #fbbf24; margin: 10px 0; }
.txb-fare-total { font-weight: 700; }
.txb-price-highlight { color: var(--txb-red); font-size: 1.25rem; }
.txb-fare-note { margin: 8px 0 0; font-size: .75rem; color: var(--txb-muted); }

/* Row 2 cols */
.txb-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:500px){ .txb-row-2{ grid-template-columns: 1fr; } }

/* Submit button */
.txb-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--txb-primary), var(--txb-primary-dk));
    color: var(--txb-white);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(245,158,11,.35);
    letter-spacing: .3px;
}
.txb-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,.45);
}
.txb-btn-submit:active { transform: translateY(0); }

/* Error */
.txb-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--txb-red);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .9rem;
    margin-bottom: 16px;
}

/* Success */
.txb-success-msg {
    text-align: center;
    padding: 48px 24px;
    background: var(--txb-white);
    border: 1px solid var(--txb-border);
    border-radius: var(--txb-radius);
    box-shadow: var(--txb-shadow);
}
.txb-success-icon { font-size: 3.5rem; margin-bottom: 12px; }
.txb-success-msg h3 { margin: 0 0 10px; font-size: 1.5rem; color: var(--txb-green); }
.txb-success-msg p { color: var(--txb-muted); margin: 6px 0; }
.txb-btn-outline {
    margin-top: 16px;
    background: transparent;
    color: var(--txb-primary-dk);
    border: 2px solid var(--txb-primary);
    border-radius: 10px;
    padding: 10px 24px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.txb-btn-outline:hover { background: var(--txb-primary); color: #fff; }

/* Autocomplete override */
.pac-container { z-index: 99999 !important; font-family: 'Be Vietnam Pro', sans-serif !important; }
