:root {
    --pp-pink: #EF24F9;
    --pp-cyan: #4AFAFB;
    --pp-bg: #0C0D31;
}

/* usage: var(--pp-pink); */

body {
    font-family: monospace;
    background-color: var(--pp-bg);
    color: white;
}

h1 {
    margin: 0;
}

#wrapper {
    max-width: 800px;
    margin: 2em auto;
    padding: 0 1em;
}

header {
    display: flex;
    margin-bottom: 1em;
}

header img {
    height: 100px;
    width: 100px;
    border: 1px solid var(--pp-cyan);
}

header>div {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: var(--pp-cyan);
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 2rem;
}

.card {
    border: 1px solid var(--pp-cyan);
    padding: 1.5em;
    border-radius: 4px;
    margin-top: 2em;
    word-break: break-all;
}


/* Form Elements */
textarea,
input {
    width: 100%;
    padding: 0.8em;
    margin: 0.5em 0 1.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: transparent;
    color: white;
}

input[type="checkbox"] {
    display: inline-block;
    width: auto;
}



textarea:focus,
input:focus {
    border-color: var(--pp-pink);
    outline: none;
}

.carð {}

button {
    text-decoration: none;
    cursor: pointer;
    /* height: 30px; */
    padding: 10px 30px;
    background: linear-gradient(90deg, var(--pp-pink));
    background-size: 400%;
    border-radius: 4px;
    /* font-size: 1.3em; */
    position: relative;
    z-index: 1;
    border: 0;
    color: var(--pp-bg);
    font-family: monospace;
}

button:hover {
    text-decoration: none;
    animation: animate 4s linear infinite;
}

button:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(90deg, var(--pp-pink), var(--pp-cyan));
    background-size: 400%;
    border-radius: 4px;
    filter: blur(20px);
    opacity: 0;
    transition: 0.5s;
}

button:hover:before {
    filter: blur(10px);
    opacity: 1;
    animation: animate 4s linear infinite;
}

@keyframes animate {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

.provider-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
}

.provider-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.provider-radio label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    /* background-color: #fff; */
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    height: 100%;
    /* grid will make all labels same height in a row */
}

.provider-radio img {
    max-width: 80px;
    max-height: 32px;
    object-fit: contain;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.provider-radio .provider-name {
    font-size: 0.8rem;
    line-height: 1.1;
    word-break: break-word;
    /* wrap long names */
}

.provider-radio input[type="radio"]:checked+label {
    border-color: var(--pp-pink);
}

.provider-radio label:hover {
    border-color: #999;
}

.field-wrap {
    position: relative
}

.with-icon {
    padding-right: 2.5rem
}

.status-icon {
    position: absolute;
    right: .6rem;
    top: 40%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-size: 13px
}

.status-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover
}




.error {
    margin-top: 1em;
    color: var(--pp-pink);
    font-weight: bold;
}

@keyframes shiver {
  0% {
    transform: translate(0, 0) rotate(var(--rot));
  }
  25% {
    transform: translate(1px, -1px) rotate(calc(var(--rot) + 3.5deg));
  }
  50% {
    transform: translate(-1px, 1px) rotate(calc(var(--rot) - 3.5deg));
  }
  75% {
    transform: translate(1px, 1px) rotate(calc(var(--rot) + 0.25deg));
  }
  100% {
    transform: translate(0, 0) rotate(var(--rot));
  }
}

.bg-svg {
  position: fixed; /* use absolute if you want it to scroll */
  top: -80px;
  left: -100px;
  opacity: 30%;

  width: 300px;
  height: 300px;

  background-image: url("/static/img/farfalle.svg");
  background-repeat: no-repeat;
  background-size: contain;
  

  z-index: -1; /* pushes it behind content */
  pointer-events: none; /* prevents blocking clicks */
  animation: shiver 2s ease-in-out infinite;
}

.bg-svg:nth-child(1) {
  top: -80px;
  left: -100px;
  --rot: 12deg;
  animation-duration: 5.5s;
}

.bg-svg:nth-child(2) {
  top: 20%;
  left: 70%;
  width: 240px;
  height: 240px;
  --rot: -25deg;
  animation-duration: 7s;
}

.bg-svg:nth-child(3) {
  top: 65%;
  left: 10%;
  width: 200px;
  height: 200px;
  --rot: 40deg;
  animation-duration: 6.2s;
}

.bg-svg:nth-child(4) {
  top: 80%;
  left: 75%;
  width: 320px;
  height: 320px;
  --rot: -10deg;
  animation-duration: 8s;
}

.bg-svg:nth-child(5) {
  top: 35%;
  left: -60px;
  width: 180px;
  height: 180px;
  --rot: 65deg;
  animation-duration: 5s;
}

.bg-svg:nth-child(6) {
  top: -40px;
  left: 50%;
  width: 260px;
  height: 260px;
  --rot: -10deg;
  transform: rotate(-45deg);
}

.bg-svg:nth-child(7) {
  top: 50%;
  left: 85%;
  width: 220px;
  height: 220px;
  --rot: -10deg;
  transform: rotate(30deg);
}

.bg-svg:nth-child(8) {
  top: 15%;
  left: 25%;
  width: 280px;
  height: 280px;
  --rot: -50deg;
  transform: rotate(-60deg);
}

.bg-svg:nth-child(9) {
  top: 90%;
  left: 30%;
  width: 190px;
  height: 190px;
  --rot: -20deg;
  transform: rotate(15deg);
}

.bg-svg:nth-child(10) {
  top: 45%;
  left: 45%;
  width: 340px;
  height: 340px;
  --rot: -1deg;
  transform: rotate(-5deg);
}

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
  margin-bottom: 1em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: #ccc; */
  border: 1px solid var(--pp-pink);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  top: 2px;
  left: 4px;
  bottom: 4px;
  background-color: var(--pp-cyan);
  transition: .2s;
}

input:checked + .slider {
  background-color: var(--pp-pink);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--pp-pink);
}

input:checked + .slider:before {
  transform: translateX(13px);
}