:root {
  --main-color: white;
  --accent-color: #2d4d67;
}

.cta-section {
  height: 60vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0;
  /* margin: 50px; */
  /* border-radius: 5px; */
  background-color: var(--accent-color);
}

.cta-section,
#singular-form button,
.container > #singular-form > #input-container > input {
  font-size: 2rem;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
}

.cta-container {
  width: 19rem;
  height: 5rem;
  padding: 10px;
  background-color: var(--main-color);
  text-align: center;
  border-radius: 3rem;
  overflow: hidden;
  -webkit-transition: width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transition: width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cta-container > #singular-form {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: --main-color;
}

.cta-container > #singular-form button {
  width: 8rem;
  padding: 0;
  border: none;
  outline: none;
  border-radius: 3rem;
  cursor: pointer;
  /* font-size: 2rem; */
}

.cta-container > #singular-form > button#trigger {
  padding: 0;
  width: 100%;
  color: var(--accent-color);
  background-color: transparent;
  z-index: 3;
}

.cta-container > #singular-form > #input-cta-container {
  width: 100%;
  z-index: 2;
}

.cta-container > #singular-form > #input-cta-container > input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  width: 100%;
  background-color: var(--main-color);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: none;
  outline: none;
  padding: 0 26% 0 3%;
  opacity: 0;
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-transition: all 0.4s ease 0.4s;
  transition: all 0.4s ease 0.4s;
}

.cta-container > #singular-form > #input-cta-container > button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background-color: var(--accent-color);
  color: var(--main-color);
  opacity: 0;
  -webkit-transform: scale(0);
          transform: scale(0);
  -webkit-transition: all 0.4s ease 0.4s;
  transition: all 0.4s ease 0.4s;
}

.cta-container > #singular-form > #success {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--accent-color);
  font-weight: bold;
  z-index: 1;
}

.cta-container > #singular-form > button#trigger,
.cta-container > #singular-form > #input-cta-container,
.cta-container > #singular-form > #success {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-transform: scale(0);
          transform: scale(0);
  opacity: 0;
}

.cta-container > #singular-form > button#trigger {
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.cta-container > #singular-form > #input-cta-container {
  -webkit-transform: scale(1);
          transform: scale(1);
  opacity: 1;
  -webkit-transition: all 0.4s ease 0.4s;
  transition: all 0.4s ease 0.4s;
}

.cta-container > #singular-form > #success {
  -webkit-transition: all 0.2s ease 0.4s;
  transition: all 0.2s ease 0.4s;
}

.cta-container > #singular-form > button#trigger.shown,
.cta-container > #singular-form > #input-cta-container.shown,
.cta-container > #singular-form > #success.shown,
.cta-container > #singular-form > #input-cta-container > button.shown,
.cta-container > #singular-form > #input-cta-container > input.shown {
  -webkit-transform: scale(1);
          transform: scale(1);
  opacity: 1;
}

@media screen and (max-width: 600px) {
  .cta-container > #singular-form button {
    /* width: 4rem; */
    padding: 0 0px;
    border: none;
    outline: none;
    border-radius: 3rem;
    cursor: pointer;
    /* font-size: 2rem; */
  }
}