/* Checkout Page Styles */
.checkout-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.checkout-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Progress Bar */
.checkout-progress {
    padding: 30px 30px 15px;
    position: relative;
}

.progress-bar {
    height: 6px;
    background-color: #eaeaea;
    border-radius: 10px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #ff8a9d);
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f1f1;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #888;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.active .step-indicator {
    background-color: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.2);
    transform: scale(1.1);
}

.progress-step.completed .step-indicator {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed .step-indicator:after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.progress-step span {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active span,
.progress-step.completed span {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-content {
    padding: 30px;
}

.checkout-step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkout-step-content.active {
    display: block;
    opacity: 1;
}

/* Modern Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkout-left,
.checkout-right {
    padding: 20px;
}

/* Quick Form Styles */
.quick-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.quick-form input {
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.quick-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

/* Payment Preview */
.payment-options-preview {
    margin-top: 25px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.payment-options-preview h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.payment-preview-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-preview-icons img {
    height: 30px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.2s ease;
}

.payment-preview-icons img:hover {
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.more-options {
    font-size: 12px;
    color: #777;
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Order Summary Container */
.order-summary-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #ff2e43;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.secure-checkout {
    text-align: center;
    margin-top: 15px;
    color: #777;
    font-size: 14px;
}

.secure-checkout i {
    color: #28a745;
    margin-right: 5px;
}

/* Order Summary Styles */
.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.order-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 1.2em;
    font-weight: 600;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* Customer Form Styles */
.customer-info {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Payment Styles */
.payment-options {
    margin-top: 20px;
}

.payment-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.payment-option-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.payment-option-header input {
    margin-right: 10px;
}

.payment-option-header label {
    font-weight: 600;
    cursor: pointer;
}

.payment-option-content {
    padding: 20px;
    border-top: 1px solid #eee;
}

.payment-option.active .payment-option-content {
    display: block;
}

/* UPI Payment Styles */
.upi-platform-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 20px;
}

.upi-payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.upi-payment-header img {
    height: 40px;
    object-fit: contain;
}

.upi-payment-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* UPI Details */
.upi-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-amount {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-label {
    font-size: 16px;
    color: #555;
}

.amount-value {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.merchant-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.merchant-name {
    font-weight: 600;
    color: #333;
}

.merchant-upi {
    font-family: monospace;
    background-color: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    user-select: all;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: #f0f0f0;
}

/* UPI Platform Options */
.upi-payment-methods h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
}

.upi-platform-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.upi-platform {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upi-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.platform-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.platform-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 40px;
}

.platform-info {
    flex: 1;
}

.platform-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.platform-info span {
    font-size: 13px;
    color: #777;
}

.platform-icon-arrow {
    color: #ccc;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.upi-platform:hover .platform-icon-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* QR Code Option */
.upi-payment-alternative {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px dashed #eee;
}

.qr-option {
    text-align: center;
}

.qr-option h4 {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.upi-qr-code {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verification Styles */
.payment-verification {
    display: none;
    max-width: 550px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.verification-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.verification-header i {
    font-size: 24px;
    color: #4caf50;
}

.verification-header h3 {
    margin: 0;
    font-size: 20px;
}

.verification-form {
    margin-top: 25px;
}

.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.verification-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    background-color: #e1e1e1;
}

.upi-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.upi-qr-code {
    width: 200px;
    height: 200px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upi-scan-text {
    font-size: 14px;
    color: #666;
}

.payment-amount {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.2em;
    margin-top: 20px;
}

.payment-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Confirmation Styles */
.payment-processing,
.payment-success,
.payment-failed {
    text-align: center;
    padding: 30px;
}

.processing-spinner,
.success-icon,
.failed-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.success-icon {
    color: #28a745;
}

.failed-icon {
    color: #dc3545;
}

.order-details {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.confirmation-actions,
.failed-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .checkout-content {
        padding: 20px 15px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-left, 
    .checkout-right {
        padding: 15px 10px;
    }
    
    .quick-form .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .progress-steps {
        padding: 0 10px;
    }
    
    .progress-step span {
        font-size: 12px;
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
    }
    
    .upi-payment-container {
        flex-direction: column;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .upi-app-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .order-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .order-item {
        flex-direction: row;
        align-items: center;
    }
    
    .order-item-image {
        width: 60px;
        height: 60px;
    }
    
    /* Adjust button sizing and padding for mobile */
    .btn-primary {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .checkout-section {
        padding: 20px 0;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    .progress-step .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .progress-step span {
        font-size: 10px;
    }
    
    .checkout-container {
        border-radius: 8px;
        margin-top: 15px;
    }
    
    .checkout-content {
        padding: 15px 10px;
    }
    
    .order-items {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .secure-checkout {
        font-size: 12px;
    }
}

/* Dark Mode Styles */
body.dark-mode .checkout-container {
    background-color: #222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .checkout-steps {
    background-color: #333;
    border-bottom-color: #444;
}

body.dark-mode .step-text {
    color: #aaa;
}

body.dark-mode .order-summary,
body.dark-mode .payment-option-header,
body.dark-mode .upi-id-display,
body.dark-mode .payment-amount,
body.dark-mode .order-details {
    background-color: #333;
    color: #f1f1f1;
}

body.dark-mode .form-group input,
body.dark-mode .upi-id {
    background-color: #444;
    border-color: #555;
    color: #f1f1f1;
}

body.dark-mode .order-item {
    border-bottom-color: #444;
}

body.dark-mode .summary-row.total {
    border-top-color: #444;
}

body.dark-mode .payment-option {
    border-color: #444;
}

body.dark-mode .payment-option-content {
    border-top-color: #444;
}
