/**
 * Hải Long Survey Form Styles
 * Clean, Modern, UX/UI Pro-Max
 * Modular Component (< 500 lines)
 */

.section-quote {
  background: #f8fafc !important;
  padding: 80px 0 !important;
  border-top: 1px solid #e2e8f0 !important;
}

.hailong-survey-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 42px 38px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hailong-survey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #c21a1b, #ef4444);
}

.survey-header {
  text-align: center;
  margin-bottom: 30px;
}

.survey-header .tag {
  display: none !important;
}

.survey-header h3 {
  font-size: 24px;
  font-weight: 900;
  color: #c21a1b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.survey-header p {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
}

/* Equal gaps & alignment */
.survey-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 22px 24px !important;
}

.survey-group {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}

.survey-group.full-width {
  grid-column: 1 / -1 !important;
}

.survey-label {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 9px !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.survey-label i {
  color: #c21a1b;
  font-size: 13px;
}

/* Clear text & full height */
.survey-input,
.survey-select,
.survey-textarea {
  width: 100% !important;
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  outline: none !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.survey-input {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  line-height: 50px !important;
}

.survey-select {
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 38px 0 16px !important;
  line-height: normal !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c21a1b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 12px !important;
  cursor: pointer !important;
}

.survey-textarea {
  min-height: 100px !important;
  padding: 14px 16px !important;
  line-height: 1.6 !important;
}

.survey-input:focus,
.survey-select:focus,
.survey-textarea:focus {
  border-color: #c21a1b !important;
  box-shadow: 0 0 0 3.5px rgba(194, 26, 27, 0.12) !important;
}

.btn-survey-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 52px !important;
  background: linear-gradient(135deg, #c21a1b 0%, #9e1213 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 30px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(194, 26, 27, 0.28) !important;
  transition: all 0.3s ease !important;
  margin-top: 14px !important;
}

.btn-survey-submit:hover {
  background: linear-gradient(135deg, #df2021 0%, #c21a1b 100%) !important;
  box-shadow: 0 8px 24px rgba(194, 26, 27, 0.38) !important;
  transform: translateY(-2px) !important;
}

.btn-survey-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.survey-result-msg {
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.survey-result-msg.success {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}

.survey-result-msg.success i {
  font-size: 20px;
  color: #22c55e;
  margin-top: 2px;
}

.survey-result-msg.error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
}

.survey-result-msg.error i {
  font-size: 20px;
  color: #ef4444;
  margin-top: 2px;
}


/* 8. CONSENT CHECKBOX */
.survey-consent-wrap {
  margin: 18px 0 22px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.25s ease;
}
.survey-consent-wrap:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.survey-consent-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer;
  margin: 0 !important;
  user-select: none;
}
.survey-consent-label input[type="checkbox"] {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  margin: 2px 0 0 0 !important;
  cursor: pointer;
  accent-color: #c21a1b;
}
.survey-consent-text {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #334155 !important;
}
.survey-consent-text a {
  color: #c21a1b !important;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .hailong-survey-card { padding: 26px 18px; }
  .survey-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .survey-header h3 { font-size: 20px; }
}