/* --- Container & Base Styles --- */
.enquiry-container {
  max-width: 670px;
  margin: 45px auto;
  padding: 32px 28px 28px 28px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(0,0,0,0.12), 0 1.5px 4px rgba(0,0,0,0.05);
  position: relative;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.logo {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.enquiry-header {
  text-align: center;
  margin-bottom: 30px;
}
.enquiry-header h2 {
  margin: 0 0 7px 0;
  font-size: 2.1rem;
  color: #22639a;
  letter-spacing: 1px;
  font-weight: 700;
}
.enquiry-header h3 {
  margin: 3px 0;
  color: #444;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.enquiry-header p {
  color: #555;
  margin: 15px 0 0 0;
  font-size: 1.04rem;
}

/* --- Table Inline Fields --- */
.enquiry-table {
  width: 100%;
  border-spacing: 0;
  margin-bottom: 16px;
}
.enquiry-table tr {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.enquiry-table td.label {
  flex: 0 0 226px;
  font-weight: 500;
  color: #212d46;
  text-align: right;
  padding-right: 9px;
  font-size: 1rem;
  line-height: 1.2;
}
.enquiry-table td.colon {
  flex: 0 0 12px;
  text-align: center;
  color: #888;
  font-size: 1.1rem;
  padding-right: 7px;
}
.enquiry-table td {
  flex: 1 1 auto;
  padding: 4px 0;
  min-width: 0;
  /* Make sure all content aligns and has no unexpected indent */
  display: flex;
  align-items: center;
}

/* --- Inputs, Selects, and Textareas --- */
.enquiry-table input,
.enquiry-table select,
.enquiry-table textarea {
  font-size: 1rem;
  padding: 8px 10px;
  border: 1.3px solid #d2d9e5;
  border-radius: 6px;
  background: #f8fafc;
  transition: border-color 0.17s, background 0.17s;
  min-width: 150px;
  max-width: 340px;
  width: 100%;
  box-sizing: border-box;
  margin-right: 0;
  outline: none;
}
.enquiry-table input:focus,
.enquiry-table select:focus,
.enquiry-table textarea:focus {
  border-color: #4896e2;
  background: #f1f8ff;
}
.enquiry-table textarea {
  resize: vertical;
  min-height: 38px;
  font-family: inherit;
}
.enquiry-table select {
  appearance: none;
  -webkit-appearance: none;
  background: #f8fafc url("data:image/svg+xml;utf8,<svg fill='gray' height='12' viewBox='0 0 24 24' width='12'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 0.7em center/1.2em;
}

/* --- Required Asterisk --- */
.required {
  color: #d00d2b;
  margin-left: 2px;
  font-weight: bold;
}

/* --- Error Message --- */
.error {
  color: #c41616;
  font-size: 0.92em;
  margin-left: 3px;
  margin-top: 1px;
  min-height: 16px;
  display: block;
  font-weight: 500;
  letter-spacing: 0.1px;
}

/* --- Checkbox Group (Source) --- */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  column-gap: 16px;
  row-gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  /* Force alignment to start, not center */
  justify-content: flex-start;
}

.checkbox-group label {
  font-weight: 400;
  color: #444;
  font-size: 0.98rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-width: 170px;
  margin-right: 0;
  margin-bottom: 0;
  padding-right: 0;
}

/* Ensure checkboxes and labels are proper inline */
.checkbox-group input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #1976d2;
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: middle;
}

/* --- Buttons --- */
button, .btn-success {
  display: inline-block;
  background: linear-gradient(90deg, #1976d2, #2e8be0 90%);
  color: #fff !important;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 600;
  margin-top: 14px;
  box-shadow: 0 2px 6px rgba(25,118,210,0.07);
  transition: background 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
button:disabled {
  background: #a5a5a5 !important;
  color: #ddd !important;
  cursor: not-allowed;
}
.btn-success {
  background: linear-gradient(90deg, #28a745, #47c865 90%);
  margin-top: 10px;
  margin-bottom: 5px;
}
.btn-success:hover, .btn-success:focus {
  background: #218838 !important;
}
.copy-btn {
  background: #eaf6ea;
  color: #1976d2 !important;
  border: none;
  border-radius: 5px;
  padding: 3px 14px;
  margin-left: 10px;
  font-size: 0.97em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px #eee;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover, .copy-btn:focus {
  background: #d6f8d6;
  color: #218838 !important;
}

/* --- Loader Animation --- */
.loader {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2.2px solid #fff;
  border-top: 2.2px solid #1976d2;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}
.hidden {
  display: none;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* --- Success Message --- */
.success {
  background: #eafbea;
  color: #225f32;
  border: 1.3px solid #a7e6b9;
  border-radius: 8px;
  padding: 18px 20px 12px 20px;
  margin-top: 26px;
  text-align: center;
  font-size: 1.08rem;
  box-shadow: 0 1px 8px rgba(40,167,69,0.07);
}

/* --- Responsive Styles --- */
@media (max-width: 700px) {
  .enquiry-container {
    padding: 13px 2vw 16px 2vw;
    border-radius: 0;
  }
  .logo {
    top: 10px;
    left: 10px;
    width: 39px;
    height: 39px;
  }
  .enquiry-header h2 {
    font-size: 1.45rem;
  }
  .enquiry-header h3,
  .enquiry-header p,
  .enquiry-table td.label,
  .enquiry-table input,
  .enquiry-table select,
  .enquiry-table textarea {
    font-size: 0.97rem;
  }
  .enquiry-table tr {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 17px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
  }
  .enquiry-table td.label,
  .enquiry-table td.colon,
  .enquiry-table td {
    flex: none;
    width: 100%;
    text-align: left;
    padding-right: 0;
  }
  .checkbox-group label {
    min-width: 120px;
  }
}