/**
 * Estilos para Botón y Formulario de Presupuesto
 * Usa <dialog> wpex-modal de Total Theme
 */

/* ============================================
   BOTÓN DE PRESUPUESTO
   ============================================ */
.pwt-btn-presupuesto {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: linear-gradient(135deg, var(--wpex-accent, #667eea) 0%, var(--wpex-palette-993-color, #01aef9) 100%);
	color: white !important;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
	text-decoration: none !important;
}

.pwt-btn-presupuesto:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
	color: white !important;
}

.pwt-btn-presupuesto svg {
	flex-shrink: 0;
}

/* ============================================
   HEADER DEL MODAL (con degradado overlay)
   ============================================ */
#pwt-modal-presupuesto .wpex-modal__header {
	background: linear-gradient(135deg, var(--wpex-accent, #667eea) 0%, var(--wpex-palette-993-color, #01aef9) 100%);
	color: white;
}

#pwt-modal-presupuesto .wpex-modal__title {
	color: white;
}

#pwt-modal-presupuesto .wpex-modal__close {
	color: white;
}

#pwt-modal-presupuesto .wpex-modal__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   FORMULARIO
   ============================================ */
.pwt-form-presupuesto {
	max-width: 100%;
}

/* Fila para campos en línea */
.pwt-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.pwt-form-group {
	margin-bottom: 20px;
}

.pwt-form-row .pwt-form-group {
	margin-bottom: 0;
}

.pwt-form-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.pwt-form-group label svg {
	flex-shrink: 0;
	color: var(--wpex-accent, #667eea);
}

.pwt-form-group input[type="text"],
.pwt-form-group input[type="email"],
.pwt-form-group input[type="tel"],
.pwt-form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	transition: all 0.2s ease;
	background: white;
}

.pwt-form-group input:focus,
.pwt-form-group textarea:focus {
	outline: none;
	border-color: var(--wpex-accent, #667eea);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pwt-form-group input[readonly] {
	background: var(--wpex-palette-995-color, #e5eef6);
	color: #666;
	cursor: not-allowed;
}

.pwt-form-group textarea {
	resize: vertical;
	min-height: 100px;
}

/* Checkbox de privacidad */
.pwt-form-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: normal;
	cursor: pointer;
}

.pwt-form-checkbox input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
}

.pwt-form-checkbox a {
	color: var(--wpex-accent, #667eea);
	text-decoration: none;
}

.pwt-form-checkbox a:hover {
	text-decoration: underline;
}

/* ============================================
   MENSAJES DE RESPUESTA
   ============================================ */
.pwt-form-mensaje {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 15px;
	font-weight: 500;
}

.pwt-form-mensaje svg {
	flex-shrink: 0;
}

.pwt-form-mensaje-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #10b981;
}

.pwt-form-mensaje-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #ef4444;
}

/* ============================================
   BOTONES
   ============================================ */
.pwt-form-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

.pwt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.pwt-btn-primary {
	background: linear-gradient(135deg, var(--wpex-accent, #667eea) 0%, var(--wpex-palette-993-color, #01aef9) 100%);
	color: white;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pwt-btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.pwt-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pwt-btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

.pwt-btn-secondary:hover {
	background: #e5e7eb;
}

.pwt-btn svg {
	flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
	#pwt-modal-presupuesto {
		width: 95% !important;
		max-width: 95% !important;
	}

	/* Stackear campos en móvil */
	.pwt-form-row {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.pwt-form-row .pwt-form-group {
		margin-bottom: 0;
	}

	.pwt-form-actions {
		flex-direction: column-reverse;
	}

	.pwt-form-actions .pwt-btn {
		width: 100%;
	}

	.pwt-btn-presupuesto {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.pwt-form-group label {
		font-size: 13px;
	}

	.pwt-form-group input,
	.pwt-form-group textarea {
		font-size: 14px;
		padding: 10px 14px;
	}
}
