/* Combined request + register page styles */
:root {
  --ea-green: #96c11f;
  --ea-navy: #0c2044;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 10% 15%, rgba(62, 175, 255, 0.22), transparent 36%),
    radial-gradient(circle at 88% 24%, rgba(150, 193, 31, 0.24), transparent 40%),
    linear-gradient(180deg, #f5f8ff 0%, #f7f9fc 100%);
}

.rr-page-main {
  flex: 1;
  width: min(100%, 1120px);
  margin: 32px auto 56px;
  padding: 0 20px;
}

.rr-card {
  max-width: none;
  border-radius: 22px;
  box-shadow: 0 26px 65px rgba(12, 32, 68, 0.17);
  overflow: hidden;
}

.form-section {
  border-radius: 18px;
  padding: 24px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.form-section h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: 0.2px;
}

.card-header {
  align-items: center;
}

.subtitle {
  color: #ffffff;
}

.register-section {
  border: 1px solid #dbe8ff;
  box-shadow: 0 16px 35px rgba(16, 61, 130, 0.12);
}

.register-section h2 {
  color: #0c2044;
}

.register-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(11, 61, 145, 0.08), rgba(11, 61, 145, 0));
  pointer-events: none;
}

.section-break {
  position: relative;
  margin: 24px 8px;
  height: 92px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.section-break::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, rgba(12, 32, 68, 0), rgba(12, 32, 68, 0.65) 28%, rgba(12, 32, 68, 0.72) 44%, rgba(12, 32, 68, 0) 44%) left center / 50% 100% no-repeat,
    linear-gradient(90deg, rgba(12, 32, 68, 0) 56%, rgba(150, 193, 31, 0.72) 56%, rgba(150, 193, 31, 0.75) 72%, rgba(12, 32, 68, 0)) right center / 50% 100% no-repeat;
}

.section-break::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 175, 255, 0.28), rgba(62, 175, 255, 0));
  filter: blur(3px);
  z-index: -1;
}

.section-break span {
  position: relative;
  z-index: 2;
  color: #0c2044;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  background: #f6fbff;
  border: 1px solid #b8d8ff;
  box-shadow: 0 12px 26px rgba(62, 175, 255, 0.25);
  border-radius: 999px;
  padding: 12px 24px;
}

#request-register-form input[type="email"],
#request-register-form input[type="tel"] {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid #e6edf3;
  background: #fff;
  font-size: 15px;
  min-height: 52px;
}

#request-register-form input[type="email"]:focus,
#request-register-form input[type="tel"]:focus {
  outline: 2px solid rgba(0, 112, 201, 0.12);
  outline-offset: 2px;
}

.request-section {
  border: 1px solid #d4e9ac;
  box-shadow: 0 16px 35px rgba(111, 146, 23, 0.16);
  background: linear-gradient(180deg, #fcfff6 0%, #ffffff 22%);
}

.request-section h2 {
  color: #3f5f09;
}

.request-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(150, 193, 31, 0.2), rgba(150, 193, 31, 0)),
    radial-gradient(circle at 88% 7%, rgba(62, 175, 255, 0.12), rgba(62, 175, 255, 0));
  pointer-events: none;
}

.register-section .grid,
.request-section .grid {
  position: relative;
  z-index: 1;
}

.register-section .field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: #111319;
  margin: 0;
}

.register-section .field-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.register-section .address-subsection {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #d3d8df;
  display: grid;
  gap: 14px;
}

.register-section .subsection-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0c1f42;
}

#request-register-form .actions {
  margin-top: 30px;
}

#request-register-form .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#request-register-form .radio-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #b2b2b2;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  color: #111319;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

#request-register-form .radio-option input {
  accent-color: #0070c9;
}

#request-register-form .radio-option:focus-within {
  border-color: #0070c9;
  box-shadow: 0 0 0 3px rgba(0, 112, 201, 0.15);
}

#request-register-form .switch-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  color: #000;
  position: relative;
  padding-left: 50px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

#request-register-form .switch-row input {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  opacity: 0;
}

#request-register-form .switch {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 22px;
  background: #e9edf3;
  border: 1px solid #c9d3df;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#request-register-form .switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

#request-register-form .switch-row input:checked + .switch {
  background: #0070c9;
}

#request-register-form .switch-row input:checked + .switch::after {
  transform: translateX(16px);
}

#request-register-form .switch-copy {
  line-height: 1.5;
}

/* Bold multi-select dropdowns for mark/model */
.request-section .multi-dd {
  position: relative;
}

.request-section .multi-dd-trigger {
  width: 100%;
  min-height: 56px;
  border: 1px solid #bfd5ff;
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 20%, rgba(62, 175, 255, 0.22), transparent 45%),
    linear-gradient(140deg, #f6faff 0%, #ebf3ff 100%);
  color: #0d3767;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.request-section .multi-dd-trigger:hover {
  border-color: #8bb5ff;
  box-shadow: 0 10px 24px rgba(32, 98, 189, 0.16);
}

