/* Premium styles for Tidjaria Lite Checkout */
body#module-tidjarialitecheckout-order {
    background-color: #f4f6f8;
}

/* Container spacing */
#module-tidjarialitecheckout-order .container {
    /*padding-top: 30px;
    padding-bottom: 50px;*/
}

/* Card Styling */
#module-tidjarialitecheckout-order .card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 30px;
    background: #fff;
    overflow: visible;
    /* Important for some interactions */
}

#module-tidjarialitecheckout-order .card-body {
    padding: 30px;
}

/* Typography Corrections */
#module-tidjarialitecheckout-order h2 {
    font-size: 1.4rem;
    /* Reduced from 1.5 */
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

#module-tidjarialitecheckout-order .step-title {
    font-size: 1rem;
    /* Reduced size */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    border-left: 4px solid #2fb5d2;
    padding-left: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Form Elements */
#module-tidjarialitecheckout-order .form-group {
    margin-bottom: 20px;
}

#module-tidjarialitecheckout-order .form-control {
    height: 45px;
    /* Slightly reduced */
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    padding: 10px 15px;
}

/* CRITICAL: RESET INPUTS TO BE VISIBLE AND CLICKABLE */
.carrier-radio-input,
.payment-radio-input {
    margin-right: 15px;
    transform: scale(1.5);
    /* Make radio buttons bigger */
    cursor: pointer;
    accent-color: #2fb5d2;
    /* Modern browser support for color */
}

/* CARRIER STYLES */
.carrier-item-container {
    margin-bottom: 12px;
}

.carrier-label-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.carrier-label-wrapper:hover {
    background-color: #f8fbff;
    border-color: #2fb5d2;
}

.carrier-label-wrapper.selected {
    background-color: #f0fbff;
    border-color: #2fb5d2;
    box-shadow: 0 0 0 1px #2fb5d2 inset;
}

.carrier-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrier-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.carrier-price {
    font-weight: 700;
    color: #2fb5d2;
}

.carrier-delay {
    width: 100%;
    margin-top: 5px;
    padding-left: 33px;
    /* Align with text, avoiding radio */
    font-size: 0.85rem;
    color: #888;
}

/* PAYMENT STYLES */
.payment-item-container {
    margin-bottom: 15px;
}

.payment-label-wrapper {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-weight: 600;
    color: #333;
}

.payment-label-wrapper:hover {
    background-color: #fff;
    border-color: #ccc;
}

.payment-label-wrapper.selected {
    background-color: #eaf8fb;
    border-color: #2fb5d2;
    color: #000;
    box-shadow: 0 0 0 1px #2fb5d2 inset;
}

.payment-name {
    font-size: 1.05rem;
}

.payment-option-content {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
    padding: 20px;
    margin-top: -5px;
    position: relative;
    z-index: 1;
    /* Below the label */
}

/* ====== CHECKOUT PROGRESS BAR ====== */
.checkout-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    gap: 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    background: #fff;
    border: 2px solid #e1e5eb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.progress-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: #e1e5eb;
    color: #999;
    transition: all 0.3s ease;
}

.progress-step .step-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #999;
    transition: all 0.3s ease;
}

/* Active Step */
.progress-step.active {
    border-color: #2fb5d2;
    background: #f0fbff;
    box-shadow: 0 2px 12px rgba(47, 181, 210, 0.15);
}

.progress-step.active .step-number {
    background: #2fb5d2;
    color: #fff;
}

.progress-step.active .step-label {
    color: #2fb5d2;
}

/* Completed Step (clickable) */
.progress-step.completed {
    border-color: #28a745;
    background: #f0fff4;
    cursor: pointer;
}

.progress-step.completed:hover {
    background: #e6f9ec;
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.15);
    transform: translateY(-1px);
}

.progress-step.completed .step-number {
    background: #28a745;
    color: #fff;
}

.progress-step.completed .step-label {
    color: #28a745;
}

/* Disabled Step */
.progress-step.disabled {
    opacity: 0.6;
}

/* Connector line between steps */
.progress-connector {
    width: 60px;
    height: 3px;
    background: #e1e5eb;
    margin: 0 8px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.progress-connector.completed {
    background: #28a745;
}

/* Responsive */
@media (max-width: 576px) {
    .checkout-progress-bar {
        padding: 15px 0;
    }

    .progress-step {
        padding: 8px 14px;
    }

    .progress-step .step-label {
        font-size: 0.8rem;
    }

    .progress-step .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .progress-connector {
        width: 30px;
    }
}