/* ==========================================
   Service Request Form
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050816;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* ==========================
   Main Container
========================== */

main {
  width: min(900px, 92%);
  margin: 80px auto;
}

main h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

main p {
  color: #c7c7c7;
  margin-bottom: 40px;
}

/* ==========================
   Form
========================== */

form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ==========================
   Cards
========================== */

fieldset {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 35px;
}

legend {
  padding: 0 10px;
  color: #4ba8ff;
  font-size: 1.15rem;
  font-weight: bold;
}

/* ==========================
   Layout
========================== */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* ==========================
   Labels
========================== */

label {
  margin-bottom: 8px;
  font-weight: 600;
}

.required {
  color: #ff4c78;
}

/* ==========================
   Inputs
========================== */

input,
select,
textarea {
  width: 100%;
  padding: 15px 18px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  color: white;

  font-size: 1rem;

  transition: 0.25s;
}

input::placeholder,
textarea::placeholder {
  color: #7d7d7d;
}

textarea {
  resize: vertical;
  min-height: 180px;
}

select option {
  background: #050816;
}

/* ==========================
   Focus
========================== */

input:focus,
select:focus,
textarea:focus {
  outline: none;

  border-color: #8a4dff;

  box-shadow:
    0 0 0 3px rgba(138, 77, 255, 0.15),
    0 0 20px rgba(138, 77, 255, 0.2);
}

/* ==========================
   Checkbox
========================== */

/* .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.checkbox label {
  font-weight: normal;
  color: #d0d0d0;
} */

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: #8a4dff;
}

.checkbox-group label {
  margin: 0;
  font-weight: normal;
  color: #d0d0d0;
  line-height: 1.5;
  cursor: pointer;
}

/* ==========================
   Button
========================== */

button {
  align-self: flex-start;

  cursor: pointer;

  border: none;

  border-radius: 12px;

  padding: 16px 34px;

  font-size: 1rem;

  font-weight: bold;

  color: white;

  background: linear-gradient(90deg, #3ba7ff, #8a4dff);

  transition: 0.25s;
}

button:hover {
  transform: translateY(-3px);

  box-shadow: 0 12px 25px rgba(59, 167, 255, 0.2);
}

button:active {
  transform: translateY(0);
}

/* ==========================
   Card Hover
========================== */

fieldset:hover {
  border-color: rgba(138, 77, 255, 0.25);

  transition: 0.25s;
}

/* ==========================
   Mobile
========================== */

@media (max-width: 800px) {
  main {
    width: 92%;

    margin: 40px auto;
  }

  main h1 {
    text-align: center;

    font-size: 2.3rem;
  }

  main p {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
