@import url("https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,700");

/* =========================
   Global vars
========================= */
:root{
  --bg: #0b0d12;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  /* Border */
  --b: 2px;
  --r: 5rem;

  /* Glow */
  --glow: 18px;

  /* Animation speeds */
  --speed-idle: 7s;
  --speed-hover: 2.2s;
}

/* =========================
   Typed custom property
   (enables smooth angle animation)
========================= */
@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* =========================
   Reset & base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  font-size: 62.5%;
}

body {
  background-color: #1f2029;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Layout
========================= */
.container {
  display: flex;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* IMPORTANT: allow glow to escape */
  overflow: visible;
}

/* =========================
   Form styles
========================= */
.form {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.form .form__label {
  margin: 2rem auto 3rem auto;
  font-size: 6.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.form .search-desc {
  margin: 0 auto 2rem auto;
  font-size: 2rem;
  font-weight: 500;
}

.form .form__input {
  width: 80%;
  max-width: 900px;
  height: 6rem;
  padding: 0 3rem;
  margin: auto;

  background-color: #2a2b38;
  border: none;
  border-radius: 10rem;

  outline: 0.25rem solid transparent;
  color: #fff;
  font-size: 2.5rem;
  user-select: none;

  transition: .5s ease-in-out;
}

.form .form__input:hover {
  outline: 0.25rem solid #005eff;
}

.form .form__input:focus {
  outline: 0.3rem solid #005eff;
}

.form .form__input::placeholder {
  color: #fff;
  opacity: 0.2;
}

/* =========================
   PRICEIT BUTTON
========================= */
.priceit-btn{
  position: relative;
  isolation: isolate;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 5rem;
  padding: 1rem 4rem;
  min-width: 150px;
  margin: 3rem auto;

  border-radius: var(--r);
  border: none;

  background: #005eff;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 500;

  cursor: pointer;
  user-select: none;

  transition: transform .18s ease, background .18s ease;
}

/* Label */
.priceit-btn .label{
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* =========================
   Animated gradient border
   (perimeter travel)
========================= */
.priceit-btn::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: var(--r);
  padding: var(--b);

  background: conic-gradient(
    from var(--a),
    #ff2d55,
    #ff9500,
    #ffd60a,
    #34c759,
    #00c7ff,
    #5856d6,
    #ff2d55
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  opacity: .95;
  pointer-events: none;
  z-index: 1;

  animation: angleSpin var(--speed-idle) linear infinite;
}

.priceit-btn:hover::before{
  animation-duration: var(--speed-hover);
}



.priceit-btn:hover::after{
  opacity: 1;
  animation-duration: var(--speed-hover);
}

/* =========================
   Interactions
========================= */
.priceit-btn:hover{
  transform: translateY(-1px);
}

.priceit-btn:active{
  transform: translateY(0) scale(.99);
}

.priceit-btn:focus-visible{
  box-shadow: 0 0 0 4px rgba(120,170,255,.22);
}

/* =========================
   Animation
========================= */
@keyframes angleSpin{
  to { --a: 360deg; }
}

/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce){
  .priceit-btn::before,
  .priceit-btn::after{
    animation: none !important;
  }
}
