/*
 * ===================================================================
 * Custom Styles for Product Enquiry Contact Form 7
 * ===================================================================
 */
 
 :root {
  --e-global-color-primaryv1: #98002e;
}

/* 1. General Container & Layout
-------------------------------------------------------------- */
.product-form-enquiry {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  padding: 40px 20px;
}

.product-form-enquiry .form-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-form-enquiry .form-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.25rem;
  font-weight: 700;
  color: #2c3e50;
}

/* 2. Form Grid & Field Spacing
-------------------------------------------------------------- */
/* Ensures the Bootstrap grid columns have proper spacing */

.wpcf7-form{
    margin-top:50px;
}

.wpcf7-form .form-row,
.product-form-enquiry .wpcf7-form .form-row {
  margin-left: -15px;
  margin-right: -15px;
}


.wpcf7-form .col-md-6,
.wpcf7-form .col-md-12,
.product-form-enquiry .wpcf7-form .col-md-6,
.product-form-enquiry .wpcf7-form .col-md-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* This standardizes the space below each form field group */
.wpcf7-form .form-group ,
.product-form-enquiry .wpcf7-form .form-group {
  margin-bottom: 1.75rem;
  position: relative; /* Needed for any potential future modifications */
}


/* 3. Labels and Input Fields
-------------------------------------------------------------- */
/* This section resets the complex label positioning from your HTML
   and styles it as a clean, standard label above the input field. */
.form-group label,
.product-form-enquiry .form-group label {
  display: block;
  position: static; /* Overrides the original inline absolute positioning */
  margin-bottom: 8px;
  padding: 0px;
}

.form-group label br,
.product-form-enquiry .form-group label br {
  display: none; /* Hides unnecessary <br> tags */
}

/* Targets the <span> with the label text */
.form-group label .h6,
.product-form-enquiry .form-group label .h6 {
  position: static !important; /* Overrides inline style */
  background: none !important; /* Overrides inline style */
  padding: 0 !important; /* Overrides inline style */
  font-size: 14px !important;
  color: #34495e;
  font-weight: 600;
}

/* Universal styling for all input types */
.wpcf7-form .form-control,
.product-form-enquiry .wpcf7-form .form-control {
  display: block;
  width: 100%;
  height: 52px !important; /* Consistent height for inputs and selects */
  padding: 0 15px;
  font-size: 14px !important;
  color: #333;
  background-color: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 5px !important;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-top: 0 !important; /* Overrides the mt-n3 class */
  margin:0px !important;
}

/* Adds a focus effect for better UX */
.wpcf7-form .form-control:focus ,
.product-form-enquiry .wpcf7-form .form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Specific styling for the <textarea> */
.wpcf7-form textarea.form-control,
.product-form-enquiry .wpcf7-form textarea.form-control {
  height: auto;
  min-height: 140px;
  padding-top: 15px;
  resize: vertical;
}

/* Custom dropdown arrow for <select> elements */
.wpcf7-form select.form-control,
.product-form-enquiry .wpcf7-form select.form-control {
  appearance: none;
  -webkit-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%23666666%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 1rem center;
  background-size: 10px;
}

/* 4. Submit Button
-------------------------------------------------------------- */
.wpcf7-submit,
.product-form-enquiry .wpcf7-submit {
  width: 100%;
  padding: 0 !important; /* Reset padding to be controlled by height/line-height */
  height: 55px;
  line-height: 55px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background-color: var(--e-global-color-primaryv1) !important; /* Your primary color */
  border: none !important;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wpcf7-submit:hover,
.product-form-enquiry .wpcf7-submit:hover {
  background-color: color-mix(in srgb, var(--e-global-color-primaryv1) 80%, white) !important; /* Darker shade for hover */
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.wpcf7-submit:active,
.product-form-enquiry .wpcf7-submit:active {
  transform: translateY(0);
}


/* 5. Validation Messages & Errors
-------------------------------------------------------------- */
/* Style for invalid field borders */
.wpcf7-form-control.wpcf7-not-valid,
.product-form-enquiry .wpcf7-form-control.wpcf7-not-valid {
  border-color: #e74c3c !important; /* Red for errors */
}

/* Error message below the field */
.wpcf7-not-valid-tip,
.product-form-enquiry .wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 0.9em;
  margin-top: 8px;
  font-weight: 500;
}

/* General response box (for success or failure messages) */
.wpcf7-response-output,
.product-form-enquiry .wpcf7-response-output {
  margin: 2rem 0 0;
  padding: 1.25rem;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
}

/* Red error box */
.wpcf7-validation-errors,
.product-form-enquiry .wpcf7-validation-errors {
  border: 1px solid #e74c3c;
  background-color: #fdedec;
  color: #c0392b;
}

/* Green success box */
.wpcf7-mail-sent-ok,
.product-form-enquiry .wpcf7-mail-sent-ok {
  border: 1px solid #27ae60;
  background-color: #d4efdf;
  color: #1e8449;
}


/* 6. Responsive Design
-------------------------------------------------------------- */
@media (max-width: 768px) {
  .form-container,
  .product-form-enquiry .form-container {
    padding: 2rem;
  }

  .wpcf7-form .col-md-6,
  .product-form-enquiry .wpcf7-form .col-md-6 {
    width: 100%; /* Stacks the two-column fields on mobile */
  }

  .form-title,
  .product-form-enquiry .form-title {
    font-size: 1.8rem;
  }
}

::placeholder,
.product-form-enquiry ::placeholder {
  color: #999 !important;
}

.form-row .col-md-6 br,.form-row .col-md-12 br {
    display: none !important;
}

/*#sourceDepot option:first-child {*/
/*    color: #999;*/
/*}*/
/*#sourceDepot option:not(:first-child) {*/
/*    color: #000;*/
/*}*/

select option:first-child {
    color: #999;
}
select option:not(:first-child) {
    color: #000;
}