/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

* {
	box-sizing: border-box;
}

.formulario-px-container {
	max-width: 600px;
	margin: 40px auto;
	padding: 0 20px;
}

.formulario-lead-form {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 35px 25px;
}

/* Header */
.form-header {
	text-align: left;
	margin-bottom: 25px;
	padding-bottom: 0;
	border-bottom: none;
}

.form-header h2 {
	font-size: 20px;
	font-weight: 600;
	color: #4c59c8;
	margin: 0 0 8px 0;
}

.form-header p {
	font-size: 13px;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

/* Form Sections */
.form-section {
	margin-bottom: 0;
}

.form-section h3 {
	display: none;
}

/* Form Rows */
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.form-row-single {
	grid-template-columns: 1fr;
}

.form-row:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.form-row {
		grid-template-columns: 1fr;
	}
}

/* Form Groups */
.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	font-size: 13px;
	font-weight: 600;
	color: #4c59c8;
	margin-bottom: 8px;
}

.form-group .required {
	color: #4c59c8;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
	padding: 11px 14px;
	font-size: 14px;
	border: 2px solid #d0d5f6;
	border-radius: 10px;
	transition: all 0.3s ease;
	background: #fff;
	color: #333;
	font-family: inherit;
	width: 100%;
}

.form-group input::placeholder,
.form-group select option:first-child {
	color: #a0a0a0;
	font-size: 13px;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: #4c59c8;
	box-shadow: 0 0 0 3px rgba(76, 89, 200, 0.1);
}

.form-group.has-error input,
.form-group.has-error select {
	border-color: #e74c3c;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus {
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Select styling - keep current arrow */
.form-group select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234c59c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px;
}

/* Error Messages */
.error-message {
	font-size: 12px;
	color: #e74c3c;
	margin-top: 5px;
	min-height: 18px;
	display: block;
}

.help-text {
	font-size: 11px;
	color: #999;
	margin-top: 5px;
	display: block;
}

/* Submit Button */
.form-actions {
	margin-top: 25px;
	text-align: center;
}

.btn-submit {
	background: #4c59c8;
	color: #fff;
	border: none;
	padding: 14px 48px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(76, 89, 200, 0.3);
	width: 100%;
	position: relative;
}

.btn-submit:hover {
	background: #3d4ab0;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(76, 89, 200, 0.4);
}

.btn-submit:active {
	transform: translateY(0);
}

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

/* Loading Spinner */
.spinner {
	animation: rotate 2s linear infinite;
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
}

.spinner .path {
	stroke: #fff;
	stroke-linecap: round;
	animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}

	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}

	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* Response Messages */
.form-response {
	margin-top: 20px;
	padding: 20px;
	border-radius: 10px;
	animation: slideDown 0.4s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.success-message {
	background: #d4edda;
	border: 2px solid #c3e6cb;
	color: #155724;
	padding: 18px;
	border-radius: 10px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.success-message .icon-success {
	width: 24px;
	height: 24px;
	fill: #28a745;
	flex-shrink: 0;
}

.success-message p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.error-message-box {
	background: #f8d7da;
	border: 2px solid #f5c6cb;
	color: #721c24;
	padding: 18px;
	border-radius: 10px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.error-message-box .icon-error {
	width: 24px;
	height: 24px;
	fill: #dc3545;
	flex-shrink: 0;
}

.error-message-box p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

/* Calendly Button */
.calendly-container {
	margin-top: 15px;
	text-align: center;
}

.btn-calendly {
	display: inline-block;
	background: #4c59c8;
	color: #fff;
	padding: 12px 28px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(76, 89, 200, 0.3);
}

.btn-calendly:hover {
	background: #3d4ab0;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(76, 89, 200, 0.4);
	color: #fff;
	text-decoration: none;
}

/* Footer text */
.form-footer {
	margin-top: 20px;
	text-align: center;
	font-size: 11px;
	color: #999;
	line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.formulario-lead-form {
		padding: 25px 20px;
	}

	.form-header h2 {
		font-size: 18px;
	}

	.form-header p {
		font-size: 12px;
	}

	.btn-submit {
		padding: 12px 24px;
	}
}