.checkout-section {
    padding: 3rem 0;
}

.checkout-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    color: #7f8c8d;
    margin-bottom: 2.5rem;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.checkout-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ecf0f1;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-input::placeholder {
    color: #b2bec3;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.summary-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-name {
    font-weight: 500;
    color: #2c3e50;
}

.summary-item-quantity {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.summary-item-price {
    font-weight: 600;
    color: #2c3e50;
}

.summary-divider {
    height: 1px;
    background: #ecf0f1;
    margin: 1rem 0;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.summary-row.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.summary-row.total .price {
    font-size: 1.25rem;
    color: #27ae60;
}

@media (max-width: 968px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .checkout-form-wrapper {
        padding: 1.5rem;
    }
}
