/**
 * ReUp Premium Checkout Styles
 * Based on reup_checkout_page.html design
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.reup-checkout-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: white;
    min-height: 100vh;
}

.checkout-header {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 0.7;
}

.checkout-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.progress-step.active {
    background: #00d4ff;
    color: #000000;
}

.progress-step.inactive {
    background: #444;
    color: #888;
}

.progress-line {
    width: 30px;
    height: 2px;
    background: #00d4ff;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: #888;
    margin-bottom: 30px;
    font-size: 16px;
}

.payment-method {
    background: #2a2a2a;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #333;
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.payment-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.payment-header.venmo {
    background: linear-gradient(135deg, #3D95CE, #1A73E8);
}

.payment-header.cashapp {
    background: linear-gradient(135deg, #00C851, #007E33);
}

.payment-header.zelle {
    background: linear-gradient(135deg, #6B46C1, #9333EA);
}

.payment-content {
    padding: 20px;
}

.payment-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.payment-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.payment-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00d4ff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.select-btn {
    background: #00d4ff;
    color: #000000;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.select-btn:hover {
    background: #00b8e6;
    transform: translateY(-1px);
}

.order-summary {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #333;
}

.order-summary h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px solid #444;
    padding-top: 12px;
    margin-top: 12px;
}

.payment-confirmation {
    display: none;
}

.payment-confirmation.active {
    display: block;
}

.payment-details {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 0;
    margin: 20px 0;
    border: 1px solid #333;
    overflow: hidden;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.copy-btn {
    background: none;
    border: none;
    color: #00d4ff;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 0.7;
}

.action-buttons {
    margin: 30px 0;
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.primary-btn {
    background: #00d4ff;
    color: #000000;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.primary-btn:hover {
    background: #00b8e6;
    transform: translateY(-1px);
}

.secondary-btn {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.icon {
    font-size: 20px;
}

.hidden {
    display: none;
}

.reup-checkout-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.reup-checkout-empty a {
    color: #00d4ff;
    text-decoration: none;
}

.reup-checkout-empty a:hover {
    text-decoration: underline;
}

/* Customer Info Modal */
.customer-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder {
    color: #666;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.form-actions .btn-primary {
    background: #00d4ff;
    color: #000000;
}

.form-actions .btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-1px);
}

.form-actions .btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.form-actions .btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

@media (max-width: 480px) {
    .reup-checkout-container {
        padding: 15px;
    }
    
    .payment-amount {
        font-size: 28px;
    }
    
    .form-row-split {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 24px;
    }
}

