/* Taxi Umrah Booking — Checkout Styles (3-step flow) */

/* ── Wrap ── */
.txm-checkout-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* ══════════════════════════════════════
   STEP PROGRESS BAR
   ══════════════════════════════════════ */
.txm-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.txm-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    background: #f0f0f0;
    transition: background 0.3s ease, color 0.3s ease;
}

.txm-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.txm-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    transition: color 0.3s ease;
}

.txm-step-active {
    background: #0A3E41;
}

.txm-step-active .txm-step-num {
    background: #FFB41D;
    color: #0A3E41;
}

.txm-step-active .txm-step-label {
    color: #fff;
}

.txm-step-done {
    background: rgba(10, 62, 65, 0.08);
}

.txm-step-done .txm-step-num {
    background: #0A3E41;
    color: #fff;
}

.txm-step-done .txm-step-label {
    color: #0A3E41;
}

.txm-step-line {
    width: 40px;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.txm-step-line-done {
    background: #0A3E41;
}

@media (max-width: 600px) {
    .txm-step-label { display: none; }
    .txm-step { padding: 8px 12px; }
    .txm-step-line { width: 24px; }
}

/* ══════════════════════════════════════
   CHECKOUT CARD (shared)
   ══════════════════════════════════════ */
.txm-checkout-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
}

.txm-checkout-heading {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 700;
    color: #0A3E41;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

/* ══════════════════════════════════════
   STEP 1 — CART ITEMS (vehicle cards)
   ══════════════════════════════════════ */

/* Empty state */
.txm-cart-empty-state {
    text-align: center;
    padding: 50px 20px;
}

.txm-empty-icon {
    font-size: 52px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.txm-cart-empty-state p {
    font-size: 17px;
    color: #888;
    margin: 0 0 20px;
}

.txm-back-catalog-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0A3E41;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.txm-back-catalog-btn:hover {
    background: #0d4f53;
    color: #fff;
}

/* Cart card */
.txm-co-cart-card {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s ease;
    border: 1px solid #eef1f2;
}

.txm-co-cart-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Vehicle image */
.txm-co-cart-img-wrap {
    position: relative;
    width: 140px;
    min-height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef0;
    flex-shrink: 0;
}

.txm-co-cart-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.txm-co-cart-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #aaa;
}

.txm-co-seats-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #FFB41D;
    color: #0A3E41;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 14px;
}

/* Details */
.txm-co-cart-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.txm-co-cart-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.txm-co-cart-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0A3E41;
}

.txm-co-remove-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #cc3333;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.txm-co-remove-btn:hover {
    opacity: 0.7;
}

.txm-co-cart-route {
    font-size: 13px;
    color: #666;
    margin: 6px 0;
}

.txm-co-route-icon {
    color: #FFB41D;
    font-size: 8px;
    vertical-align: middle;
}

.txm-co-cart-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.txm-co-unit-price {
    font-size: 13px;
    color: #888;
}

.txm-co-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #dce3e5;
    border-radius: 6px;
    overflow: hidden;
}

.txm-co-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #0A3E41;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.txm-co-qty-btn:hover {
    background: #ddd;
}

.txm-co-qty-value {
    width: 34px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border-left: 1px solid #dce3e5;
    border-right: 1px solid #dce3e5;
    line-height: 30px;
}

.txm-co-line-total {
    font-size: 16px;
    font-weight: 800;
    color: #0A3E41;
    margin-left: auto;
}

/* Cart footer */
.txm-co-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 14px;
}

.txm-co-cart-total {
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.txm-co-cart-total strong {
    font-size: 22px;
    color: #0A3E41;
}

@media (max-width: 520px) {
    .txm-co-cart-card {
        flex-direction: column;
    }
    .txm-co-cart-img-wrap {
        width: 100%;
        height: 160px;
    }
}

/* ══════════════════════════════════════
   STEP NAVIGATION BUTTONS
   ══════════════════════════════════════ */
.txm-next-step-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    background: #FFB41D;
    color: #0A3E41;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 12px rgba(255, 180, 29, 0.3);
}

.txm-next-step-btn:hover {
    background: #ffc94d;
    transform: translateY(-1px);
}

.txm-back-step-btn {
    padding: 12px 24px;
    border: 2px solid #dce3e5;
    border-radius: 10px;
    background: transparent;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.txm-back-step-btn:hover {
    border-color: #0A3E41;
    color: #0A3E41;
}

.txm-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    gap: 12px;
}

