/**
 * Theme Name: Rey Child
 * Theme URI: http://reytheme.com/
 * Description: This is a child theme of Rey.
 * Author: Marius H.
 * Author URI:  https://twitter.com/mariushoria
 * Template: rey
 * Version: 1.0.0
 * License: General Public License
 * License URI: http://www.gnu.org/licenses/gpl.html
 * Text Domain: rey-child
 */

/* --- Modern Contact Form 7 Styles --- */

/* 1. MAIN FORM CONTAINER */
.wpcf7-form {
  max-width: 700px; /* Adjust as needed */
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* 2. FORM LABELS */
.wpcf7-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #021A41; /* Dark Blue */
  margin-bottom: 8px;
}

/* 3. TEXT, EMAIL, TEL, URL, DATE, NUMBER & TEXTAREA */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  color: #181A1C; /* Dark Grey/Black */
  background-color: #ffffff; /* White */
  border: 1px solid #ddd;
  border-radius: 5px; /* Subtle rounded corners */
  box-sizing: border-box; /* Ensures padding doesn't break width */
  font-size: 1rem;
  
  /* Minimal transition for focus */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 4. MODERN FOCUS STATE (ON CLICK/TAB) */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus {
  outline: none; /* Remove default browser outline */
  border-color: #021A41; /* Dark Blue border on focus */
  box-shadow: 0 0 5px rgba(2, 26, 65, 0.3); /* Subtle blue glow */
}

/* 5. PLACEHOLDER TEXT */
.wpcf7-form ::placeholder {
  color: #999;
  opacity: 1; /* Firefox */
}

/* 6. SUBMIT BUTTON */
.wpcf7-form input[type="submit"] {
  display: block;
  width: 100%; /* Full width button */
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff; /* White text */
  background-color: #021A41; /* Dark Blue */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  
  /* Minimal transition for hover */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* 7. BUTTON HOVER & ACTIVE STATE */
.wpcf7-form input[type="submit"]:hover {
  background-color: #181A1C; /* Dark Grey/Black on hover */
  transform: translateY(-2px); /* Subtle lift animation */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0); /* Click down effect */
}

/* 8. ACCEPTANCE CHECKBOX */
.wpcf7-form .wpcf7-acceptance {
  margin-top: 10px;
  margin-bottom: 20px;
}
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
  color: #555;
  font-weight: 400;
  font-size: 0.9rem;
}

/* 9. VALIDATION & RESPONSE MESSAGES */

/* Red box for errors (e.g., "One or more fields have an error") */
.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors {
  background: #fdeaea;
  border: 1px solid #f9c5c5;
  color: #c02d2d;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* Green box for success */
.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #eaf7ed;
  border: 1px solid #c8e6cf;
  color: #2a7c3e;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* Red error message under the field */
.wpcf7-form span.wpcf7-not-valid-tip {
  color: #c02d2d;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: -15px; /* Pulls it closer to the field */
  display: block;
  padding-bottom: 10px;
}

/* --- Optional: Side-by-Side Fields --- */
.form-row-split {
  display: flex;
  flex-direction: row;
  gap: 20px; /* This creates the space between the fields */
}

.form-row-split .form-col {
  flex: 1; /* This makes each column take up 50% of the space */
  min-width: 0; /* Fix for flexbox behavior */
}

/* This is the media query that makes it responsive */
@media (max-width: 600px) {
  .form-row-split {
    flex-direction: column; /* Stack them on top of each other */
    gap: 0; /* Remove the space when stacked */
  }
}


