/* =========================
   contact.css
   Biointel Contact page (scoped)
   Stable + minimal + aligned Project Types Qty column
   ========================= */

/* Center the contact content block */
.contact-container{
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}


/* Global Styles */

.contact-main{
  padding-top: 20px; /* optional breathing room under nav */
}

/* Intro spacing */
.bi-form-intro{
  margin: 10px 0 22px;
}

/* Form wrapper */
.bi-form{
  margin: 18px 0 40px;
  padding: 0;
}

/* Row spacing */
.bi-row{
  margin: 0 0 16px;
}


/* Intro email/phone links: match label weight + size */
.contact-link{
  font-weight: 700;
  font-size: 16px;
}

/* Inputs + selects + textarea */
.bi-form input[type="text"],
.bi-form input[type="email"],
.bi-form input[type="tel"],
.bi-form input[type="url"],
.bi-form input[type="date"],
.bi-form select,
.bi-form textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
}

/* Remove default select shading/gradients + use a simple caret */
.bi-form select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

/* Textarea */
.bi-form textarea{
  min-height: 160px;
  resize: vertical;
}

/* Focus states */
.bi-form input:focus,
.bi-form select:focus,
.bi-form textarea:focus{
  outline: none;
  border-color: #999999;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

/* =========================
   Fieldsets (section boxes)
   ========================= */

.bi-fieldset{
  margin: 22px 0;
  padding: 18px 16px 8px;
  border: 1px solid #dddddd;
  border-radius: 12px;
}

/* Section header (legend) bigger + darker */
.bi-fieldset legend{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  padding: 0 10px;
  margin-left: 10px;
  background: #ffffff;  /* creates the “notch” effect */
  color: #111111;
}

/* Radios/checkboxes (don’t stretch full width) */
.bi-form input[type="radio"],
.bi-form input[type="checkbox"]{
  width: auto;
  margin: 0;
}
.bi-form input[type="checkbox"] {
  transform: scale(1.25);
}

.bi-project-label {
  gap: 12px;
}
/* Resizing */


.contact h2 {
  margin-top: 16px;
  margin-bottom: 8px;
}

.contact h3,
.contact h4 {
  margin-top: 14px;
  margin-bottom: 6px;
}
.contact p {
  margin-bottom: 10px;
}
.contact .form-group,
.contact .form-row,
.contact .field,
.contact .form-field {
  margin-bottom: 10px;   /* often 20–24px by default */
}
.contact label {
  margin-bottom: 4px;
  display: block;        /* preserve alignment */
}
.contact input[type="text"],
.contact input[type="email"],
.contact input[type="tel"],
.contact textarea,
.contact select {
  padding: 6px 8px;      /* was likely 10–12px */
}
.contact input[type="radio"],
.contact input[type="checkbox"] {
  margin-top: 0;
  margin-bottom: 0;
}

.contact .radio,
.contact .checkbox {
  margin-bottom: 6px;
}
.contact .cta,
.contact .form-actions {
  margin-top: 14px;
}




/* =========================
   Project types + quantity
   - Force an aligned Qty column (no raggedness)
   ========================= */

.bi-project-list{
  list-style: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

/* Each row is a 2-column grid: label | qty */
.bi-project-list > li{
  display: grid !important;
  grid-template-columns: 260px 120px; /* adjust 260px to taste */
  column-gap: 12px;
  align-items: center;
  padding: 8px 0;
}

/* Checkbox + text as one unit */
.bi-project-label{
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 400;
  color: #333333;
}
.bi-project-label input[type="checkbox"] {
  margin-right: 6px;
}


/* Qty dropdown stays in column 2 */
.bi-project-qty{
  width: 120px;
  justify-self: start;
  padding: 8px 10px;
  padding-right: 34px; /* room for caret */
}

/* “Other” area */

.bi-other input[type="text"] {
  display: block;
  margin-top: 12px;      /* visual separation */
  max-width: 320px;      /* optional, keeps it from feeling oversized */
}
/* Default form labels (inputs like name, email, etc.) */
.bi-row > label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
  color: #555555;
}
/* Project type labels (checkbox rows) */
.bi-project-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #333333;
}


