.checkout-section {
    padding: 60px 0;
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.checkout-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.checkout-form h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #fff;
}

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

.checkout-form input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: #000;
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(95, 179, 179, 0.1);
}

/* Full width inputs in grid */
#fullName, #email, #landmark {
    grid-column: span 2;
}

.order-summary {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 25px;
    color: #fff;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
    color: var(--text-dim);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 500;
}

.summary-row.total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-subtle);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.btn-place-order {
    width: 100%;
    margin-top: 30px;
    padding: 18px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-place-order:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.address-preview {
    margin-top: 40px;
    padding: 24px;
    background: #000;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.address-preview h4 {
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

#previewBox p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .checkout-wrapper { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    #fullName, #email, #landmark { grid-column: span 1; }
    .order-summary { position: static; }
}

@media (max-width: 600px) {
    .checkout-form, .order-summary { padding: 25px; border-radius: 20px; }
}