/* Checkout Page Styles */
.checkout-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #764ba2 100%);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.checkout-header h1 {
    color: var(--white);
}

.checkout-content {
    padding: 60px 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form-section {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.required {
    color: #cf2e2e;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.payment-option-label:hover {
    border-color: var(--primary-color);
    background: rgba(3, 169, 244, 0.02);
}

.payment-option input[type="radio"]:checked + .payment-option-label,
.payment-option-label.active {
    border-color: var(--primary-color);
    background: rgba(3, 169, 244, 0.05);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1);
}

.payment-option-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-light);
    flex-shrink: 0;
}

.payment-option-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.payment-option-label.active .payment-option-icon {
    background: rgba(3, 169, 244, 0.1);
}

.payment-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-option-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.payment-option-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"]:checked + .payment-option-label::after,
.payment-option-label.active::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Checkout Summary */
.checkout-summary {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.order-items {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.order-item-name {
    font-weight: 600;
    color: var(--text-color);
}

.order-item-details {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

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

.summary-details {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.security-badge i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* Payment Modal */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.payment-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
}

.modal-body {
    padding: 1.5rem;
}

.payment-instructions h3 {
    margin-bottom: 1rem;
}

/* Selected Payment Method Display */
.selected-payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.payment-method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.payment-method-icon i {
    font-size: 1.5rem;
}

.payment-method-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.payment-network {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Payment Amount Section */
.payment-amount-section {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.amount-label {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.amount-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

/* QR Code Section */
.qr-code-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code-section h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.qr-code-container {
    display: inline-block;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.qr-code-image {
    width: 250px;
    height: 250px;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Crypto Address Section */
.crypto-address-section {
    margin-bottom: 1.5rem;
}

.crypto-address-section h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.address-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.crypto-address-code {
    flex-grow: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--text-color);
    margin: 0;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 4px;
}

.copy-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

/* Payment Notice */
.payment-notice {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.notice-icon {
    flex-shrink: 0;
    color: #ff9800;
    font-size: 1.5rem;
}

.notice-text {
    flex: 1;
}

.notice-text p {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.notice-text p:last-child {
    margin-bottom: 0;
}

.notice-text .contact-info {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.notice-text .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.notice-text .contact-info a:hover {
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

@media (max-width: 968px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}