.request-section .multi-dd-trigger:focus-visible {
  outline: 2px solid rgba(0, 112, 201, 0.35);
  outline-offset: 2px;
}

.request-section .multi-dd.is-open .multi-dd-trigger {
  border-color: #2b95f6;
  box-shadow: 0 14px 26px rgba(36, 109, 207, 0.24);
  transform: translateY(-1px);
}

.request-section .multi-dd-value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.request-section .multi-dd-caret {
  width: 11px;
  height: 11px;
  border-right: 2px solid #1b5ea8;
  border-bottom: 2px solid #1b5ea8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 3px;
}

.request-section .multi-dd.is-open .multi-dd-caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.request-section .multi-dd-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 270px;
  overflow: auto;
  display: none;
  border: 1px solid #b9d3ff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 50px rgba(21, 75, 145, 0.24);
  padding: 8px;
}

.request-section .multi-dd.is-open .multi-dd-menu {
  display: grid;
  gap: 8px;
}

.request-section .multi-dd-item {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6e3ff;
  border-radius: 10px;
  background: linear-gradient(135deg, #f9fcff 0%, #f1f6ff 100%);
  color: #0d3767;
  font-weight: 600;
  text-align: left;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

.request-section .multi-dd-item:hover {
  border-color: #9ec3ff;
  box-shadow: 0 8px 14px rgba(53, 119, 206, 0.15);
  transform: translateY(-1px);
}

.request-section .multi-dd-item.active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #0f5fb1 0%, #2b95f6 100%);
  box-shadow: 0 10px 20px rgba(27, 99, 190, 0.27);
}

.request-section .multi-dd-empty {
  min-height: 44px;
  border: 1px dashed #cfdaf0;
  border-radius: 10px;
  padding: 12px;
  color: #5f7193;
  font-weight: 600;
  display: grid;
  place-items: center;
  background: #f8fbff;
}

.request-section .multi-dd.is-disabled .multi-dd-trigger {
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #d9dfea;
  background: linear-gradient(140deg, #f7f8fb 0%, #eff2f7 100%);
}

/* Distinct visual language for category chips */

.request-section .chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 56px;
  width: 200px;
  max-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid #c9ddff;
  background: linear-gradient(135deg, #f8fcff 0%, #edf5ff 100%);
  color: #0d3767;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.request-section .chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

.request-section .chip:hover {
  transform: translateY(-2px);
  border-color: #9fc7ff;
  box-shadow: 0 10px 22px rgba(22, 92, 180, 0.18);
}

.request-section .chip:hover::before {
  left: 115%;
}

.request-section .chip:focus-visible {
  outline: 2px solid rgba(0, 112, 201, 0.35);
  outline-offset: 2px;
}

.request-section .chip.active {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

.request-section .chips[data-target="fahrzeugtyp"] .chip {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f1ff 100%);
  border-color: #c3d9ff;
  color: #0b4b8a;
}

.request-section .chips[data-target="fahrzeugtyp"] .chip.active {
  background: linear-gradient(135deg, #0f5fb1 0%, #2b95f6 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(13, 86, 170, 0.33);
}

.request-section .chips[data-target="kraftstoff"] .chip {
  background: linear-gradient(135deg, #fbfff2 0%, #f2fbdc 100%);
  border-color: #d9e9a8;
  color: #3e5b08;
}

.request-section .chips[data-target="kraftstoff"] .chip.active {
  background: linear-gradient(135deg, #5f7f12 0%, #98c624 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(84, 119, 11, 0.34);
}

#request-register-form .btn {
  min-width: 220px;
}

#request-register-form .btn.secondary {
  min-width: 140px;
}

footer {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .rr-page-main {
    margin-top: 20px;
  }
}

@media (max-width: 920px) {
  .rr-page-main {
    padding: 0 12px;
  }

  .form-section h2 {
    font-size: 20px;
  }

  .form-section {
    padding: 18px;
  }

  .section-break {
    height: 78px;
    margin: 16px 0;
  }

  .section-break span {
    font-size: 13px;
    padding: 10px 16px;
  }

  #request-register-form .btn,
  #request-register-form .btn.secondary {
    width: 100%;
    min-width: 0;
  }

  #request-register-form .actions > div {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #request-register-form .radio-group {
    flex-direction: column;
    align-items: stretch;
  }

  .request-section .chips {
    grid-template-columns: repeat(2, 150px);
    justify-content: center;
  }

  .register-section .field-row.two {
    grid-template-columns: 1fr;
  }

  .request-section .multi-dd-menu {
    max-height: 230px;
  }
}
