/* ================================================================
   Contact Page CSS — compound selectors & pseudo-elements only.
   Base styles (flex, grid, spacing, colors) → Tailwind in contact-template.php.
   Loaded only on: page-template/contact-template.php
================================================================ */

/* ----------------------------------------------------------------
   Section title underline — pseudo-element ::after
---------------------------------------------------------------- */
.contact-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4.8rem;
  height: 0.3rem;
  background: #ef519e;
  border-radius: 10rem;
}

/* ----------------------------------------------------------------
   Info card icon — invert to white on hover (compound: .group:hover img)
   Tailwind group-hover cannot target <img> filter
---------------------------------------------------------------- */
.contact-info-card:hover .contact-info-icon {
  filter: brightness(0) invert(1);
}

/* ----------------------------------------------------------------
   Map iframe — compound selector: .contact-map iframe
   Third-party embed; cannot add Tailwind to <iframe>
---------------------------------------------------------------- */
.contact-map iframe {
  width: 100%;
  height: 48rem;
  display: block;
  border: none;
}

@media (max-width: 768px) {
  .contact-map iframe {
    height: 32rem;
  }
}

/* ================================================================
   Contact Form 7 (CF7) — all compound (.ct-form-in .wpcf7-*)
   CF7 generates its own HTML; cannot add Tailwind classes to it.
================================================================ */

/* ---- Reset CF7 wrapper ---- */
.ct-form-in .wpcf7 {
  margin: 0;
  padding: 0;
}


@media (max-width: 600px) {
  .ct-form-in .wpcf7-form {
    grid-template-columns: 1fr;
  }
}

/* ---- Full-width fields: message, submit row ---- */
.ct-form-in .wpcf7-form .wpcf7-textarea,
.ct-form-in .wpcf7-form [data-name="your-message"],
.ct-form-in .wpcf7-form .wpcf7-submit,
.ct-form-in .wpcf7-form [data-name="submit"] {
  grid-column: 1 / -1;
}

/* ---- Input & select ---- */
.ct-form-in .wpcf7-form input:not([type="submit"]),
.ct-form-in .wpcf7-form select,
.ct-form-in .wpcf7-form textarea {
  width: 100%;
  padding: 1.2rem 1.4rem;
  font-size: 1.5rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.8rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.ct-form-in .wpcf7-form input:not([type="submit"]):focus,
.ct-form-in .wpcf7-form select:focus,
.ct-form-in .wpcf7-form textarea:focus {
  border-color: #ef519e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(239, 81, 158, 0.12);
}

/* ---- Textarea ---- */
.ct-form-in .wpcf7-form textarea {
  resize: vertical;
  min-height: 14rem;
  line-height: 1.6;
}

/* ---- Placeholder ---- */
.ct-form-in .wpcf7-form input::-webkit-input-placeholder,
.ct-form-in .wpcf7-form textarea::-webkit-input-placeholder {
  color: #aaa;
}
.ct-form-in .wpcf7-form input::-moz-placeholder,
.ct-form-in .wpcf7-form textarea::-moz-placeholder {
  color: #aaa;
}
.ct-form-in .wpcf7-form input::placeholder,
.ct-form-in .wpcf7-form textarea::placeholder {
  color: #aaa;
}

/* ---- Submit button ---- */
.ct-form-in .wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 1.4rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: #ef519e;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

@media (hover: hover) {
  .ct-form-in .wpcf7-form input[type="submit"]:hover {
    background: #d93d8a;
    transform: translateY(-1px);
  }
}

.ct-form-in .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* ---- Validation messages ---- */
.ct-form-in .wpcf7-not-valid-tip {
  font-size: 1.2rem;
  color: #e11d48;
  margin-top: 0.4rem;
  display: block;
}

.ct-form-in .wpcf7-validation-errors,
.ct-form-in .wpcf7-acceptance-missing {
  grid-column: 1 / -1;
  font-size: 1.3rem;
  color: #e11d48;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.6rem;
  padding: 1rem 1.4rem;
  margin-top: 0.4rem;
}

.ct-form-in .wpcf7-mail-sent-ok {
  grid-column: 1 / -1;
  font-size: 1.3rem;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.6rem;
  padding: 1rem 1.4rem;
  margin-top: 0.4rem;
}
