JSFiddle - React, Tailwind, and code Playground

by VeryGoodFiddle

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <title>VGS Collect Credit Card Example</title>

  <link href="https://fonts.googleapis.com/css?family=Nunito&display=swap" rel="stylesheet">

  <!--Replace with generated for your organization JS file.-->
  <script type="text/javascript" src="https://js.verygoodvault.com/vgs-collect/careem/careem.js"></script>

  <style>

    html {
      height: 100%;
    }

    * {
      margin: 0;
      padding: 0;
    }

    body {
      font-size: 14px;
      height: 100%;
      font-family: 'Nunito', sans-serif;
    }

    main {
      height: 100%;
    }

    .container {
      height: 100%;
      display: flex;
      flex-direction: column;

    }

    form {
      padding: 100px 15px 15px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }

    label {
      position: absolute;
      top: 0;
      z-index: -1;
      width: 100%;
      color: #72777f;
      margin-bottom: 0;
      transition: 0.2s ease all;
    }

    .form-group {
      position: relative;
      margin-bottom: 40px;
    }

    .form-group:last-child {
      border-bottom: none;
    }

    .form-field {
      width: 100%;
      display: block;
      height: 30px;
      line-height: 1.5;
      color: #34314C;
      border-bottom: 1px solid #EEF1F1;;
    }

    .form-field iframe {
      height: 100%;
      vertical-align: middle;
      width: 100%;
    }

    p {
      color: #B9B6CA;
      line-height: 22px;
      margin: 0 auto 15px;
    }

    .save-btn {
      display: block;
      width: 100%;
      border: none;
      font-size: 14px;
      padding: 12px 16px;
      background-color: #0495A1;
      border-radius: 8px;
      color: white;
      font-weight: bold;
    }

    .flex {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
    }

    .group {
      justify-content: space-between;
...