/* cable.css */

:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #4d4643; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #2b2320; /* Color for headings, subheadings and title throughout the website #2B2320 */ 
  --accent-color: #000080; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Scoped only to #cable-selection inside the contact section */
#cable-selection .php-email-form select.form-control {
  background-color: var(--surface-color);
  color: var(--default-color);
  font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 0;
  padding: 10px 15px;
  height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23aaaaaa' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#cable-selection .php-email-form select.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

#cable-selection .php-email-form select.form-control option:first-child {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

/* Label styling to match main.css */
#cable-selection .php-email-form label {
  font-weight: 600;
  color: var(--default-color);
  font-size: 15px;
  margin-bottom: 6px;
  display: block;
}

/* Improve spacing in the form */
#cable-selection .php-email-form .form-group {
  padding-bottom: 4px;
  margin-bottom: 10px;
}


/* Scoped only to #voltage-drop-selection inside the contact section */
#voltage-drop-selection .php-email-form select.form-control {
  background-color: var(--surface-color);
  color: var(--default-color);
  font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 0;
  padding: 10px 15px;
  height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23aaaaaa' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#voltage-drop-selection .php-email-form select.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

#voltage-drop-selection .php-email-form select.form-control option:first-child {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

/* Label styling to match main.css */
#voltage-drop-selection .php-email-form label {
  font-weight: 600;
  color: var(--default-color);
  font-size: 15px;
  margin-bottom: 6px;
  display: block;
}

/* Improve spacing in the form */
#voltage-drop-selection .php-email-form .form-group {
  padding-bottom: 4px;
  margin-bottom: 10px;
}

#voltage-drop-selection .php-email-form input.form-control {
  background-color: var(--surface-color);
  color: var(--default-color);
  font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 0;
  padding: 10px 15px;
  height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#voltage-drop-selection .php-email-form input.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

#voltage-drop-selection .php-email-form button.btn {
  border-radius: 0;
  padding: 10px 15px;
  height: 48px;
  font-size: 14px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: 1px solid var(--accent-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

#voltage-drop-selection .php-email-form button.btn:hover,
#voltage-drop-selection .php-email-form button.btn:focus {
  background-color: darken(var(--accent-color), 10%);
  border-color: darken(var(--accent-color), 10%);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}
