.mobile-postpaid-container {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.operator-dropdown-container {
    margin-bottom: 2rem;
}

.operator-dropdown {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.operator-dropdown:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.operator-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-required::after {
    content: ' *';
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ef4444;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.bill-details-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.bill-amount {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.bill-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.bill-details-list {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #6b7280;
}

.detail-value {
    font-weight: 600;
    color: #1f2937;
}

.payment-summary {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-total {
    border-top: 2px solid #d1d5db;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.25rem;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .mobile-postpaid-container {
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .bill-amount {
        font-size: 2rem;
    }
    
    .operator-dropdown {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-postpaid-container {
        padding: 1.5rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Improved Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #e5e7eb;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 20px;
}

.step-label {
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 5px;
}

.step.active .step-label {
    color: white;
    font-weight: 600;
}

.step.completed .step-label {
    color: white;
}

/* Ensure step content is visible when active */
.step-content.active {
    display: block !important;
}

.step-content.hidden {
    display: none !important;
}

/* Override any inline styles that might be hiding the content */
#step-operator.active,
#step-details.active,
#step-bill.active,
#step-payment.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Readonly input styles */
.form-control[readonly] {
    background-color: #f9fafb;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.form-control[readonly]:focus {
    border-color: #d1d5db;
    box-shadow: none;
}

/* Information box styles */
.info-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1e40af;
    font-weight: 600;
}

.info-box p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.info-box .icon {
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Success box */
.success-box {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.success-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #065f46;
    font-weight: 600;
}

.success-box p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.success-box .icon {
    color: #10b981;
    margin-right: 0.5rem;
}

/* No bill due card */
.no-bill-card {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.no-bill-card .bill-amount {
    color: #333;
}

/* Direct payment card */
.direct-payment-card {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Amount input styles */
.amount-input-container {
    margin: 2rem 0;
}

.amount-input {
    font-size: 2.5rem;
    height: 80px;
    text-align: center;
    font-weight: bold;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.amount-input:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.amount-limits {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    color: #f7f9ff;
}

/* Payment info box */
.payment-info-box {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.payment-info-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #166534;
    font-weight: 600;
}

.payment-info-box p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.payment-info-box .icon {
    color: #22c55e;
    margin-right: 0.5rem;
}

/* Amount locked info */
.amount-locked {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-left: 4px solid #6b7280;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.amount-locked h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.amount-locked p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.amount-locked .icon {
    color: #6b7280;
    margin-right: 0.5rem;
}

/* Responsive adjustments for step indicator */
@media (max-width: 768px) {
    .step-indicator {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .step-indicator::before {
        top: 20px;
    }
}

@media (max-width: 767px) {
    .page-content-wrapper {
        padding-bottom: 0 !important;
    }
}

/* ===== RECEIPT MODAL STYLES - Exact from index2.html ===== */

/* Container center */
.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Card */
.receipt-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 10px;
}
.logo img {
    margin: auto;
    height: 40px;
    max-width: 120px;
    object-fit: contain;
}

/* Animated Success */
.success-animation {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.checkmark {
    width: 80px;
    height: 80px;
    stroke: #22c55e;
    stroke-width: 3;
    fill: none;
    animation: scalePop 0.4s ease-in-out 0.3s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: drawCircle 0.6s ease forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.4s ease 0.6s forwards;
}

/* Refund/Failed animation colors */
.receipt-refunded .checkmark-circle,
.receipt-failed .checkmark-circle {
    stroke: #dc2626;
}

.receipt-refunded .checkmark-check,
.receipt-failed .checkmark-check {
    stroke: #dc2626;
}

.receipt-pending .checkmark-circle,
.receipt-pending .checkmark-check {
    stroke: #f59e0b;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes scalePop {
    0% { transform: scale(0.7); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Text */
.title {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.amount {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Section */
.section {
    background: #f9fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.section h6 {
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
}

.row-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.row-item span:first-child {
    color: #6b7280;
}

.row-item span:last-child {
    color: #1f2937;
    font-weight: 500;
}

.status {
    color: #22c55e;
    font-weight: 600;
}

/* Buttons */
.btn-action {
    margin-left: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Gradients */
.download-btn {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.share-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

/* Hover */
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Click */
.btn-action:active {
    transform: scale(0.96);
}

/* Ripple effect */
.btn-action::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-action:active::after {
    width: 200px;
    height: 200px;
}

/* Main Button */
.btn-main {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 30px;
    padding: 12px;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Hide buttons during capture */
.hidden-for-capture {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 480px) {
    .receipt-card {
        margin: 10px;
        padding: 18px;
        border-radius: 16px;
    }

    .amount {
        font-size: 24px;
    }

    .title {
        font-size: 16px;
    }

    .row-item {
        font-size: 13px;
    }

    .checkmark {
        width: 65px;
        height: 65px;
    }

    .section {
        padding: 12px;
    }

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

    .btn-action {
        width: 100% !important;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    #receipt-modal,
    #receipt-modal * {
        visibility: visible;
    }
    
    #receipt-modal {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: white;
        margin: 0;
        padding: 10px;
    }
    
    .receipt-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn-action,
    .btn-main,
    .action-group {
        display: none !important;
    }
}

/* Ensure logo visibility */
.logo-image {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Improve form validation appearance */
.form-control:invalid {
    border-color: #ef4444 !important;
}

.form-control:valid {
    border-color: #10b981 !important;
}

.invalid-feedback {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.form-control:invalid + .invalid-feedback {
    display: block;
}

#back-to-operators {
    border: 1px solid white !important;
    color: white !important;
}
/* Add cursor pointer to wallet options for better UX */
.wallet-option {
    cursor: pointer;
}

.wallet-option .wallet-card {
    cursor: pointer;
}

.wallet-option input[type="radio"]:disabled + .wallet-card {
    cursor: not-allowed;
    opacity: 0.6;
}
/* Selected wallet option styling */
.wallet-option .wallet-card.selected {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    padding:10px;
}

.wallet-option .wallet-card.selected::before {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 12px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 14px;
}

.wallet-option .wallet-card.selected .wallet-icon i {
    color: #3b82f6;
}

.wallet-option .wallet-card.selected .wallet-name {
    color: #1e40af;
    font-weight: 600;
}