/**
 * Estilos Públicos de Formularios - N~Foque Gestión de Consultas Web
 */

.ngc-form-container {
	max-width: 820px;
	margin: 0 auto 30px auto;
	box-sizing: border-box;
	font-family: inherit;
}

.ngc-form-container * {
	box-sizing: border-box;
}

/* Grid del formulario */
.ngc-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: 20px;
	row-gap: 18px;
	width: 100%;
}

.ngc-col-12 {
	grid-column: span 12;
}

.ngc-col-6 {
	grid-column: span 6;
}

@media (max-width: 640px) {
	.ngc-col-6 {
		grid-column: span 12;
	}
}

/* Campos e Inputs */
.ngc-field {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.ngc-field label {
	font-size: 14px;
	font-weight: 600;
	color: #222222;
	margin-bottom: 6px;
	line-height: 1.3;
}

.ngc-required {
	color: #cf2e2e;
	margin-left: 2px;
	font-weight: bold;
}

.ngc-field input[type="text"],
.ngc-field input[type="email"],
.ngc-field input[type="tel"],
.ngc-field select,
.ngc-field textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.5;
	color: #1a1a1a;
	background-color: #ffffff;
	border: 1px solid #d5d8dc;
	border-radius: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}

.ngc-field input[type="text"]:focus,
.ngc-field input[type="email"]:focus,
.ngc-field input[type="tel"]:focus,
.ngc-field select:focus,
.ngc-field textarea:focus {
	outline: none;
	border-color: #c5a880;
	box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25);
}

.ngc-field input.ngc-input-error,
.ngc-field select.ngc-input-error,
.ngc-field textarea.ngc-input-error {
	border-color: #cf2e2e;
	background-color: #fff9f9;
}

.ngc-field textarea {
	resize: vertical;
	min-height: 110px;
}

.ngc-field-hint {
	font-size: 12px;
	color: #777777;
	margin-top: 5px;
	line-height: 1.4;
}

/* Radio Group (Civil / Religiosa) */
.ngc-label-block {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #222222;
}

.ngc-radio-group {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 2px;
}

.ngc-radio-pill {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	background-color: #f7f7f7;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #333333;
	transition: all 0.2s ease;
	user-select: none;
}

.ngc-radio-pill input[type="radio"] {
	margin-right: 8px;
	accent-color: #1a1a1a;
	cursor: pointer;
}

.ngc-radio-pill:hover {
	background-color: #efefef;
	border-color: #bbb;
}

/* Sección Legal y RGPD */
.ngc-legal-section {
	margin-top: 22px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.ngc-checkbox-field {
	flex-direction: row;
	align-items: flex-start;
	margin-bottom: 12px;
}

.ngc-checkbox-label {
	display: flex;
	align-items: flex-start;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	line-height: 1.4;
}

.ngc-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	margin-right: 10px;
	accent-color: #1a1a1a;
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
}

.ngc-checkbox-label a {
	color: #1a1a1a;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.ngc-checkbox-label a:hover {
	color: #c5a880;
}

.ngc-legal-notice {
	font-size: 12px;
	line-height: 1.5;
	color: #777777;
}

.ngc-legal-notice p {
	margin: 0;
}

.ngc-legal-notice a {
	color: #666;
	text-decoration: underline;
}

/* Botón de Envío */
.ngc-submit-section {
	margin-top: 24px;
}

.ngc-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 36px;
	font-family: 'Montserrat', sans-serif, inherit;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #ffffff;
	background-color: #0b1726;
	border: 1px solid #0b1726;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(11, 23, 38, 0.16);
	transition: all 0.25s ease;
	text-transform: uppercase;
	min-height: 48px;
}

.ngc-submit-button:hover {
	background-color: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
	transform: translateY(-2px);
}

.ngc-submit-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

/* Spinner de carga */
.ngc-spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: ngc-spin 0.8s linear infinite;
}

@keyframes ngc-spin {
	to { transform: rotate(360deg); }
}

.ngc-submitting .ngc-spinner {
	display: inline-block;
}

