:root {
  --mainColor: #0a1f0f;
  --accent: #c8102e;
  --accent-gold: #d4a017;
  --text: #fff;
  --input-color: #000;
  --valid-input-color: #000;
}

.form-container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 640px;
  padding: 36px 24px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 10, 0.72) 0%, rgba(6, 18, 10, 0.55) 45%, rgba(6, 18, 10, 0.78) 100%);
}

.video-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.form-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

.form-header img {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.form-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.form-header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

#form-feedback {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  max-width: 520px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  border: 1px solid rgba(212, 160, 23, 0.45);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.form-feedback-content {
  max-width: 400px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  box-sizing: border-box;
}

.form-feedback-title {
  text-align: center;
  padding: 22px 15px;
  font-size: 26px;
  background: linear-gradient(135deg, #006600 0%, #0a1f0f 55%, #8b0000 100%);
  color: var(--text) !important;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 1.5px;
  border-bottom: 3px solid var(--accent-gold);
}

@media (max-width: 767px) {
  .form-container {
    margin: 28px 0;
    padding: 28px 14px 22px;
    border-radius: 12px;
  }

  .form-header img {
    width: 130px;
  }

  .form-header h1 {
    font-size: 22px;
  }

  .form-header p {
    font-size: 14px;
  }

  .form-feedback-title {
    font-size: 20px;
    padding: 18px 12px;
  }

  .form-feedback-content {
    padding: 22px 16px 26px;
  }
}

#form-feedback input {
  font-size: 16px;
  margin-bottom: 16px;
  width: 100%;
  padding: 12px 15px;
  box-sizing: border-box;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  color: var(--input-color);
  line-height: 1;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
  background: #fff;
}

#form-feedback input:focus {
  outline: 2px solid var(--accent-gold);
  border-color: var(--accent-gold);
}

.form-feedback-btn {
  background: linear-gradient(135deg, #006600 0%, #0a3d14 50%, #8b0000 100%);
  color: var(--text);
  width: 100%;
  margin: auto;
  display: flex;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-align: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.form-feedback-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.form-feedback-btn:active {
  transform: translateY(0);
}

.disclaimer {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

input.error {
  margin-bottom: 5px !important;
  background: #ff000020 !important;
  position: relative;
  color: var(--valid-input-color) !important;
}

input.error::placeholder {
  color: inherit;
}

label.error {
  font-family: Arial, sans-serif;
  color: red;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.phone + label.error {
  margin: 5px 0 0 !important;
}

input.valid {
  background: #00ef0030 !important;
  color: var(--valid-input-color) !important;
}

.leadform {
  position: relative;
}

.form-preloader.hidden,
.error-msg.hide {
  display: none !important;
}

.form-preloader {
  position: absolute;
  inset: -5px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(189, 189, 189, 0.7);
}

.spinner {
  animation: form-rotate 2s linear infinite;
}

.spinner .path {
  stroke: var(--accent-gold);
  stroke-linecap: round;
  animation: form-dash 1.5s ease-in-out infinite;
}

.leadform .submit {
  margin-top: 40px;
}

@keyframes form-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes form-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}
