/* IMPORT & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@700&display=swap');

html {
  scroll-behavior: smooth;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0b0b0f;
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), #0b0b0f);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  /*Scales text after screensize */
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.hero-content p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto 20px auto;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: #a855f7;
  color: white;
  text-decoration: none;
  /* Removes underline */
  border-radius: 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  transition: 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.6);
  filter: brightness(1.1);
}

/* FORM SECTION */
.form-container {
  position: relative;
  z-index: 5;
  max-width: 550px;
  margin: -120px auto 60px;
  /* Flyter upp över videon */
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  /* För Safari */
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.form-container h2 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #a855f7;
}

.form-container p {
  margin-bottom: 30px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* FORM FIELDS */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  transition: 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* RADIO & CHECKBOX */
fieldset {
  border: none;
  margin-bottom: 25px;
  text-align: left;
}

legend {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #a855f7;
  text-transform: uppercase;
}

.radio-group,
.checkbox-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

label:has(input[type="radio"]),
label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: 0.2s;
  text-transform: none;
  margin-bottom: 0;
}

label:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: #a855f7;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.4s;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.6);
  filter: brightness(1.1);
}

/* FOOTER STYLES */
footer {
  text-align: center;
  padding: 40px;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVENESS */
@media (max-width: 600px) {
  .form-container {
    margin: -50px 15px 40px;
    padding: 25px;
    width: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}