/* ===== GLOBAL ===== */
:root {
  --primary: #0077ff;
  --bg-light: #f9f9f9;
  --border: #e0e0e0;
  --text: #222;
  --muted: #666;
  --card-bg: #ffffff;
  --shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --transition: all 0.3s ease;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  line-height: 1.6;
}

/* ===== HERO ===== */
.hero-banner {
  height: 45vh;
  background: url("https://www.logicpower.in/images/distributor-banner.jpg")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5rem;
  border-bottom: 2px solid var(--border);
}

.hero-banner h1 {
  font-size: 3rem;
  font-weight: 600;
  color: #111;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}

/* ===== LEAD SECTION ===== */
.lead {
  text-align: center;
  padding: 5rem 1rem 3rem;
}

.lead h1 {
  margin-bottom: 1.2rem;
}
.lead p {
  color: var(--muted);
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===== FORM SECTION ===== */
.form-section {
  display: flex;
  justify-content: center;
  padding: 5rem 1.5rem;
}

.form-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4rem 3.5rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
}

.form-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  position: relative;
}

.form-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: 2rem; /* generous spacing between fields */
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== DRONE MODEL CHECKBOX GROUP ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label:hover {
  border-color: var(--primary);
  background: #f4f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.15);
}

.checkbox-label:active {
  transform: scale(0.98);
}

/* Title spacing fix */
label[for="models"],
label:has(input[type="checkbox"]) {
  margin-bottom: 0.5rem;
}

/* ===== LABELS + ICONS ===== */
label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  gap: 8px;
}

label i {
  color: var(--primary);
  font-size: 1rem;
}

/* ===== INPUTS ===== */
input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.2);
  outline: none;
}

/* ===== FIX DROPDOWN VISIBILITY ===== */
select {
  background-color: #fff !important;
  color: #222 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230077ff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

select option {
  background-color: #fff !important;
  color: #222 !important;
  padding: 10px;
}

/* ===== TEXTAREA ===== */
textarea {
  resize: none;
  height: 120px;
}

/* ===== CHECKBOX ===== */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--muted);
  transition: var(--transition);
}
.checkbox-label:hover {
  border-color: var(--primary);
  background: #eef6ff;
  color: #111;
}

/* ===== FILE INPUT ===== */
input[type="file"] {
  background: #fafafa;
  border: 1px dashed var(--border);
  padding: 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== BUTTON ===== */
.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 15px 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 12px;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.submit-btn:hover {
  background: #005fcc;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.3);
}
.submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.6s;
}
.submit-btn:hover::after {
  left: 100%;
}

/* ===== SECTION SPACING ===== */
.form-container > div {
  margin-bottom: 2rem;
}

.grid + div,
.grid + .grid {
  margin-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .form-container {
    padding: 2rem 1.5rem;
  }
  .hero-banner h1 {
    font-size: 2.2rem;
  }
  .submit-btn {
    width: 100%;
  }
}

/* ===== UNIVERSAL SPACING IMPROVEMENTS ===== */

/* Add comfortable spacing between all major form sections */
.form-container form > div {
  margin-bottom: 2.5rem; /* more space between groups */
}

/* Increase spacing between grids */
.grid {
  gap: 2.2rem !important;
}

/* Slightly more breathing room inside the container */
.form-container {
  padding: 4.5rem 4rem;
}

/* Add top margin to the first form group after title */
.form-title + form > div:first-child {
  margin-top: 2rem;
}

/* Inputs, selects, and textareas should have larger inner padding */
input,
select,
textarea {
  padding: 16px 18px !important;
}

/* Add extra spacing below the "Drone Models" checkbox grid */
.grid-4 {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

/* Improve vertical rhythm between label and field */
label {
  margin-bottom: 10px;
}

/* File input spacing */
input[type="file"] {
  margin-top: 0.5rem;
}

/* Add space above the submit button */
.submit-btn {
  margin-top: 3.5rem !important;
}

/* Add bottom padding so content doesn't feel cramped near footer */
.form-section {
  padding-bottom: 6rem;
}

/* Space out icons slightly from text inside labels */
label i {
  margin-right: 8px;
}

/* ===== Better Drone Checkbox Styling ===== */
.checkbox-label {
  margin-bottom: 0.8rem;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
  font-size: 0.95rem;
}
.checkbox-label:hover {
  background: #f5faff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 119, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .form-container {
    padding: 2.5rem 1.5rem;
  }
  .form-container form > div {
    margin-bottom: 1.8rem;
  }
  .submit-btn {
    width: 100%;
    margin-top: 2.5rem !important;
  }
}
/* ===== BACKGROUND GRID ===== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  /* Create a faint grid background */
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 45px 45px; /* grid spacing */
  background-attachment: fixed; /* stays in place while scrolling */
  color: var(--text);
  line-height: 1.6;
}
.form-section {
  position: relative;
  z-index: 1;
}

.form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 119, 255, 0.05) 0%,
    transparent 70%
  );
  z-index: -1;
}
