<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=">
  <title>UI Design - Checkout Form (Day 2)</title>
</head>
<body>
  <div class="wrapper">
    <div class="checkout-container">
      
      <div class="checkout-left">
        <div class="logo">
          <img src="https://i.imgur.com/YP8xhzu.png" alt=""/>
        </div>
        <h4>Your Order</h4>
        <div class="order-item">
          <div class="order-item-img">  
            <img src="https://i.imgur.com/lyFe816.png" alt="">
          </div>
          <p>Suede Shopper</p>
          <p>Color: Light beige</p>
          <p><b>Price: $129</b></p>
        </div>
        
        <ul class="list-nav">
          <li></li>
          <li class="active"></li>
          <li></li>
          <li></li>
          <li></li>
        </ul>
        
        <h5>Total</h5>
        <h3>$145.98</h3>
      </div>
      
      <div class="checkout-right">
        <h2>Pay with credit card</h2>
        <form action="#" method="POST">
           <div class="form-group">
             <label for="name">Name of Card Holder:</label>
              <input type="text" id="name" name="name" placeholder="Enter your name">
           </div>
          <div class="form-group">
             <label for="credit">Credit Card Number:</label>
              <input id="credit" name="credit" type="text" placeholder="Enter your credit card number">
           </div>
          <div class="form-group">
            <label for="exp">Expiration Date:</label>
            <div class="input-group">
              <select name="" id="">
                <option value="">
                  Months
                </option>
                <option value="">
                  1
                </option>
                <option value="">
                  12
                </option>
              </select>
              <select name="" id="">
                <option value="">
                  Years
                </option>
                <option value="">
                  2020
                </option>
                <option value="">
                  2025
                </option>
              </select>
            </div>
          </div>
          <div class="form-group">
             <label for="cvc">CVC:</label>
              <input id="cvc" name="cvc" type="number" placeholder="Enter your CVC">
           </div>
          <div class="form-group">
            <button class="submit-btn" type="submit">
              Pay Securely
            </button>
          </div>
        </form>
      </div>
      
    </div>
  </div>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

ul, ol {
  list-style: none;
}

body {
  min-height: 100vh;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  max-width: 940px;
  width: 100%;
}

.checkout-container {
  display: flex;
  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
}

.checkout-left {
  flex: 40%;
  max-width: 40%;
  text-align: center;
  background-color: #f7eee9;
  padding: 20px;
}

.checkout-left > * {
  margin-bottom: 20px;
}

.checkout-left h4 {
  color: #707070;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.checkout-left h5 {
  margin-bottom: 0;
  color: #707070;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: normal;
}

.checkout-left h3 {
  margin-bottom: 0;
  color: #707070;
  text-transform: uppercase;
  font-weight: bolder;
  font-size: 1.4rem;
}

.checkout-left .order-item {
  background-color: #fff;
  position: relative;
  padding: 30px;
}

.checkout-left .order-item p {
  color: #707070;
}

.checkout-left .order-item::after {
  content: "x";
  position: absolute;
  top: 0px;
  right: 10px;
  font-weight: bold;
  font-size: 2rem;
  color: #707070;
  cursor: pointer;
}

.order-item-img {
  margin-bottom: 30px;
}

.list-nav {
  display: flex;
  justify-content: center;
}

.list-nav li {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: #c0c0c0;
  margin-left: 5px;
  margin-right: 5px;
}

.list-nav li.active {
  background-color: #e00026;
}

.checkout-right {
  flex: 60%;
  max-width: 60%;
  padding: 50px;
}

.checkout-right h2 {
  text-align: center;
  color: #707070;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.checkout-right > * {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  width: 100%;
  display: inline-block;
  color: #707070;
  font-weight: bold;
  margin-bottom: 5px;
}

input, select {
  width: 100%;
  border: 1px solid #000;
  border-radius: 10px;
  font-size: 1.2rem;
  padding: 10px;
}

.input-group {
  display: flex;
  justify-content: space-between;
}

.input-group > * {
  flex: 49%;
  max-width: 49%;
}

.submit-btn {
  padding: 15px;
  text-align: center;
  width: 100%;
  background-color: #e00026;
  color: #FFF;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #e00026;
  transition: all 0.3s ease;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #fff;
  color: #e00026;
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: portrait) {
  .checkout-container {
    flex-wrap: wrap;
  }
  
  .checkout-left,
  .checkout-right{
  flex: 100%;
  max-width: 100%;
}

}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.