/* Reset and Base Styles */
/** {*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*}*/

/*body {*/
/*    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;*/
/*    background-color: #f5f5f5;*/
/*    min-height: 100vh;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    padding: 16px;*/
/*}*/

/* Widget Container */
.payment-widget {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 0px 4px 2px rgb(241 86 34 / 30%);
    border: 1px solid #f15622;
    margin-bottom: 30px;
}

/* Service Header */
.service-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.truck-icon {
    width: 40px;
    height: 40px;
    background: #fff5f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.truck-icon svg {
    width: 24px;
    height: 24px;
    color: #f15622;
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 10px;
}

.total-label {
    font-size: 14px;
    color: #666;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: #f15622;
}

/* Payment Options Section */
.payment-options {
    padding: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Radio Cards */
.option-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.option-card:hover {
    border-color: #f15622;
    background: #fffaf8;
}

.option-card.selected {
    border-color: #f15622;
    background: #fff5f0;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.option-card.selected .radio-circle {
    border-color: #f15622;
}

.radio-circle::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #f15622;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.option-card.selected .radio-circle::after {
    transform: scale(1);
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.option-subtitle {
    font-family: "Roboto";
    font-size: 13px;
    color: #888;
}

.option-amount {
    text-align: right;
}

.amount-primary {
    font-size: 16px;
    font-weight: 700;
    color: #016101;
}

.amount-secondary {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

/* Timeline Diagram */
.timeline-section {
    padding: 0 20px 20px;
}

.timeline-container {
    background: #f6f6f6;
    border-radius: 12px;
    padding: 24px 20px;
    position: relative;
}

.timeline {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    position: relative;
    min-height: 80px;
}

.timeline-line {
    position: absolute;
    top: 18px;
    left: 33%;
    right: 33%;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #f15622;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    margin: 4px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid #fafafa;
}

.timeline-dot.active {
    background: #f15622;
    /*box-shadow: 0 0 0 4px rgba(241, 86, 34, 0.2);*/
}

.timeline-dot.completed {
    background: #f15622;
}

.timeline-dot svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.timeline-dot.active svg,
.timeline-dot.completed svg {
    opacity: 1;
}

.timeline-label {
    margin-top: 12px;
    text-align: center;
}

.timeline-time {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.timeline-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.timeline-point.active .timeline-amount {
    color: #016101;
}

.timeline-desc {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

/* Timeline variations */
.timeline-point.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.timeline-point {
    /*transition: all 0.3s ease;*/
}

.timeline.full-payment .timeline-point:last-child {
    opacity: 0;
    transform: scale(0.8);
}

.timeline.full-payment .timeline-point:first-child {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline #timeline-sub-label-booking-only,
.timeline.full-payment #timeline-sub-label-full-payment {
    display: block;
}

.timeline.full-payment #timeline-sub-label-booking-only,
.timeline #timeline-sub-label-full-payment {
    display: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-back {
    background: #fff;
    color: #666;
    border: 2px solid #e5e5e5;
    flex: 0.4;
}

.btn-back:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-proceed {
    background: #f15622;
    color: white;
    flex: 0.6;
}

.btn-proceed:hover {
    background: #d94d1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(241, 86, 34, 0.3);
}

.btn-proceed:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .payment-widget {
        box-shadow: none;
        border: none;
    }
}
@media (max-width: 360px) {
    .option-header {
        flex-wrap: wrap;
    }

    .option-amount {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        padding-left: 34px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-back, .btn-proceed {
        flex: 1;
    }
}