.txm-step-nav-vertical {
    flex-direction: column;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* ══════════════════════════════════════
   STEP 2 — FORM
   ══════════════════════════════════════ */
.txm-form-group {
    margin-bottom: 18px;
}

.txm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.txm-req { color: #cc3333; }
.txm-opt { color: #999; font-weight: 400; font-size: 13px; }

.txm-form-group input[type="text"],
.txm-form-group input[type="email"],
.txm-form-group input[type="tel"],
.txm-form-group input[type="date"],
.txm-form-group input[type="time"],
.txm-form-group select,
.txm-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #dce3e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.txm-form-group input:focus,
.txm-form-group select:focus,
.txm-form-group textarea:focus {
    outline: none;
    border-color: #0A3E41;
    box-shadow: 0 0 0 3px rgba(10, 62, 65, 0.08);
}

.txm-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.txm-form-group.txm-has-error input,
.txm-form-group.txm-has-error select,
.txm-form-group.txm-has-error textarea {
    border-color: #cc3333;
}

.txm-field-error {
    display: none;
    font-size: 12px;
    color: #cc3333;
    margin-top: 4px;
}

.txm-form-group.txm-has-error .txm-field-error {
    display: block;
}

.txm-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .txm-form-row-half { grid-template-columns: 1fr; }
}

.txm-phone-wrap {
    display: flex;
    gap: 8px;
}

.txm-phone-code {
    width: 130px !important;
    flex-shrink: 0;
}

.txm-phone-wrap input[type="tel"] {
    flex: 1;
}

.txm-datetime-wrap {
    display: flex;
    gap: 8px;
}

.txm-datetime-wrap input {
    flex: 1;
}

/* ══════════════════════════════════════
   STEP 3 — RECAP + PAYMENT
   ══════════════════════════════════════ */
.txm-checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .txm-checkout-grid { grid-template-columns: 1fr; }
}

/* Customer recap */
.txm-recap-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

.txm-recap-label {
    font-weight: 700;
    color: #0A3E41;
    width: 100px;
    flex-shrink: 0;
}

.txm-recap-subheading {
    font-size: 17px;
    font-weight: 700;
    color: #0A3E41;
    margin: 24px 0 14px;
}

/* Items recap */
.txm-recap-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #eef1f2;
}

.txm-recap-item-img {
    width: 60px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.txm-recap-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.txm-recap-item-info strong {
    font-size: 14px;
    color: #0A3E41;
}

.txm-recap-item-route {
    font-size: 12px;
    color: #888;
}

.txm-recap-item-price {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* Summary card (sticky) */
.txm-summary-card {
    position: sticky;
    top: 30px;
}

.txm-summary-totals {
    border-top: 2px solid #f0f0f0;
    padding-top: 14px;
    margin-bottom: 20px;
}

.txm-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.txm-summary-total-row {
    font-size: 18px;
    color: #0A3E41;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid #0A3E41;
}

.txm-free-shipping {
    color: #2a9d4e;
    font-weight: 600;
}

/* Payment */
.txm-payment-heading {
    font-size: 16px;
    font-weight: 700;
    color: #0A3E41;
    margin: 0 0 12px;
}

.txm-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #0A3E41;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(10, 62, 65, 0.03);
    margin-bottom: 20px;
    transition: background 0.2s ease;
}

.txm-payment-option input[type="radio"] { display: none; }

.txm-payment-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #0A3E41;
    position: relative;
    flex-shrink: 0;
}

.txm-payment-active .txm-payment-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0A3E41;
}

.txm-payment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #0A3E41;
}

.txm-payment-icon { font-size: 18px; }

/* Book Now */
.txm-book-now-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #FFB41D;
    color: #0A3E41;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 180, 29, 0.35);
    letter-spacing: 0.3px;
}

.txm-book-now-btn:hover {
    background: #ffc94d;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 180, 29, 0.45);
}

.txm-book-now-btn.txm-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Error */
.txm-checkout-error {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    color: #cc3333;
    font-size: 13px;
}

/* ══════════════════════════════════════
   THANK YOU
   ══════════════════════════════════════ */
.txm-thankyou {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 15px;
}

.txm-thankyou-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.txm-thankyou-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0A3E41;
    color: #FFB41D;
    font-size: 40px;
    line-height: 80px;
    margin: 0 auto 24px;
}

.txm-thankyou-title {
    margin: 0 0 10px;
    font-size: 28px;
    color: #0A3E41;
}

.txm-thankyou-subtitle {
    color: #666;
    font-size: 15px;
    margin: 0 0 24px;
}

.txm-thankyou-order-id {
    display: inline-block;
    background: rgba(10, 62, 65, 0.06);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0A3E41;
    margin-bottom: 24px;
}

.txm-thankyou-order-id span { color: #FFB41D; }

.txm-thankyou-summary {
    text-align: left;
    margin: 0 auto 30px;
    max-width: 450px;
}

.txm-thankyou-summary .txm-ty-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.txm-thankyou-summary .txm-ty-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #0A3E41;
}

/* WhatsApp notification banner */
.txm-wa-notify {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #e8f8ee;
    border: 2px solid #25D366;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    text-align: left;
}

.txm-wa-notify-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.txm-wa-notify-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.txm-wa-notify-text strong {
    font-size: 15px;
    color: #0A3E41;
}

.txm-wa-notify-text span {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* WhatsApp button */
.txm-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-bottom: 8px;
    animation: txm-pulse-wa 2s infinite;
}

.txm-whatsapp-btn:hover {
    background: #1ebe57;
    color: #fff;
    transform: scale(1.03);
}

.txm-whatsapp-btn .txm-wa-icon {
    flex-shrink: 0;
}

@keyframes txm-pulse-wa {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

.txm-wa-blocked-hint {
    font-size: 13px;
    color: #888;
    margin: 0 0 16px;
}

.txm-thankyou-home {
    display: inline-block;
    padding: 12px 32px;
    background: #0A3E41;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.txm-thankyou-home:hover {
    background: #0d4f53;
    color: #fff;
}
