/*--------------------------------------------------------------
# Contact Us Page Specific Styles
--------------------------------------------------------------*/

/* Scoping rules to the Contact Us page using body class */
/* Assumes page slug 'contact-us' */

/* --- Hero Section Consistency (Page Title H1) --- */
.page-slug-contact-us .entry-title,
.page-slug-contact-us h1.entry-title,
.page-slug-contact-us > .entry-header > .entry-title,
/* Add specific selector if your H1 is elsewhere */
.page-slug-contact-us .site-content h1:first-of-type {
  text-align: center;
  margin-bottom: 40px; /* Space below main page title */
}

/* --- Contact Intro Section --- */
.page-slug-contact-us .contact-intro {
  max-width: 800px; /* Consistent max width */
  margin: 40px auto 50px auto; /* Top margin, LR auto for center, Bottom margin */
  text-align: center; /* Center align the intro text */
  padding-left: 15px; /* Add padding for smaller screens */
  padding-right: 15px;
}

.page-slug-contact-us .contact-intro h2 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 600;
  color: #333; /* Consistent heading color */
}

.page-slug-contact-us .contact-intro p {
  font-size: 18px; /* Match inline style */
  line-height: 1.7; /* Match inline style */
  color: #555; /* Consistent paragraph color */
  max-width: 700px; /* Limit paragraph line length slightly */
  margin-left: auto;
  margin-right: auto;
}


/* --- WPForms Styling --- */

/* Overall Form Container */
.page-slug-contact-us .wpforms-container {
  max-width: 750px; /* Max width for the form area */
  margin: 0 auto; /* Center the form */
  padding-bottom: 40px; /* Add some space at the bottom */
}

/* Form element styling within the container */
.page-slug-contact-us .wpforms-container .wpforms-form {
  /* Optional: Add background/padding if you want form distinct from page bg */
  /* background-color: #f8f9fa; */
  /* padding: 30px; */
  /* border: 1px solid #e9ecef; */
  /* border-radius: 8px; */
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); */
}

/* Spacing for each field group */
.page-slug-contact-us .wpforms-field {
  margin-bottom: 25px;
}

/* Label Styling */
.page-slug-contact-us .wpforms-field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #444;
}

/* Required indicator (*) */
.page-slug-contact-us .wpforms-required-label {
  color: #dc3545; /* Red */
  font-weight: bold;
  margin-left: 4px;
}

/* Input, Select, Textarea Styling (Consistency with Newsletter/Theme) */
.page-slug-contact-us .wpforms-field input[type="text"],
.page-slug-contact-us .wpforms-field input[type="email"],
.page-slug-contact-us .wpforms-field select,
.page-slug-contact-us .wpforms-field textarea {
  width: 100%;
  padding: 14px 18px; /* Consistent padding */
  border: 1px solid #ccc;
  border-radius: 6px; /* Consistent radius */
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  min-height: 50px; /* Consistent height */
  background-color: #fff; /* Ensure white background */
}

/* Select Dropdown Arrow */
.page-slug-contact-us .wpforms-field-dropdown select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px auto;
  padding-right: 40px;
}
.page-slug-contact-us .wpforms-field-dropdown select::-ms-expand {
    display: none; /* IE/Edge */
}

/* Textarea specific */
.page-slug-contact-us .wpforms-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Focus Styles */
.page-slug-contact-us .wpforms-field input:focus,
.page-slug-contact-us .wpforms-field select:focus,
.page-slug-contact-us .wpforms-field textarea:focus {
  border-color: #0099ff; /* Your brand focus color */
  box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.2);
  outline: none;
}

/* Submit Button Area */
.page-slug-contact-us .wpforms-submit-container {
  text-align: center; /* Center the button */
  margin-top: 30px; /* Space above button */
}

/* Submit Button Styling (Match .button-main) */
.page-slug-contact-us .wpforms-submit {
  /* Copy styles from your global .button-main */
  display: inline-block;
  padding: 12px 30px;
  background-color: #0099ff; /* Your main button color */
  color: #ffffff;
  border: 2px solid #0099ff;
  border-radius: 6px; /* Consistent radius */
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  min-width: 200px;
  line-height: normal; /* Ensure proper button height */
}

.page-slug-contact-us .wpforms-submit:hover,
.page-slug-contact-us .wpforms-submit:focus {
  background-color: #007acc; /* Darker shade for hover */
  border-color: #007acc;
  color: #ffffff;
  transform: translateY(-2px); /* Slight lift */
  outline: none;
}

/* Style WPForms Confirmation/Error Messages (Basic) */
/* WPForms usually replaces the form container, check live output if needed */
.wpforms-confirmation-container, /* WPForms Confirmation ID */
.wpforms-error-container { /* WPForms Error Class */
  padding: 20px;
  margin-top: 30px;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
  max-width: 750px; /* Match form width */
  margin-left: auto;
  margin-right: auto;
}

.wpforms-confirmation-container {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpforms-error-container {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* --- Contact Us Responsive --- */

@media (max-width: 768px) { /* Mobile */
  .page-slug-contact-us .contact-intro h2 {
    font-size: 28px;
  }
  .page-slug-contact-us .contact-intro p {
    font-size: 16px;
  }
  .page-slug-contact-us .wpforms-container {
      padding-left: 15px; /* Ensure form doesn't touch edges */
      padding-right: 15px;
  }
  .page-slug-contact-us .wpforms-submit {
      width: 100%; /* Full width button */
      max-width: 320px; /* Limit max width */
  }
}