/* Finey CRM – estilo del formulario de registro (Contact Form 7)
 * Solo afecta a formularios envueltos en <div class="finey-form">. */

.finey-form {
	--ff-navy: #0f1b3d;
	--ff-gold: #c9a227;
	--ff-gold-2: #e8c75a;
	--ff-ink: #1d2327;
	--ff-muted: #6b7280;
	--ff-line: #dcdfe4;
	--ff-focus: rgba(201, 162, 39, .22);
	box-sizing: border-box;
	max-width: 780px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #ebedf0;
	border-top: 4px solid var(--ff-gold);
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(15, 27, 61, .08);
	color: var(--ff-ink);
	text-align: left;
}
.finey-form *, .finey-form *::before, .finey-form *::after { box-sizing: border-box; }

/* Contact Form 7 agrega <br> y <p> automáticamente: los neutralizamos. */
.finey-form br { display: none; }
.finey-form p { margin: 0; padding: 0; }

/* Encabezado */
.finey-form .ff-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f0f1f3; }
.finey-form .ff-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #a8861c;
	margin-bottom: 6px;
}
.finey-form .ff-head h3 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; color: var(--ff-navy); }
.finey-form .ff-head p { color: var(--ff-muted); font-size: 16px; }

/* Grilla de campos */
.finey-form .ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.finey-form .ff-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.finey-form .ff-full { grid-column: 1 / -1; }

.finey-form .ff-field > label,
.finey-form .ff-label {
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ff-ink);
	float: none;
}
.finey-form .ff-field > label small { font-weight: 400; color: var(--ff-muted); }
.finey-form .wpcf7-form-control-wrap { display: block; width: 100%; position: relative; }

/* Campos de texto, listas y área de texto */
.finey-form input[type="text"],
.finey-form input[type="email"],
.finey-form input[type="tel"],
.finey-form input[type="number"],
.finey-form select,
.finey-form textarea {
	display: block;
	width: 100% !important;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	font: inherit;
	font-size: 16px; /* evita el zoom automático en iPhone */
	line-height: 1.4;
	color: var(--ff-ink);
	background-color: #fafbfc;
	border: 1.5px solid var(--ff-line);
	border-radius: 10px;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
	float: none;
}
.finey-form textarea { min-height: 96px; resize: vertical; }
.finey-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	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 1.5l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.finey-form input::placeholder, .finey-form textarea::placeholder { color: #9aa1ab; opacity: 1; }
.finey-form input:focus,
.finey-form select:focus,
.finey-form textarea:focus {
	outline: none;
	background-color: #fff;
	border-color: var(--ff-gold);
	box-shadow: 0 0 0 4px var(--ff-focus);
}

/* Opciones tipo "chip" (radios) */
.finey-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.finey-form .wpcf7-radio .wpcf7-list-item { margin: 0; display: block; }
.finey-form .wpcf7-radio label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 14px;
	border: 1.5px solid var(--ff-line);
	border-radius: 999px;
	background: #fafbfc;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	user-select: none;
}
.finey-form .wpcf7-radio label:hover { border-color: #c4c9d1; }
.finey-form .wpcf7-radio input[type="radio"] { margin: 0; accent-color: var(--ff-navy); width: 16px; height: 16px; }
.finey-form .wpcf7-radio label:has(input:checked) {
	border-color: var(--ff-navy);
	background: var(--ff-navy);
	color: #fff;
}
.finey-form .wpcf7-radio label:has(input:checked) input { accent-color: var(--ff-gold-2); }
.finey-form .wpcf7-radio label:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--ff-focus); }

/* Verificación */
.finey-form .ff-quiz .wpcf7-form-control-wrap label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0;
	font-weight: 400;
}
.finey-form .wpcf7-quiz-label { font-size: 15px; color: var(--ff-muted); }
.finey-form .ff-quiz input[type="text"] { max-width: 140px; }

/* Consentimiento */
.finey-form .ff-legal { margin-top: 4px; }
.finey-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; display: block; }
.finey-form .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ff-muted);
	cursor: pointer;
}
.finey-form .wpcf7-acceptance input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--ff-navy);
}

/* Botón */
.finey-form .ff-actions { align-items: center; gap: 10px; margin-top: 6px; }
.finey-form .ff-actions p { display: contents; }
.finey-form input.ff-submit,
.finey-form .wpcf7-submit {
	display: block;
	width: 100%;
	max-width: 420px;
	min-height: 54px;
	margin: 0 auto;
	padding: 14px 28px;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--ff-navy);
	background: linear-gradient(135deg, var(--ff-gold-2), var(--ff-gold));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(201, 162, 39, .35);
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, filter .15s;
	text-transform: none;
}
.finey-form input.ff-submit:hover,
.finey-form .wpcf7-submit:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 12px 24px rgba(201, 162, 39, .42); color: var(--ff-navy); }
.finey-form input.ff-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.finey-form .ff-note { display: block; text-align: center; font-size: 13px; color: var(--ff-muted); }
.finey-form .wpcf7-spinner { display: block; margin: 8px auto 0; }

/* Compartir el formulario */
.finey-form .ff-share {
	background: #fbf7ea;
	border: 1px solid #efe2b3;
	border-radius: 12px;
	padding: 18px 18px 16px;
}
.finey-form .ff-share .ff-label { font-size: 15px; color: var(--ff-navy); }
.finey-form .ff-share-sub { margin: 4px 0 14px; font-size: 14px; line-height: 1.45; color: var(--ff-muted); }
.finey-form .ff-share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.finey-form .ff-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 150px;
	min-height: 46px;
	margin: 0;
	padding: 10px 16px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	box-shadow: none;
	transition: transform .15s, filter .15s, background .15s;
}
.finey-form .ff-share-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.finey-form .ff-share-btn svg { flex: 0 0 auto; }
.finey-form .ff-share-wa { background: #1f9d55; color: #fff !important; }
.finey-form .ff-share-mail { background: var(--ff-navy); color: #fff !important; }
.finey-form .ff-share-copy { background: #fff; color: var(--ff-navy); border-color: var(--ff-line); }
.finey-form .ff-share-copy.is-ok { background: #eef9f1; border-color: #2e9a55; color: #1a6a2f; }

/* Errores de validación */
.finey-form .wpcf7-not-valid { border-color: #d63638 !important; background-color: #fff6f6 !important; }
.finey-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #d63638; }

/* Mensaje de respuesta (debajo del formulario) */
.wpcf7 form:has(.finey-form) .wpcf7-response-output {
	max-width: 780px;
	margin: 16px auto 0;
	padding: 14px 18px;
	border-radius: 12px;
	border-width: 1.5px;
	font-size: 15px;
	text-align: center;
}
.wpcf7 form.sent:has(.finey-form) .wpcf7-response-output { border-color: #2e9a55; background: #eef9f1; color: #1a6a2f; }
.wpcf7 form.invalid:has(.finey-form) .wpcf7-response-output,
.wpcf7 form.unaccepted:has(.finey-form) .wpcf7-response-output { border-color: #d9a400; background: #fff8e5; color: #7a5c00; }

/* Celular */
@media (max-width: 640px) {
	.finey-form { padding: 22px 18px; border-radius: 14px; }
	.finey-form .ff-grid { grid-template-columns: 1fr; gap: 16px; }
	.finey-form .ff-head h3 { font-size: 22px; }
	.finey-form .wpcf7-radio label { font-size: 14px; padding: 8px 12px; }
	.finey-form input.ff-submit, .finey-form .wpcf7-submit { max-width: none; }
}
