/* 
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 */
/* ============================================================
   CHANGE SUMMIT 26 — Contact Form 7 Custom CSS
   Estilo: dark premium, laranja #E8621A, tipografia Inter
   Aplicar em: Appearance > Customize > Additional CSS
   ou no campo CSS do Elementor / plugin de CSS custom
   ============================================================ */

/* ── IMPORT FONT ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── WRAPPER DO FORM ─────────────────────────────────────── */
.wpcf7 {
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.035);
  border: 0.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  max-width: 560px;
}

/* linha laranja no topo do form */
.wpcf7::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 98, 26, 0.6),
    rgba(200, 147, 58, 0.8),
    rgba(232, 98, 26, 0.6),
    transparent
  );
}

/* ── LABELS ──────────────────────────────────────────────── */
.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 7px;
}

/* ── GRUPOS DE CAMPO ─────────────────────────────────────── */
.wpcf7 p,
.wpcf7 .wpcf7-form-group {
  margin-bottom: 14px;
}

.wpcf7 p:last-of-type {
  margin-bottom: 0;
}

/* ── INPUTS E TEXTAREA ───────────────────────────────────── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 input[type="search"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

/* focus */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="search"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: rgba(232, 98, 26, 0.55);
  background: rgba(232, 98, 26, 0.04);
  box-shadow: 0 0 0 3px rgba(232, 98, 26, 0.08);
}

/* hover */
.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 input[type="tel"]:hover,
.wpcf7 textarea:hover,
.wpcf7 select:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

/* textarea */
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── SELECT ──────────────────────────────────────────────── */
.wpcf7 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 d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
}

.wpcf7 select option {
  background: #111111;
  color: #ffffff;
}

/* ── CHECKBOX & RADIO ────────────────────────────────────── */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  accent-color: #E8621A;
  transition: border-color 0.2s;
  vertical-align: middle;
  margin-right: 8px;
}

.wpcf7 input[type="radio"] {
  border-radius: 50%;
}

.wpcf7 input[type="checkbox"]:checked,
.wpcf7 input[type="radio"]:checked {
  border-color: #E8621A;
  background: #E8621A;
}

/* label inline (checkbox/radio) */
.wpcf7 .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
  margin-bottom: 8px;
}

.wpcf7 .wpcf7-list-item label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  margin-bottom: 0;
}

/* ── BOTÃO DE SUBMIT ─────────────────────────────────────── */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  width: 100%;
  background: #E8621A;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

/* shimmer no hover */
.wpcf7 input[type="submit"]::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.45s ease;
}

.wpcf7 input[type="submit"]:hover::after {
  left: 140%;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
  opacity: 0.95;
}

/* loading state */
.wpcf7 input[type="submit"].wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── MENSAGENS DE VALIDAÇÃO ──────────────────────────────── */

/* erro inline (campo) */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #F56565;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* campo inválido */
.wpcf7 .wpcf7-not-valid {
  border-color: rgba(245, 101, 101, 0.5) !important;
  background: rgba(245, 101, 101, 0.04) !important;
}

/* ── RESPONSE OUTPUT (mensagem pós-submit) ───────────────── */
.wpcf7-response-output {
  margin: 16px 0 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  border: 0.5px solid !important;
}

/* sucesso */
.wpcf7-mail-sent-ok {
  background: rgba(72, 187, 120, 0.08) !important;
  border-color: rgba(72, 187, 120, 0.35) !important;
  color: #68D391 !important;
}

/* erro geral */
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background: rgba(245, 101, 101, 0.08) !important;
  border-color: rgba(245, 101, 101, 0.35) !important;
  color: #FC8181 !important;
}

/* validação (campos em falta) */
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: rgba(237, 137, 54, 0.08) !important;
  border-color: rgba(237, 137, 54, 0.35) !important;
  color: #F6AD55 !important;
}

/* spam */
.wpcf7-spam-blocked {
  background: rgba(160, 32, 240, 0.08) !important;
  border-color: rgba(160, 32, 240, 0.35) !important;
  color: #B794F4 !important;
}

/* ── SPINNER DE LOADING ──────────────────────────────────── */
.wpcf7 .ajax-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #E8621A;
  border-radius: 50%;
  animation: cf7spin 0.7s linear infinite;
  vertical-align: middle;
  background: none !important; /* override default WP gif */
}

@keyframes cf7spin {
  to { transform: rotate(360deg); }
}

/* esconde o gif padrão */
.wpcf7 .ajax-loader.is-active {
  visibility: visible;
}

/* ── CAMPO DE FICHEIRO (se usado) ────────────────────────── */
.wpcf7 input[type="file"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.wpcf7 input[type="file"]:hover {
  border-color: rgba(232, 98, 26, 0.4);
}

/* ── ACCEPTANCE (GDPR checkbox) ──────────────────────────── */
.wpcf7 .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-top: 4px;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* ── LAYOUT DE 2 COLUNAS (opcional) ─────────────────────── */
/* Adiciona class="cf7-two-col" ao shortcode wrapper para ativar */
.cf7-two-col .wpcf7 {
  max-width: 100%;
}

.cf7-two-col .wpcf7 form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

/* campos que devem ocupar largura total no layout 2-col */
.cf7-two-col .wpcf7 p:has(textarea),
.cf7-two-col .wpcf7 p:last-child,
.cf7-two-col .wpcf7 p:has(input[type="submit"]),
.cf7-two-col .wpcf7 .wpcf7-response-output {
  grid-column: span 2;
}

/* ── RESPONSIVO ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .wpcf7 {
    padding: 28px 20px;
  }

  .cf7-two-col .wpcf7 form {
    grid-template-columns: 1fr;
  }

  .cf7-two-col .wpcf7 p:has(textarea),
  .cf7-two-col .wpcf7 p:last-child,
  .cf7-two-col .wpcf7 p:has(input[type="submit"]) {
    grid-column: span 1;
  }
}