/* Banner de Alerta / Errores */
.ngc-alert-box {
	padding: 14px 18px;
	margin-bottom: 20px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.ngc-alert-error {
	background-color: #fff2f2;
	border-left: 4px solid #cf2e2e;
	color: #a80000;
}

/* Tarjeta de Confirmación de Éxito */
.ngc-success-card {
	padding: 40px 30px;
	background-color: #fbfbfc;
	border: 1px solid #e2e5e9;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.ngc-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #edf7ed;
	color: #2e7d32;
}

.ngc-success-title {
	font-size: 22px;
	font-weight: 700;
	color: #111111;
	margin: 0 0 10px 0;
}

.ngc-success-text {
	font-size: 15px;
	line-height: 1.6;
	color: #444444;
	max-width: 580px;
	margin: 0 auto 18px auto;
}

.ngc-success-ref {
	font-size: 14px;
	color: #666;
	background: #ffffff;
	border: 1px dashed #c5a880;
	padding: 8px 16px;
	border-radius: 4px;
	display: inline-block;
	margin-bottom: 22px;
}

.ngc-ref-code {
	font-family: monospace;
	font-size: 16px;
	color: #111111;
	margin-left: 5px;
}

.ngc-btn-reset {
	background: none;
	border: 1px solid #ccc;
	padding: 8px 18px;
	border-radius: 4px;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ngc-btn-reset:hover {
	background: #f0f0f0;
	border-color: #999;
	color: #111;
}

/* ==========================================================
   INTEGRACIÓN Y MAQUETACIÓN 2 COLUMNAS (BODAS / THEMEGOODS PPB)
   ========================================================== */

/* Cuando el contenedor está integrado en la columna de formulario PPB */
.nfoque-contact-col-form .ngc-form-container {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
}

.nfoque-contact-col-form .ngc-form-container .ngc-grid {
	width: 100% !important;
}

/* Reglas de la estructura flexbox de 2 columnas (.nfoque-contact-wrapper) */
@media (min-width: 861px) {
	.nfoque-contact-wrapper {
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: flex-start !important;
		gap: 50px !important;
		width: 100% !important;
		max-width: 1200px !important;
		margin: 40px auto 80px auto !important;
		padding: 0 24px !important;
		box-sizing: border-box !important;
		clear: both !important;
	}

	.nfoque-contact-col-info {
		flex: 1 1 45% !important;
		width: 45% !important;
		max-width: 45% !important;
		padding-top: 6px !important;
		box-sizing: border-box !important;
	}

	.nfoque-contact-col-form {
		flex: 1 1 52% !important;
		width: 52% !important;
		max-width: 52% !important;
		box-sizing: border-box !important;
	}

	/* Reset total de paddings e inconsistencias de ThemeGoods PPB */
	.nfoque-contact-col-info .one_half,
	.nfoque-contact-col-form .one_half,
	.nfoque-contact-wrapper .page_content_wrapper,
	.nfoque-contact-wrapper .inner,
	.nfoque-contact-wrapper .standard_wrapper {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		box-sizing: border-box !important;
	}

	/* Fallback CSS puro antes de la carga de JavaScript */
	.ppb-fullwidth-page > .standard_wrapper:has(> .one_half.withsmallpadding.ppb_header):has(+ .standard_wrapper > .one_half.last.withsmallpadding.ppb_text) {
		float: left !important;
		width: 45% !important;
		max-width: 540px !important;
		margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
		margin-right: 0 !important;
		padding: 0 20px !important;
		clear: none !important;
		box-sizing: border-box !important;
	}
	.ppb-fullwidth-page > .standard_wrapper:has(> .one_half.withsmallpadding.ppb_header):has(+ .standard_wrapper > .one_half.last.withsmallpadding.ppb_text) .one_half {
		padding: 0 !important;
		width: 100% !important;
	}
	.ppb-fullwidth-page > .standard_wrapper:has(> .one_half.withsmallpadding.ppb_header) + .standard_wrapper:has(> .one_half.last.withsmallpadding.ppb_text) {
		float: right !important;
		width: 52% !important;
		max-width: 620px !important;
		margin-right: max(0px, calc((100% - 1200px) / 2)) !important;
		margin-left: 0 !important;
		padding: 0 20px !important;
		clear: none !important;
		box-sizing: border-box !important;
	}
	.ppb-fullwidth-page > .standard_wrapper:has(> .one_half.withsmallpadding.ppb_header) + .standard_wrapper:has(> .one_half.last.withsmallpadding.ppb_text) .one_half {
		padding: 0 !important;
		width: 100% !important;
	}
	.ppb-fullwidth-page > .standard_wrapper:has(> .one_half.withsmallpadding.ppb_header) + .standard_wrapper:has(> .one_half.last.withsmallpadding.ppb_text) + * {
		clear: both !important;
	}
}

@media (max-width: 860px) {
	.nfoque-contact-wrapper {
		display: flex !important;
		flex-direction: column !important;
		gap: 35px !important;
		margin: 30px auto 60px auto !important;
		padding: 0 20px !important;
	}

	.nfoque-contact-col-info,
	.nfoque-contact-col-form {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
		padding: 0 !important;
	}

	.nfoque-contact-col-info .one_half,
	.nfoque-contact-col-form .one_half {
		padding: 0 !important;
		width: 100% !important;
	}
}
