/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ===========================
   CF7 Roofing Form Styles
   Valor Roofing — Brand Colors
   =========================== */

.cf-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Two-column grid row */
.cf-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Field wrapper */
.cf-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Labels */
.cf-input-wrap span.cf-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cf-required:before {
    content: "*";
    color: red;
}

/* All inputs, selects, and textareas */
.cf-container input[type="text"],
.cf-container input[type="tel"],
.cf-container input[type="email"],
.cf-container select,
.cf-container textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #f7f8fa;
  border: 1.5px solid #d1d9e0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

/* Select arrow */
.cf-container select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231e3a5f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Textarea */
.cf-container textarea {
  min-height: 50px;
  resize: vertical;
  line-height: 1.6;
}

/* Placeholder color */
.cf-container input::placeholder,
.cf-container textarea::placeholder {
  color: #9ca3af;
}

/* Focus state — brand navy ring */
.cf-container input[type="text"]:focus,
.cf-container input[type="tel"]:focus,
.cf-container input[type="email"]:focus,
.cf-container select:focus,
.cf-container textarea:focus {
  border-color: #2d5986;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 89, 134, 0.14);
}

/* Submit button — matches SEND / CONTACT brand button */
.service-ara-btn,
.cf-container input[type="submit"].service-ara-btn {
  display: inline-block;
  width: 100%;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #ec392e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(45, 89, 134, 0.3);
}

.service-ara-btn:hover,
.cf-container input[type="submit"].service-ara-btn:hover {
  background: #c12b22;
  box-shadow: 0 6px 18px rgba(45, 89, 134, 0.4);
}

.service-ara-btn:active,
.cf-container input[type="submit"].service-ara-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(45, 89, 134, 0.25);
}

/* CF7 default overrides */
.cf-container .wpcf7-form-control-wrap {
  display: block;
}

.cf-container .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
}

.cf-container .wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  border: none;
}

.cf-container .wpcf7-mail-sent-ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.cf-container .wpcf7-validation-errors,
.cf-container .wpcf7-mail-sent-ng {
  background: #fdecea;
  color: #b71c1c;
}

/* Responsive — stack columns on mobile */
@media (max-width: 640px) {
  .cf-container {
    padding: 24px 20px;
    gap: 16px;
  }

  .cf-col-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
