/* Responsive Spacing from Style Tab */
{% if module.style.spacing.desktop_spacing %}
  .grievance_section. {
    
  }
{% endif %}

@media (max-width: 1200px) {
  {% if module.style.spacing.laptop_spacing %}
    .grievance_section. {
      
    }
  {% endif %}
}

@media (max-width: 991px) {
  {% if module.style.spacing.tablet_spacing %}
    .grievance_section. {
      
    }
  {% endif %}
}

@media (max-width: 767px) {
  {% if module.style.spacing.mobile_spacing %}
    .grievance_section. {
      
    }
  {% endif %}
}

/* Base Section (bottom padding 110px) */
.grievance_section {
  width: 100%;
  background-color: #FFF9F2;
  box-sizing: border-box;
  font-family: 'Neue Haas Grotesk Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 40px 0 110px 0;
  display: block;
  position: relative;
  clear: both;
}

.grievance_section::after {
  content: "";
  display: table;
  clear: both;
}

/* Grid: image 617 | gap 91 | content 692 (Figma). Image flush left. */
.grievance_section .grievance-container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 617fr) minmax(0, 692fr);
  column-gap: clamp(32px, 6.3vw, 91px);
  align-items: stretch;
  box-sizing: border-box;
  padding: 0 clamp(16px, 2.8vw, 40px) 0 0;
}

/* Left image */
.grievance_section .grievance-image-col {
  display: flex;
  width: 100%;
  min-width: 0;
}

.grievance_section .grievance-image-col img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Right column */
.grievance_section .grievance-content-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.grievance_section .grievance-header-text {
  max-width: 577px;
  margin: 0 0 72px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grievance_section .section-title {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: #1F1F1F;
  margin: 0;
  letter-spacing: 0;
}

.grievance_section .section-desc {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #BE7D47;
  margin: 0;
  letter-spacing: 0;
}

.grievance_section .section-desc p {
  margin: 0;
}

/* White form card */
.grievance_section .form-wrapper-box {
  background: #FFFFFF;
  box-sizing: border-box;
  width: 100%;
  max-width: 692px;
  padding: 31px 40px;
}

.grievance_section .form-badge-title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: #6B4A3A;
  text-transform: uppercase;
  margin: 0 0 32px 0;
}

/* HubSpot form reset */
.grievance_section .hs-form fieldset {
  max-width: 100% !important;
  margin: 0;
  padding: 0;
  border: 0;
}

.grievance_section .hs-form fieldset .hs-form-field {
  width: 100% !important;
  float: none !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
}

.grievance_section .hs-form .input {
  margin: 0 !important;
}

/* Labels visually hidden (placeholder dikhega) */
.grievance_section .hs-form label {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Labels visible: Date of Visit, Nature of Concern, Attachment */
.grievance_section .hs-form .hs_date_of_visit > label,
.grievance_section .hs-form .hs_nature_of_concern > label,
.grievance_section .hs-form .hs_attachment_optional > label,
.grievance_section .hs-form .hs-form-field:has(input[type="file"]) > label {
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  font-size: 14px !important;
  color: #6B4A3A !important;
  margin: 0 0 8px 0 !important;
  display: block !important;
}

/* Inputs, date, select */
.grievance_section .hs-form input[type="text"],
.grievance_section .hs-form input[type="email"],
.grievance_section .hs-form input[type="tel"],
.grievance_section .hs-form input[type="number"],
.grievance_section .hs-form input[type="date"],
.grievance_section .hs-form select {
  width: 100% !important;
  height: 54px !important;
  border: 1px solid #6B6B6B !important;
  border-radius: 0 !important;
  padding: 0 20px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  background: #FFFFFF !important;
  color: #1F1F1F !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

/* Placeholder: same size + color for all fields */
.grievance_section .hs-form .hs-input,
.grievance_section .hs-form .hs-input::placeholder {
  font-size: 14px !important;
}
.grievance_section .hs-form ::placeholder {
  color: #8C8C8C !important;
  opacity: 1 !important;
}

/* Dropdown chevron */
.grievance_section .hs-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F1F1F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
}

/* Dropdown: jab tak kuch chuna nahi ("Please Select"), text gray */
.grievance_section .hs-form select:has(option[value=""]:checked) {
  color: #8C8C8C !important;
}
.grievance_section .hs-form select option {
  color: #1F1F1F;
}

/* Textarea */
.grievance_section .hs-form textarea {
  width: 100% !important;
  height: 100px !important;
  border: 1px solid #6B6B6B !important;
  border-radius: 0 !important;
  padding: 16px 20px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  background: #FFFFFF !important;
  color: #1F1F1F !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  resize: vertical;
}

/* Attachment field */
.grievance_section .hs-form input[type="file"] {
  font-size: 14px;
  color: #6B4A3A;
  border: 0 !important;
  padding: 0 !important;
  height: auto !important;
  background: transparent !important;
}

.grievance_section .hs-form input[type="file"]::file-selector-button {
  height: 54px;
  padding: 0 20px;
  margin-right: 12px;
  background: #F5E9DF;
  color: #6B4A3A;
  border: 1px solid #E6D3C3;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Submit button */
.grievance_section .hs-form .hs-submit {
  margin-top: 28px;
}

.grievance_section .hs-form .hs-submit .actions {
  margin: 0 !important;
  padding: 0 !important;
}

.grievance_section .hs-form .hs-button {
  display: block;
  width: 100% !important;
  height: 64px !important;
  background-color: #BA1741 !important;
  color: #FFFFFF !important;
  border: 0 !important;
  padding: 0 20px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  margin: 0 !important;
  transition: background-color 0.2s ease !important;
}

.grievance_section .hs-form .hs-button:hover {
  background-color: #9B1236 !important;
}

/* Validation errors */
.grievance_section .hs-form .hs-error-msgs {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
}
.grievance_section .hs-form .hs-error-msgs label {
  position: static !important;
  width: auto; height: auto; clip: auto;
  font-size: 12px !important;
  color: #C0272D !important;
}

/* Tablet & Mobile: stack */
@media (max-width: 991px) {
  .grievance_section .grievance-container {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: 0;
  }

  .grievance_section .grievance-image-col img {
    height: auto;
    min-height: 0;
    max-height: 520px;
    aspect-ratio: 617 / 700;
  }

  .grievance_section .grievance-header-text,
  .grievance_section .form-wrapper-box {
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
    max-width: none;
  }

  .grievance_section .grievance-header-text { margin-bottom: 32px; }
  .grievance_section .form-wrapper-box { padding: 24px 20px; }
}