/* === CONTACT FORM LAYOUT === */
.wpcf7 form {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  font-family: "Inter", sans-serif;
}

/* Two-column layout */
.form-row.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 16px;
}

/* Full-width rows (email, message, submit) */
.form-row.full-width {
  display: block;
  margin-bottom: 16px;
}

/* Form group spacing */
.form-group {
  margin-bottom: 0;
}

/* Labels */
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

/* Input, textarea styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background: #fafafa;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Focus effect */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #00a3ff;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,163,255,0.15);
}

/* Radio buttons inline */
.radio-inline span.wpcf7-list-item {
  display: inline-block;
  margin-right: 20px;
  font-size: 14px;
}

/* Center align radio row */
.form-row.align-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
}

/* Submit button styling */
.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #00a3ff;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: #008ad1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .form-row.two-columns,
  .form-row.align-center {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1085px) {
  .contact-image {
    display: none !important;
  }
}

.wp-block-post-title {
  text-align: center;
  font-size: 36px;   /* adjust as needed */
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 20px;
  position: relative; /* needed for pseudo-element */
}

.wp-block-post-title::before {
  content: "";
  display: inline-block;
  width: 150px;      /* image width */
  height: 150px;     /* image height */
  margin-right: 12px;
  vertical-align: middle;
  background-image: url('/wp-content/themes/businesslibrary/assets/images/vintage_phone.jpg');
  background-size: contain;
  background-repeat: no-repeat;
}

.query-type {
  /*padding-right: 10px;*/
}

.wpcf7-radio > .wpcf7-list-item {
  /*padding-right: 40px;*/
}

/* 1. Make the section full viewport width */
.contact-section.alignfull {
  width: 100vw; /* full viewport width */
  position: relative;
  display: flex;
  justify-content: center; /* center the container */
  overflow: visible; /* allow image to overlap */
}

/* 2. Container holding form + image */
.contact-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  max-width: none; /* remove theme constraint */
  width: auto;
}

/* 3. Form styling */
.contact-form {
  z-index: 2;
  position: relative;
}

/* 4. Image styling */
.contact-image {
  height: 614px;
  width: 400px;
  margin-left: -186px; /* overlap on form */
  position: relative;
  z-index: 1;
}

.contact-image img {
  height: 100%;
  width: auto;
}

/* 5. Responsive: stack on small screens */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-image {
    margin-left: 0;
    margin-top: 30px;
    width: 80%; /* smaller on mobile */
  }
  .contact-form {
    width: 100%;
    max-width: 500px;
  }
}

.alignfull  {
  padding-top: 0px !important;
}
