body {
  padding: 0;
  background-image: url(../img/Party-image.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh;
}

.register_form {
  color: #fff;
  width: 70%;
  margin: 5% auto;
}

/* Gradient fieldset for inputs */
.gradient-fieldset {
  border: 2px solid transparent;
  border-radius: 3px;
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #00eaff, #ff00aa) border-box;
  position: relative;
  margin: 40px 0;
}

.gradient-fieldset legend {
  padding: 0 8px;
  font-size: 1.2rem;
  color: #fff;
  position: relative;
  top: -15px;
  left: 10px;
  background: #000;
  width: max-content;
  margin-bottom: 0;
}

.form-label {
  font-size: 1.2rem;
}

.gradient-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: #fff;
  font-size: 1rem;
  padding: 0 10px 10px;
}

.gradient-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.gradient-btn {
  background: linear-gradient(90deg, #ff00aa, #00eaff);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 10px 30px;
  font-size: 22px;
  font-weight: 500;
  transition: 0.3s;
  width: 100%;
}

.gradient-btn:hover {
  opacity: 0.85;
}

.outline-btn {
  background: #000;
  border: 3px solid transparent;
  border-radius: 10px;
  padding: 10px 30px;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #ff00aa, #00eaff) border-box;
  color: #000;
  transition: 0.3s;
}

/* Radio buttons */
.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #00eaff, #ff00aa) border-box;
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin-right: 8px;
  vertical-align: middle;
}

.form-check-input:checked {
  background: linear-gradient(90deg, #00eaff, #ff00aa);
}

.form-check-label {
  cursor: pointer;
  font-size: 1rem;
}

.portrait-content {
  display: none;
}

select {
  width: 100%;
  background: black;
  color: white;
  border: transparent;
  padding: 0px 10px;
}

select:focus-visible {
  border: 1px solid transparent;
  outline: transparent !important;
}

@media only screen and (min-device-width: 0px) and (max-device-width: 815px) and (orientation: portrait) {
  .portrait-content {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    width: 100%;
    height: 100%;
    height: 100vh;
    z-index: 99999999;
    overflow: hidden;
  }

  .portrait-center {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0 auto;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
  }

  .portrait-center img {
    margin: 0 auto 10px;
    width: 200px;
    text-align: center;
  }

  .portrait-center p {
    font-size: 18px;
    color: #000;
    font-family: var(--head-font);
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
  }
}

/* Generic mobile devices in landscape */
@media only screen and (max-width: 768px) and (orientation: landscape) {
  .register_form {
    color: #fff;
    width: 80%;
    margin: 4% auto;
  }
}

/* iPhone landscape (up to iPhone 14 Pro Max width) */
@media only screen and (max-width: 932px) and (orientation: landscape) {
  .register_form {
    color: #fff;
    width: 80%;
    margin: 4% auto;
    height: 85vh;
    overflow: scroll;
  }

  .register_form h2 {
    font-size: 20px;
  }

  .gradient-fieldset {
    margin: 25px 0;
  }

  .gradient-fieldset legend {
    font-size: 1rem;
    height: 17px;
  }

  .gradient-input {
    font-size: 0.8em;
    padding: 0 5px 5px;
  }
}

/* Very small phones (like iPhone SE, Galaxy Mini) */
@media only screen and (max-width: 568px){
  body{
    background-image: url(../img/IBC-m.png);
    background-size: 100% 100%;
  }
  .mobile{
    margin-top: 62vh !important;
  }
  .register_form{
    height: 30vh;
    overflow-y: auto;
    width: 85%;
  }
  .gradient-fieldset{
    margin: 20px 0;
  }
}

@media screen and (min-width:780px) and (max-width: 1300px) {
  body {
    height: 100%;
  }

  .register_form {
    margin: 2% auto;
    width: 70%;
  }
  .register_form h2{
    font-size: 24px;
  }
  .gradient-fieldset {
    margin: 20px 0;
  }

  .gradient-fieldset legend {
    font-size: 14px;
  }

  .gradient-input {
    font-size: 14px;
    padding: 0 10px 5px;
  }

  .gradient-btn,
  .outline-btn {
    padding: 8px 30px;
    font-size: 16px;
  }
  .form-check-label,.form-label{
    font-size: 14px;
  }
}