:root {
    --primary: #4a6bff;
    --primary-dark: #3a5bef;
    --secondary: #f8f9fa;
    --text: #333;
    --light-text: #777;
    --success: #28a745;
    --error: #dc3545;
    --border: #e1e5eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text);
    line-height: 1.6;
}

/* Container */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Left and Right Columns */
.checkout-form,
.checkout-summary {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.checkout-summary {
    align-self: flex-start;
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

h2 {
    font-size: 1.4rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Payment Methods */
.payment-methods {
    margin: 1.5rem 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option.selected {
    border-color: var(--primary);
    background-color: rgba(74, 107, 255, 0.05);
}

.payment-option input {
    width: auto;
    margin-right: 1rem;
}

.payment-icon {
    width: 40px;
    margin-right: 1rem;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Cart Items */
.cart-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary);
}

/* Quantity */
.quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-btn {
    background-color: var(--secondary);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
}

.quantity-value {
    margin: 0 0.8rem;
}

/* Summary Section */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Security Note */
.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.lock-icon {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
