@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap");

.chauffeur-booking-container {
    --primary-color: #000000;
    --btn-color: #000000;
    --font-family: 'Inter', sans-serif;
    font-family: var(--font-family);
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    overflow: hidden;
}

.chauffeur-booking-container * {
    box-sizing: border-box;
}

.form-set {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Margin-based gaps for better compatibility */
.form-set>* {
    flex: 1;
}

.form-set>*:not(:last-child) {
    /*margin-right: 15px;*/
}

.chauffeur-booking-container .chauffeur-control {
    border: 1px solid #ddd;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.chauffeur-booking-container .chauffeur-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.chauffeur-booking-container .chauffeur-control::placeholder {
    color: #000 !important;
    opacity: 1;
}

#next-step-btn,
.chauffeur-submit,
.nav-btn-primary {
    background: var(--btn-color) !important;
    color: #fff !important;
    padding: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
    display: block;
    line-height: 1;
}

#next-step-btn:hover,
.nav-btn-primary:hover,
.chauffeur-submit:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

#next-step-btn:active,
.nav-btn-primary:active,
.chauffeur-submit:active {
    transform: translateY(0);
}

.form-navigation {
    display: flex;
    margin-top: 20px;
}

.form-navigation .nav-btn-secondary {
    flex: 1;
    margin-right: 10px;
}

.form-navigation .nav-btn-primary {
    flex: 2;
}

.booking-step h2,
.booking-step h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #000 !important;
    /* Explicit black color */
    font-weight: 900;
}

.nav-btn-secondary {
    background: #f0f0f0 !important;
    color: #333 !important;
    padding: 16px;
    border: 1px solid #ddd;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-btn-secondary:hover {
    background: #e4e4e4 !important;
}

/* Receipt Styling */
.chauffeur-receipt {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.receipt-header {
    border-bottom: 2px dashed #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.receipt-car-name {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
	font-weight:200;
    color: #000;
}

.receipt-item.discount {
    color: #d9534f;
    font-weight: 600;
}

.receipt-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    color: #000;
}

.total-amount {
    font-size: 32px;
    font-weight: 900;
    color: #000;
    letter-spacing: -1px;
}

/* Offer Card Styling */
.special-offer-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, margin 0.3s ease;
    margin-top: 0;
    position: relative;
    opacity: 0;
}

.offer-card-visible {
    max-height: 480px !important;
    padding: 20px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    opacity: 1 !important;
    border: 2px solid var(--primary-color) !important;
}

.offer-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: #000;
}

.offer-card-content h4 {
    color: #000 !important;
    margin: 5px 0;
}

.offer-info {
    flex: 2;
    padding-right: 15px;
}

.offer-price-col {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.offer-actions-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.offer-status {
    background: #44bb44;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.offer-actions {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.offer-actions>*:not(:last-child) {
    margin-right: 10px;
}

.offer-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.offer-action-btn.accept-offer {
    background: var(--btn-color);
    color: #fff;
}

.offer-action-btn.accept-offer:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.offer-action-btn.reject-offer {
    background: #e0e0e0;
    color: #333;
}

.offer-action-btn.reject-offer:hover {
    background: #d0d0d0;
    transform: scale(1.1);
}
.chauffeur-booking-container .offer-status {
    background: #44bb44 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}
.offer-badge {
    background: #d9534f;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 5px;
}

.offer-price-tag {
    font-size: 42px;
    font-weight: 900;
    color: #d9534f;
    margin: 5px 0;
    line-height: 1;
}

/* Google Autocomplete Styling */
.pac-container {
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    z-index: 9999 !important;
}

.pac-item {
    padding: 10px;
    font-family: var(--font-family);
}

.vehicle-selection-container {
    margin-top: 25px;
    display: none;
}

.vehicle-selection-container h3 {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vehicle-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.vehicle-grid>* {
    flex: 1 1 180px;
    margin: 10px;
}

.pac-item:hover {
    background: #f8f9fa;
}

/* Dashicons Alignment Fix */
.dashicons {
    vertical-align: middle !important;
    line-height: 1 !important;
}

/* Collapsible Choose Extras */
.extras-toggle-btn {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.extras-toggle-btn:hover {
    background: #f0f0f0;
}

.extras-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.extras-collapsible-inner {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
}

.extras-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.extras-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f9f9f9;
    vertical-align: middle;
}

.extras-table tr:last-child td {
    border-bottom: none;
}

.extra-icon-cell {
    text-align: center;
}

.extra-table-icon {
    width: 30px!important;
    height: 30px!important;
    object-fit: contain;
}

.extra-name-cell {
    font-weight: 600;
}

.extra-price-cell {
    color: #666;
    width: 80px;
    text-align: right;
	font-weight:300;
}

.extra-action-cell {
    width: 40px;
    text-align: center;
}

.add-extra-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.add-extra-btn:hover {
    border-color: var(--primary-color);
    background: #fafafa;
}

.add-extra-btn.added {
    background: var(--btn-color);
    color: #fff;
    border-color: var(--btn-color);
}

/* Monotone Highlight for Service Extras */
.extra-row-highlighted {
    background: #f4f4f4;
    color: #333;
}

.extra-row-highlighted .extra-price-cell {
    color: #888;
    text-decoration: line-through;
}

.extra-row-highlighted .add-extra-btn {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .form-set {
        flex-direction: column;
    }

    .form-set>*:not(:last-child) {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .offer-card-content {
        flex-direction: column;
        text-align: center;
    }

    .offer-info {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .offer-actions-col {
        align-items: center;
        margin-top: 15px;
    }

    .offer-info,
    .offer-price-col,
    .offer-actions-col {
        flex: none;
        width: 100%;
    }
}