@font-face {
  font-family: "NotoHindi";
  src: url("../fonts/hindiFonts/NotoSerifDevanagari-Regular.ttf");
}

/* =========================
   GLOBAL
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 30px;
  background: #f5f5f5;
  font-family: "NotoHindi", serif;
}

/* =========================
   MAIN CONTAINER
========================= */
.form-container {
  max-width: 1400px;
  margin: auto;
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

/* =========================
   TOP SECTION FORM ROW
========================= */
.form-group {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

/* =========================
   TOP LABELS
========================= */
.form-group label {
  width: 240px;
  min-width: 240px;
  min-height: 56px;

  display: flex;
  align-items: flex-start;

  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
  margin: 0;
  padding-top: 8px;
}

/* =========================
   INPUTS
========================= */
.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  width: 100%;
  min-height: 48px;

  padding: 10px 14px;
  font-size: 16px;
  font-family: "NotoHindi", serif;

  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #888;
}

/* =========================
   LOWER TWO BOXES GRID
========================= */
.subsection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 35px;
}

/* =========================
   SUBSECTION BOX
========================= */
.subsection-box {
  padding: 22px;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 8px;
  background: transparent;
}

/* =========================
   SUBSECTION TITLE
========================= */
.subsection-box h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #111;
  padding-bottom: 10px;
}

/* =========================
   SUBSECTION FORM ROW
========================= */
.subsection-box .form-group {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

/* =========================
   SUBSECTION LABELS
========================= */
.subsection-box .form-group label {
  width: 170px;
  min-width: 170px;
  min-height: 56px;

  display: flex;
  align-items: flex-start;

  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
  margin: 0;
  padding-top: 8px;
}

/* =========================
   SUBSECTION INPUTS
========================= */
.subsection-box .form-group input,
.subsection-box .form-group select,
.subsection-box .form-group textarea {
  flex: 1;
  width: 100%;
  min-height: 48px;
}

/* =========================
   BUTTON
========================= */
.button-wrapper {
  text-align: center;
  margin-top: 32px;
}

button {
  background: #222;
  color: white;
  border: none;
  padding: 14px 34px;
  border-radius: 8px;
  font-size: 18px;
  font-family: "NotoHindi", serif;
  cursor: pointer;
}

button:hover {
  background: black;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  body {
    padding: 15px;
  }

  .form-container {
    padding: 20px;
  }

  .subsection-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-group,
  .subsection-box .form-group {
    flex-direction: column;
    gap: 8px;
  }

  .form-group label,
  .subsection-box .form-group label {
    width: 100%;
    min-width: unset;
    min-height: auto;
    padding-top: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .subsection-box .form-group input,
  .subsection-box .form-group select,
  .subsection-box .form-group textarea {
    width: 100%;
  }
}