/* ==========================================================================
   CONTACT FORM 7 PREMIUM STYLING
   ========================================================================== */

.yoga-contact-form-container {
  background-color: #ffffff;
  border-radius: 30px;
  padding: 50px 40px;
  box-shadow: 0 15px 40px -15px rgba(44, 82, 52, 0.08);
  border: 1px solid #E8E5DF;
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 40px auto;
  /* Mandala decoration in the bottom-left corner */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23EC5B13' stroke-width='0.5' stroke-opacity='0.12'%3E%3Ccircle cx='100' cy='100' r='90' /%3E%3Ccircle cx='100' cy='100' r='70' /%3E%3Ccircle cx='100' cy='100' r='50' /%3E%3Cg transform='translate(100,100)'%3E%3Cellipse rx='15' ry='90' transform='rotate(0)' /%3E%3Cellipse rx='15' ry='90' transform='rotate(30)' /%3E%3Cellipse rx='15' ry='90' transform='rotate(60)' /%3E%3Cellipse rx='15' ry='90' transform='rotate(90)' /%3E%3Cellipse rx='15' ry='90' transform='rotate(120)' /%3E%3Cellipse rx='15' ry='90' transform='rotate(150)' /%3E%3C/g%3E%3C/svg%3E");
  background-position: left -50px bottom -50px;
  background-repeat: no-repeat;
  background-size: 240px 240px;
}

/* Form Heading */
.yoga-form-title {
  font-family: "Fraunces", serif;
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  color: #242A25;
  margin-top: 0;
  margin-bottom: 35px;
}

/* Rows & Columns Grid */
.yoga-form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
  margin-bottom: 20px;
}

.yoga-form-col {
  flex: 1;
  padding-left: 10px;
  padding-right: 10px;
  min-width: 250px;
}

.yoga-form-col.half-width {
  flex: 0 0 50%;
  max-width: 50%;
}

.yoga-form-col.full-width {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Responsive Columns & Mobile View */
@media (max-width: 600px) {
  .yoga-contact-form-container {
    padding: 30px 20px;
    margin: 20px 15px;
    border-radius: 20px;
    background-size: 160px 160px;
    background-position: left -30px bottom -30px;
  }
  
  .yoga-form-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .yoga-form-col.half-width {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .yoga-form-row {
    margin-bottom: 0;
  }

  .yoga-contact-form-container input[type="text"],
  .yoga-contact-form-container input[type="email"],
  .yoga-contact-form-container input[type="tel"],
  .yoga-contact-form-container textarea {
    padding: 14px 16px;
    font-size: 14px;
  }

  .yoga-contact-form-container .wpcf7-submit {
    padding: 14px 45px 14px 20px;
    font-size: 15px;
    background-position: right 18px center;
    background-size: 16px 16px;
  }
  
  .yoga-contact-form-container .wpcf7-submit:hover {
    background-position: right 15px center;
  }
}

/* Input Fields & Textarea styling */
.yoga-contact-form-container input[type="text"],
.yoga-contact-form-container input[type="email"],
.yoga-contact-form-container input[type="tel"],
.yoga-contact-form-container textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #FCDFD0; /* Light peachy outline */
  border-radius: 12px;
  padding: 16px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: #242A25;
  outline: none;
  transition: all 0.3s ease;
}

/* Muted placeholder text */
.yoga-contact-form-container input::placeholder,
.yoga-contact-form-container textarea::placeholder {
  color: #a6b2a7;
  opacity: 1;
}

/* Input Focus & Hover States */
.yoga-contact-form-container input[type="text"]:focus,
.yoga-contact-form-container input[type="email"]:focus,
.yoga-contact-form-container input[type="tel"]:focus,
.yoga-contact-form-container textarea:focus,
.yoga-contact-form-container input[type="text"]:hover,
.yoga-contact-form-container input[type="email"]:hover,
.yoga-contact-form-container input[type="tel"]:hover,
.yoga-contact-form-container textarea:hover {
  border-color: #EC5B13; /* Highlight to branding orange */
  box-shadow: 0 0 0 3px rgba(236, 91, 19, 0.08);
}

/* Textarea Height */
.yoga-contact-form-container textarea {
  height: 140px;
  resize: vertical;
}

/* Submit Button Wrapper */
.yoga-contact-form-container .wpcf7-submit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #EC5B13;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 16px 50px 16px 30px; /* Leave space on the right for paper plane icon */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Paper plane SVG icon background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M2.01 21L23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 18px 18px;
}

/* Button Hover State */
.yoga-contact-form-container .wpcf7-submit:hover {
  background-color: #d44f0f;
  box-shadow: 0 8px 20px -6px rgba(236, 91, 19, 0.35);
  background-position: right 20px center; /* Subtle shift on hover */
}

/* Validation Error Styles (Contact Form 7 specific overrides) */
.yoga-contact-form-container .wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 13px;
  margin-top: 5px;
  font-family: "DM Sans", sans-serif;
}

.yoga-contact-form-container .wpcf7-response-output {
  margin: 20px 0 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
}