/* Ensure the "Other" label isn't bold */
.bi-other label{
  font-weight: 700;
  color: #555555;
}
.bi-project-label {
  gap: 12px;
}
/* Make "Other" stand out among project types */
.bi-other .bi-project-label {
  font-weight: 500;        /* bold like section emphasis */
  font-size: 16px;         /* match project item text */
  color: #111111;          /* same dark tone as headers */
  gap: 12px;   /* same as other project labels */
}
/* Normalize "Other" to match project item styling */
.bi-other .bi-project-label {
  font-weight: 400;      /* same as other project rows */
  font-size: 16px;       /* matches project text */
  color: #333333;
  gap: 12px;             /* same checkbox/text spacing */
}




/* =========================
   Submit button
   ========================= */

.bi-form button[type="submit"]{
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: red;
  border: 0;
  border-radius: 8px;
  box-shadow: 2px 2px 4px rgba(0,0,0,.25);
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.bi-form button[type="submit"]:hover,
.bi-form button[type="submit"]:focus{
  opacity: 1;
  filter: brightness(1.05);
  transform: scale(1.03);
  outline: none;
}

/* =========================
   Honeypot
   ========================= */

.bi-hp-field{
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================
   Mobile tweaks
   ========================= */

@media (max-width: 600px){
  .bi-row{ margin-bottom: 10px; }

  .bi-fieldset{
    margin: 14px 0;
    padding: 14px 10px 6px;
  }

  .bi-form input[type="text"],
  .bi-form input[type="email"],
  .bi-form input[type="tel"],
  .bi-form input[type="url"],
  .bi-form input[type="date"],
  .bi-form select,
  .bi-form textarea{
    padding: 9px 10px;
  }

  .bi-form textarea{ min-height: 130px; }

  /* Stack qty below label for easy tapping */
  .bi-project-list > li{
    grid-template-columns: 1fr;
    row-gap: 8px;
    align-items: start;
  }

  .bi-project-Quantity{
    width: 110px;
  }
}
/* Preferred contact method: radios on one line with spacing */
.bi-form input[type="radio"] {
  transform: scale(1.2); /* optional: keeps parity with checkboxes */
}
.contact {
  line-height: 1.6;          /* was effectively ~1.75 */
}

/* Only radio labels */
.bi-form label input[type="radio"] {
  margin-right: 6px;
}


.bi-form .bi-row label input[type="radio"] + span {
  margin-right: 0;
}

/* Line up radio options horizontally */
.bi-form .bi-row label input[type="radio"] {
  display: inline-block;
}


/* =========================
   Preferred contact method (radio buttons only)
   ========================= */

.bi-radio-group {
  display: flex;
  gap: 20px;        /* space between Email / Phone / Text */
  margin-top: 6px; /* space below the label */
}

.bi-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400; /* option text weight */
  color: #333333;
}

/* Optional: slightly larger radios to match checkboxes */
.bi-radio-group input[type="radio"] {
  transform: scale(1.2);
}
/* Contact Date Styling */
/* Normalize <input type="date"> text color in Chrome/Safari */

.contact input[type="date"]{
  color: #333;
  opacity: 1; /* important if anything upstream is lowering opacity */
}

/* Force all internal date parts to match (WebKit browsers) */
.contact input[type="date"]::-webkit-datetime-edit,
.contact input[type="date"]::-webkit-datetime-edit-text,
.contact input[type="date"]::-webkit-datetime-edit-month-field,
.contact input[type="date"]::-webkit-datetime-edit-day-field,
.contact input[type="date"]::-webkit-datetime-edit-year-field{
  color: #333;
  opacity: 1;
}

/* Force all internal date parts to match (WebKit browsers) */
.contact input[type="date"]::-webkit-datetime-edit,
.contact input[type="date"]::-webkit-datetime-edit-text,
.contact input[type="date"]::-webkit-datetime-edit-month-field,
.contact input[type="date"]::-webkit-datetime-edit-day-field,
.contact input[type="date"]::-webkit-datetime-edit-year-field{
  color: #333;
  opacity: 1;
}

/* Stop contact page from creating horizontal scroll */
html, body{
  overflow-x: hidden;
}

/* Make grid rows shrink instead of forcing overflow */
.bi-project-list > li{
  grid-template-columns: minmax(0, 1fr) 120px; /* label can shrink */
}

.bi-project-label{
  min-width: 0;              /* allow wrapping inside grid */
  overflow-wrap: anywhere;   /* prevent long strings from blowing width */
}

/* Desktop: match the site's centered column (same as header) */
@media (min-width: 992px){
  .contact-container{
    max-width: none;
    width: 83.33333333%;
    margin-left: 8.33333333%;
    margin-right: 0;
  }
}

